From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19438: 24.4; system-name bad cache Date: Sat, 27 Dec 2014 10:13:43 -0500 Message-ID: References: <549D87DB.7010909@cs.ucla.edu> <549DDE50.7020402@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1419693259 31590 80.91.229.3 (27 Dec 2014 15:14:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Dec 2014 15:14:19 +0000 (UTC) Cc: 19438@debbugs.gnu.org, Leo Liu To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 27 16:14:10 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y4t4D-0006gX-LF for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Dec 2014 16:14:09 +0100 Original-Received: from localhost ([::1]:56235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4t4C-0006sb-QW for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Dec 2014 10:14:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4t4A-0006sV-32 for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 10:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4t46-0003k8-To for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 10:14:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4t46-0003k3-RU for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 10:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y4t46-0006oo-GP for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 10:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Dec 2014 15:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19438 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19438-submit@debbugs.gnu.org id=B19438.141969322726184 (code B ref 19438); Sat, 27 Dec 2014 15:14:02 +0000 Original-Received: (at 19438) by debbugs.gnu.org; 27 Dec 2014 15:13:47 +0000 Original-Received: from localhost ([127.0.0.1]:59190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4t3r-0006oG-29 for submit@debbugs.gnu.org; Sat, 27 Dec 2014 10:13:47 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:32839) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4t3o-0006o7-CC for 19438@debbugs.gnu.org; Sat, 27 Dec 2014 10:13:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwPAOwQflTO+ILA/2dsb2JhbABbDoJ5g2CFWsUdBAICgSQXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0kiEoJ1lkBAQEBAQUBAQEBHpBvB4RIBYsBg2GOUI9zggqBeIM7XiGCdwEBAQ X-IPAS-Result: AjwPAOwQflTO+ILA/2dsb2JhbABbDoJ5g2CFWsUdBAICgSQXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0kiEoJ1lkBAQEBAQUBAQEBHpBvB4RIBYsBg2GOUI9zggqBeIM7XiGCdwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="103638344" Original-Received: from 206-248-130-192.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 Dec 2014 10:13:43 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 4AEE7106D; Sat, 27 Dec 2014 10:13:43 -0500 (EST) In-Reply-To: <549DDE50.7020402@cs.ucla.edu> (Paul Eggert's message of "Fri, 26 Dec 2014 14:16:48 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97765 Archived-At: >> 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