GNU bug report logs -
#42827
27.1; ~/Emacs file not read at init
Previous Next
Reported by: Tomasz Kowalski <T.Kowalski <at> latrobe.edu.au>
Date: Wed, 12 Aug 2020 12:34:01 UTC
Severity: normal
Tags: confirmed
Found in version 27.1
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42827 in the body.
You can then email your comments to 42827 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 12:34:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tomasz Kowalski <T.Kowalski <at> latrobe.edu.au>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 12 Aug 2020 12:34:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi there,
Emacs ignores ~/Emacs file at startup. Below are the relevant lines
from strace:
--------------------------------------------
openat(AT_FDCWD, "/home/tomaszen_AU.utf8/Emacs", O_RDONLY) = -1 ENOENT
(No such file or directory)
openat(AT_FDCWD, "/home/tomaszEmacs", O_RDONLY) = -1 ENOENT (No such
file or directory)
uname({sysname="Linux", nodename="schooner", ...}) = 0
--------------------------------------------
"/home/tomaszEmacs" should clearly be "/home/tomasz/Emacs" and
"/home/tomaszen_AU.utf8/Emacs" should
be "/home/tomasz/en_AU.utf8/Emacs"
Forgotten / somewhere?
Best regards,
Tomasz
--
Associate Professor, Dept. of Mathematics & Statistics,
La Trobe University, Melbourne, VIC3086, Australia.
Phone: (+61) 3 9479 2595,
Web (personal): tomasz-kowalski.github.io
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 13:10:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 42827 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Wed, 12 Aug 2020 12:05:02 +0000, Tomasz Kowalski <T.Kowalski <at> latrobe.edu.au> said:
Tomasz> Hi there,
Tomasz> Emacs ignores ~/Emacs file at startup. Below are the relevant lines
Tomasz> from strace:
Tomasz> --------------------------------------------
Tomasz> openat(AT_FDCWD, "/home/tomaszen_AU.utf8/Emacs", O_RDONLY) = -1 ENOENT
Tomasz> (No such file or directory)
Tomasz> openat(AT_FDCWD, "/home/tomaszEmacs", O_RDONLY) = -1 ENOENT (No such
Tomasz> file or directory)
Tomasz> uname({sysname="Linux", nodename="schooner", ...}) = 0
Tomasz> --------------------------------------------
Tomasz> "/home/tomaszEmacs" should clearly be "/home/tomasz/Emacs" and
Tomasz> "/home/tomaszen_AU.utf8/Emacs" should
Tomasz> be "/home/tomasz/en_AU.utf8/Emacs"
Tomasz> Forgotten / somewhere?
Hmm. Any chance of catching that in gdb so we can see where itʼs being
called from?
Robert
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 13:17:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 42827 <at> debbugs.gnu.org (full text, mbox):
Tomasz Kowalski <T.Kowalski <at> latrobe.edu.au> writes:
> openat(AT_FDCWD, "/home/tomaszen_AU.utf8/Emacs", O_RDONLY) = -1 ENOENT
> (No such file or directory)
I can confirm:
[pid 2320398] openat(AT_FDCWD, "/home/larsien_US.UTF-8/Emacs", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 2320398] openat(AT_FDCWD, "/home/larsiEmacs", O_RDONLY) = -1 ENOENT (No such file or directory)
(This is on Debian sid.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) confirmed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 12 Aug 2020 13:17:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 13:22:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 42827 <at> debbugs.gnu.org (full text, mbox):
Tomasz> Forgotten / somewhere?
Robert> Hmm. Any chance of catching that in gdb so we can see where itʼs being
Robert> called from?
Completely WAG:
diff --git a/src/xrdb.c b/src/xrdb.c
index e3a1fcb15a..3d7f715c88 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -289,9 +289,9 @@ get_user_app (const char *class)
/* Check in the home directory. This is a bit of a hack; let's
hope one's home directory doesn't contain ':' or '%'. */
char const *home = get_homedir ();
- db = search_magic_path (home, class, "%L/%N");
+ db = search_magic_path (home, class, "/%L/%N");
if (! db)
- db = search_magic_path (home, class, "%N");
+ db = search_magic_path (home, class, "/%N");
}
return db;
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 14:28:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 42827 <at> debbugs.gnu.org (full text, mbox):
In article <mailman.1695.1597235644.2739.bug-gnu-emacs <at> gnu.org> you wrote:
> Hi there,
> Emacs ignores ~/Emacs file at startup. Below are the relevant lines
> from strace:
> --------------------------------------------
> openat(AT_FDCWD, "/home/tomaszen_AU.utf8/Emacs", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> openat(AT_FDCWD, "/home/tomaszEmacs", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> uname({sysname="Linux", nodename="schooner", ...}) = 0
> --------------------------------------------
> "/home/tomaszEmacs" should clearly be "/home/tomasz/Emacs" and
> "/home/tomaszen_AU.utf8/Emacs" should
> be "/home/tomasz/en_AU.utf8/Emacs"
> Forgotten / somewhere?
I'm not certain, but I think the problem might well be your upper case
"E" at the beginning of the file name. I think you also want a ".",
giving a name like
/homt/tomasz/.emacs
. Hope that helps!
> Best regards,
> Tomasz
> --
> Associate Professor, Dept. of Mathematics & Statistics,
> La Trobe University, Melbourne, VIC3086, Australia.
> Phone: (+61) 3 9479 2595,
> Web (personal): tomasz-kowalski.github.io
--
Alan Mackenzie (Nuremberg, Germany).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 14:39:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 42827 <at> debbugs.gnu.org (full text, mbox):
On Aug 12 2020, Robert Pluim wrote:
> Tomasz> Forgotten / somewhere?
>
> Robert> Hmm. Any chance of catching that in gdb so we can see where itʼs being
> Robert> called from?
>
> Completely WAG:
>
> diff --git a/src/xrdb.c b/src/xrdb.c
> index e3a1fcb15a..3d7f715c88 100644
> --- a/src/xrdb.c
> +++ b/src/xrdb.c
> @@ -289,9 +289,9 @@ get_user_app (const char *class)
> /* Check in the home directory. This is a bit of a hack; let's
> hope one's home directory doesn't contain ':' or '%'. */
> char const *home = get_homedir ();
> - db = search_magic_path (home, class, "%L/%N");
> + db = search_magic_path (home, class, "/%L/%N");
> if (! db)
> - db = search_magic_path (home, class, "%N");
> + db = search_magic_path (home, class, "/%N");
> }
Looks like the bug was added in commit 900276502f.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 16:07:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 42827 <at> debbugs.gnu.org (full text, mbox):
>>>>> On 12 Aug 2020 14:26:57 -0000, Alan Mackenzie <acm <at> muc.de> said:
Alan> In article <mailman.1695.1597235644.2739.bug-gnu-emacs <at> gnu.org> you wrote:
>> Hi there,
>> Emacs ignores ~/Emacs file at startup. Below are the relevant lines
>> from strace:
>> --------------------------------------------
>> openat(AT_FDCWD, "/home/tomaszen_AU.utf8/Emacs", O_RDONLY) = -1 ENOENT
>> (No such file or directory)
>> openat(AT_FDCWD, "/home/tomaszEmacs", O_RDONLY) = -1 ENOENT (No such
>> file or directory)
>> uname({sysname="Linux", nodename="schooner", ...}) = 0
>> --------------------------------------------
>> "/home/tomaszEmacs" should clearly be "/home/tomasz/Emacs" and
>> "/home/tomaszen_AU.utf8/Emacs" should
>> be "/home/tomasz/en_AU.utf8/Emacs"
>> Forgotten / somewhere?
Alan> I'm not certain, but I think the problem might well be your upper case
Alan> "E" at the beginning of the file name. I think you also want a ".",
Alan> giving a name like
Alan> /homt/tomasz/.emacs
This is the Emacs application file under X, not the configuration
file. Iʼd be worried if we looked for .emacs by trying to append a
locale string to $HOME :-)
Robert
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 16:09:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 42827 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Wed, 12 Aug 2020 16:38:18 +0200, Andreas Schwab <schwab <at> linux-m68k.org> said:
Andreas> On Aug 12 2020, Robert Pluim wrote:
Tomasz> Forgotten / somewhere?
>>
Robert> Hmm. Any chance of catching that in gdb so we can see where itʼs being
Robert> called from?
>>
>> Completely WAG:
>>
>> diff --git a/src/xrdb.c b/src/xrdb.c
>> index e3a1fcb15a..3d7f715c88 100644
>> --- a/src/xrdb.c
>> +++ b/src/xrdb.c
>> @@ -289,9 +289,9 @@ get_user_app (const char *class)
>> /* Check in the home directory. This is a bit of a hack; let's
>> hope one's home directory doesn't contain ':' or '%'. */
>> char const *home = get_homedir ();
>> - db = search_magic_path (home, class, "%L/%N");
>> + db = search_magic_path (home, class, "/%L/%N");
>> if (! db)
>> - db = search_magic_path (home, class, "%N");
>> + db = search_magic_path (home, class, "/%N");
>> }
Andreas> Looks like the bug was added in commit 900276502f.
Yes, get_homedir doesnʼt stick a '/' on the end, and gethomedir did.
If someone can confirm that this fixes it, I can push to master or to
emacs-27, whichever is preferred (personally I donʼt think itʼs a
major bug, but it is a regression).
Robert
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#42827
; Package
emacs
.
(Wed, 12 Aug 2020 16:27:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 42827 <at> debbugs.gnu.org (full text, mbox):
> From: Robert Pluim <rpluim <at> gmail.com>
> Date: Wed, 12 Aug 2020 18:08:16 +0200
> Cc: Tomasz Kowalski <T.Kowalski <at> latrobe.edu.au>, 42827 <at> debbugs.gnu.org
>
> Yes, get_homedir doesnʼt stick a '/' on the end, and gethomedir did.
>
> If someone can confirm that this fixes it, I can push to master or to
> emacs-27, whichever is preferred (personally I donʼt think itʼs a
> major bug, but it is a regression).
If the fix is confirmed, please install on emacs-27.
Thanks.
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Mon, 17 Aug 2020 04:47:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tomasz Kowalski <T.Kowalski <at> latrobe.edu.au>
:
bug acknowledged by developer.
(Mon, 17 Aug 2020 04:47:01 GMT)
Full text and
rfc822 format available.
Message #36 received at 42827-done <at> debbugs.gnu.org (full text, mbox):
> If someone can confirm that this fixes it
I confirmed that your patch fixes the bug that I unfortunately introduced, and I
installed your patch to emacs-27 in your name. Thanks for the patch, and thank
you too Tomasz and Andreas for the report and diagnosis.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 14 Sep 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 234 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.