From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: .emacs-settings.el Date: Sat, 08 Sep 2007 11:47:08 -0600 Message-ID: References: <60282.128.165.123.18.1189002441.squirrel@webmail.lanl.gov> <87k5r350o5.fsf@jurta.org> Reply-To: tromey@redhat.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189274923 4822 80.91.229.12 (8 Sep 2007 18:08:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 18:08:43 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 08 20:08:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IU4ja-000281-MF for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2007 20:08:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IU4jY-00045W-Ch for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2007 14:08:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IU4jV-00045Q-Ne for emacs-devel@gnu.org; Sat, 08 Sep 2007 14:08:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IU4jU-00045E-BK for emacs-devel@gnu.org; Sat, 08 Sep 2007 14:08:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IU4jU-00045B-5x for emacs-devel@gnu.org; Sat, 08 Sep 2007 14:08:36 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IU4jT-0001fF-Tg for emacs-devel@gnu.org; Sat, 08 Sep 2007 14:08:36 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l88I8ZBc011354; Sat, 8 Sep 2007 14:08:35 -0400 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l88I8Z0T022887; Sat, 8 Sep 2007 14:08:35 -0400 Original-Received: from opsy.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l88I8Xri030726; Sat, 8 Sep 2007 14:08:34 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 5B639508239; Sat, 8 Sep 2007 11:47:08 -0600 (MDT) X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Fri\, 07 Sep 2007 13\:40\:48 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78279 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: [ C-h v output ] Stefan> I don't think it's a necessary feature, but it would be a nice Stefan> addition (for for file-local and dir-local settings). I'm not Stefan> sure how to implement it either, but I guess we could change Stefan> hack-local-variables to maintain a new (buffer-local) variable Stefan> `file-local-settings' and in C-h v we check this var to see if Stefan> the variable displayed is among the ones that were set Stefan> file-locally. I was thinking about this, and it occurred to me that we could have "false positives". E.g., project.el might set the variable and add it to file-local-settings, but then some later hook might setq the variable as well. In this situation C-h v would incorrectly say that the variable had a project setting -- unless every setq manipulated file-local-settings. The reason this is bad is that the point of mentioning this in C-h v is to avoid confusion resulting variables magically being set -- but in this situation you would be just as confused trying (mistakenly) to debug your .emacs-settings.el. Tom