GNU bug report logs - #19438
24.4; system-name bad cache

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Thu, 25 Dec 2014 10:22:02 UTC

Severity: minor

Found in version 24.4

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 19438 <at> debbugs.gnu.org, Leo Liu <sdl.web <at> gmail.com>
Subject: bug#19438: 24.4; system-name bad cache
Date: Fri, 26 Dec 2014 08:07:55 -0800
[Message part 1 (text/plain, inline)]
Unfortunately even "the name of the machine" can change; e.g., I can invoke the 
shell command "hostname garfield" to change my machine's name to garfield. 
Also, I expect that if Emacs has its process migrated (LinuxPMI, anybody?) it 
will then be running on a different machine with a different name.

How about the attached patch?  The idea is that (system-name) actually inquires 
for the current system name, and system-name caches the result.  If an Emacs 
lisp program assigns to system-name, though, it's no longer updated thereafter.
[0001-system-name-s-returned-value-can-vary.patch (text/x-diff, attachment)]

This bug report was last modified 10 years and 226 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.