From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: longish Local Variables in Files Date: Fri, 27 Aug 2004 09:13:26 +0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <876575xu15.fsf@jidanni.org> References: <412A5A6B.6000508@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093712362 26420 80.91.224.253 (28 Aug 2004 16:59:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2004 16:59:22 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 28 18:59:13 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C16Xo-0000Gr-00 for ; Sat, 28 Aug 2004 18:59:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C16cX-0004wg-DK for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Aug 2004 13:04:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C16cS-0004pc-Sv for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2004 13:04:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C16cO-0004kK-Vh for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2004 13:03:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C16cO-0004kC-PP for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2004 13:03:56 -0400 Original-Received: from [203.79.224.63] (helo=smtp2.apol.com.tw) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C16X3-0000xY-Lq for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2004 12:58:26 -0400 Original-Received: from jidanni1 (TC218-187-81-55.2-7.dynamic.apol.com.tw [218.187.81.55]) by smtp2.apol.com.tw (8.9.3/8.9.3) with ESMTP id AAA28559236 for ; Sun, 29 Aug 2004 00:58:15 +0800 (CST) Original-Received: from jidanni by jidanni1 with local (Exim 4.34) id 1C0VJ0-0001XT-Ng for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2004 09:13:26 +0800 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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 Xref: main.gmane.org gmane.emacs.bugs:8840 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8840 K> Then you are out of luck: file local variables must be specified on a K> single line. Make sure this is documented. Wait, I demonstrated that it could be done on two lines. K> What's wrong with having a really long compile-command K> line in your script? I don't want lines to wrap etc. on my terminal or printer. Call me old fashioned. rms> # compile-command: "invoke-rc.d chrony restart && sleep 2`\ rms> #` && grep chrony /var/log/syslog|tail -19" Indeed that works, no need for /bin/sh's ":", and one can even remove the backslash. One can go on and on: # Local Variables: # compile-command: "p=$PWD && cd /tmp && procmail -m LOGABSTRACT=all ` #` VERBOSE=on $p/.procmailrc.local.post # compile-command: "invoke-rc.d chrony restart && sleep 2 \ rms> && grep chrony /var/log/syslog|tail -19" By the way, the documentation, both of local variables and compile, could also say compile-command is a great local variable to set. E.g., my .crontab file has # Local Variables: # compile-command: "crontab .crontab" # End: