GNU bug report logs -
#19438
24.4; system-name bad cache
Previous Next
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
>> Why not get rid of the variable system-name? It seems what it provides
>> can be easily achieved without it.
> It's documented so we shouldn't just remove it; we'd need to mark it
> as obsolescent.
> Its documented behavior is "you can set the variable @code{system-name} in
> case Emacs is confused about the name of your system". I've never found
> this feature to be useful, though I understand it was useful for others long
> ago. Perhaps some people still find it useful? Anyway, if there's
> consensus to mark the variable as obsolescent I can prepare a patch along
> those lines.
Maybe we could mark it obsolete, tho I'm not completely sure what
replaces it. Random thoughts:
- "it" is unclear, since currently the var and the function are just identical.
- this not-very-useful functionality occasionally causes 30s wait at
startup time, so it would be good to get rid of the DNS lookup.
Maybe we could make the system-name function return the same as
`hostname` (and do it dynamically).
> 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.
Sounds OK.
Stefan
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.