From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: show-buffer-local-variables Date: Sun, 02 Oct 2005 23:22:52 +0300 Organization: JURTA Message-ID: <87wtkvzvdf.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128292514 13836 80.91.229.2 (2 Oct 2005 22:35:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2005 22:35:14 +0000 (UTC) Cc: steve.yegge@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 00:35:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMCQ0-0001De-Vk for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 00:34:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMCQ0-0000w1-4R for ged-emacs-devel@m.gmane.org; Sun, 02 Oct 2005 18:34:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMCPA-0000do-9e for emacs-devel@gnu.org; Sun, 02 Oct 2005 18:34:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMCP6-0000ba-5d for emacs-devel@gnu.org; Sun, 02 Oct 2005 18:33:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMCP5-0000Z3-Ih for emacs-devel@gnu.org; Sun, 02 Oct 2005 18:33:55 -0400 Original-Received: from [194.126.101.123] (helo=HOT-Bounce1.hot.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMCGR-0004hn-MI; Sun, 02 Oct 2005 18:24:59 -0400 Original-Received: from mail.neti.ee (Relay5 [192.168.1.24]) by HOT-Bounce1.hot.ee (Postfix) with ESMTP id 44A2217F2E9; Mon, 3 Oct 2005 01:07:34 +0300 (EEST) Original-Received: from mail.neti.ee (80-235-42-225-dsl.mus.estpak.ee [80.235.42.225]) by Relayhost1.neti.ee (Postfix) with ESMTP id D881B1A65; Mon, 3 Oct 2005 01:24:39 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sat, 01 Oct 2005 19:26:18 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee 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:43474 Archived-At: > I noticed this entry in emacs/etc/TODO: > > ** Add a command to make a local variables list in the current buffer > and/or add a variable to the list. > > I recently wrote a function that does the former, if I understand the > entry correctly. > > No, it is a misunderstanding. A local variables list is text > at the end of the file. It seems this command should do the same thing as currently `dcl-save-option' and `dcl-save-all-options' from emacs/lisp/progmodes/dcl-mode.el do, but more generally. These commands make a Local Variables section with prefix/suffix strings extracted from `comment-start' and `comment-end'. But the result is not always nice. For example, in Emacs-Lisp mode the value of `comment-start' is ";", but a nicer prefix would be ";;" or ";;;". Perhaps some modes should override this value with a new variable like `local-variables-prefix'. Also the local variables list for `dcl-save-all-options' is not general. A better choice is a list like used by desktop.el to save the values of local variables in the desktop file, i.e. the option `desktop-locals-to-save'. -- Juri Linkov http://www.jurta.org/emacs/