From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: show-buffer-local-variables Date: Mon, 03 Oct 2005 10:42:31 -0400 Message-ID: References: <87wtkvzvdf.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128351796 24627 80.91.229.2 (3 Oct 2005 15:03:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2005 15:03:16 +0000 (UTC) Cc: steve.yegge@gmail.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 17:03:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMRq9-0003CM-K6 for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 17:02:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMRq7-0005Sk-H7 for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 11:02:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMRkP-0002pd-Nx for emacs-devel@gnu.org; Mon, 03 Oct 2005 10:56:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMRkK-0002oF-Vm for emacs-devel@gnu.org; Mon, 03 Oct 2005 10:56:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMRha-0001MP-Vd for emacs-devel@gnu.org; Mon, 03 Oct 2005 10:54:03 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMRWZ-0005aO-8E; Mon, 03 Oct 2005 10:42:39 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 9584B2CF5D6; Mon, 3 Oct 2005 10:42:38 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id E5C724AC010; Mon, 3 Oct 2005 10:42:31 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id D0D2EE6C1A; Mon, 3 Oct 2005 10:42:31 -0400 (EDT) Original-To: Juri Linkov In-Reply-To: <87wtkvzvdf.fsf@jurta.org> (Juri Linkov's message of "Sun, 02 Oct 2005 23:22:52 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.847, requis 5, autolearn=not spam, AWL 0.05, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:43493 Archived-At: > 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 ";;;". Definitely ";;" and not ";;;" (the ";;;" is for section header). You can get that using the variable comment-add. > Perhaps some modes should override this value with a new variable like > `local-variables-prefix'. Before getting to that point, I recommend trying out `comment-region' (wrapped with an appropriate let binding of comment-style, of course). Stefan