From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Boettcher Newsgroups: gmane.emacs.help Subject: Re: Reparsing local variables without reopening file? Date: Mon, 23 Sep 2002 08:29:31 -0400 Organization: MIT Lincoln Laboratory Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <87d6r7w3yy.fsf@bach.composers> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032784604 8784 127.0.0.1 (23 Sep 2002 12:36:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 12:36:44 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tSSA-0002HW-00 for ; Mon, 23 Sep 2002 14:36:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17tSS6-0008Qs-00; Mon, 23 Sep 2002 08:36:38 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!llslave.llan.ll.mit.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:xq9HzCawgMTmzNt6mMQNVVTpwIQ= Original-NNTP-Posting-Host: 155.34.163.111 Original-X-Complaints-To: news@ll.mit.edu Original-X-Trace: llslave.llan.ll.mit.edu 1032784171 155.34.163.111 (Mon, 23 Sep 2002 08:29:31 EDT) Original-NNTP-Posting-Date: Mon, 23 Sep 2002 08:29:31 EDT Original-Xref: nntp.stanford.edu gnu.emacs.help:105174 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1729 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1729 On 21 Sep 2002, olau@hardworking.dk wrote: > Hi > > I was changing a local variable for a test example when it occurred > to me that I didn't know how to make Emacs reparse them. For > example: > > // Local Variables: *** > // compile-command: "g++ test.cpp -o test -O3" *** > // End: *** > > Now, one can save and kill the buffer and refind the file (or > perhaps even do a M-x revert-buffer); however, this seems silly. M-x > apropos gives hack-local-variables. But that is a function? What do > the gurus do? Or should hack-local-variables be a command (perhaps > with a somewhat more descriptive name :-)? Typing M-: > (hack-local-variables) is a little laborious. I use M-x normal-mode for this kind of thing. I bind it to C-c n. -- Peter Boettcher MIT Lincoln Laboratory boettcher@ll.mit.edu