[Bug 258856] editors/emacs-devel: Error happens at startup time if ~/.emacs is symbolic link to other file

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 Oct 2021 06:52:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258856

            Bug ID: 258856
           Summary: editors/emacs-devel: Error happens at startup time if
                    ~/.emacs is symbolic link to other file
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: emacs@FreeBSD.org
          Reporter: yasu@freebsd.org
          Assignee: emacs@FreeBSD.org
             Flags: maintainer-feedback?(emacs@FreeBSD.org)

In my home directory ~/.emacs is symbolic link to ~/.init-files/.emacs

----------------------------------------------------------------------
yasu@rolling-vm-freebsd1[1004]% ls -l ~/.emacs
lrwxr-xr-x  1 yasu  user  18 Jan  6  2015 /home/yasu/.emacs@ ->
.init-files/.emacs
yasu@rolling-vm-freebsd1[1005]%
----------------------------------------------------------------------

And after update editors/emacs-devel to ports e7edd97198e4, following error
message is displayed in *Warning* buffer when I start emacs.

----------------------------------------------------------------------
Warning (initialization): An error occurred while loading ‘/home/yasu/.emacs’:

Wrong type argument: number-or-marker-p, nil
----------------------------------------------------------------------

The error disappears if I do `rm ~/.emacs; cp ~/.init-files/.emacs ~/.emacs`.

And it only happens with 14-CURRENT.

----------------------------------------------------------------------
yasu@rolling-vm-freebsd1[1007]% uname -a
FreeBSD rolling-vm-freebsd1.home.utahime.org 14.0-CURRENT FreeBSD 14.0-CURRENT
#0 main-n249811-a36230f75e0: Sat Oct  2 01:34:30 JST 2021    
rootz@rolling-vm-freebsd1.home.utahime.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
 amd64
yasu@rolling-vm-freebsd1[1008]%
----------------------------------------------------------------------

With 13.0-RELEASE and 12.2-RELEASE emacs starts without any error.

-- 
You are receiving this mail because:
You are the assignee for the bug.