From unknown Sun Aug 10 12:54:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5239 <5239@debbugs.gnu.org> To: bug#5239 <5239@debbugs.gnu.org> Subject: Status: 23.1.50; compile-command Local Variables must be after mode Reply-To: bug#5239 <5239@debbugs.gnu.org> Date: Sun, 10 Aug 2025 19:54:42 +0000 retitle 5239 23.1.50; compile-command Local Variables must be after mode reassign 5239 emacs submitter 5239 jidanni@jidanni.org severity 5239 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 17 14:56:20 2009 Received: (at submit) by debbugs.gnu.org; 17 Dec 2009 19:56:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLMSS-0001rz-8F for submit@debbugs.gnu.org; Thu, 17 Dec 2009 14:56:20 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLLcY-0001H1-36 for submit@debbugs.gnu.org; Thu, 17 Dec 2009 14:02:42 -0500 Received: from mail.gnu.org ([199.232.76.166]:43915 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLLcT-0007I2-R5 for emacs-pretest-bug@gnu.org; Thu, 17 Dec 2009 14:02:37 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NLLcS-0007oW-HF for emacs-pretest-bug@gnu.org; Thu, 17 Dec 2009 14:02:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,NO_REAL_NAME autolearn=no version=3.1.0 Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66]:34659 helo=homiemail-a37.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLLcR-0007oH-Vd for emacs-pretest-bug@gnu.org; Thu, 17 Dec 2009 14:02:36 -0500 Received: from jidanni.org (218-163-2-76.dynamic.hinet.net [218.163.2.76]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a37.g.dreamhost.com (Postfix) with ESMTP id 3EFA14D5F5 for ; Thu, 17 Dec 2009 11:02:34 -0800 (PST) From: jidanni@jidanni.org To: emacs-pretest-bug@gnu.org Subject: 23.1.50; compile-command Local Variables must be after mode Date: Fri, 18 Dec 2009 03:02:32 +0800 Message-ID: <87ws0l2zlj.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 17 Dec 2009 14:56:18 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org In the docstring of compile-command, you might want to emphasize that one must set it _after_ "mode". Wrong: # Local Variables: # compile-command: "set -xnue .crontab `basename $PWD`; scp $1 $2:; ssh $2 crontab $1;\ # ls $PWD/$1|cpiome" # mode: Shell-script # End: or else it just gets thrown away. Better yet, don't throw it away. (emacs-snapshot package, version 1:20091128-1) From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 17 19:25:56 2009 Received: (at 5239) by debbugs.gnu.org; 18 Dec 2009 00:25:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLQfM-0006C6-ID for submit@debbugs.gnu.org; Thu, 17 Dec 2009 19:25:56 -0500 Received: from caiajhbdcaib.dreamhost.com ([208.97.132.81] helo=homiemail-a1.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLQfL-0006Bs-CQ for 5239@debbugs.gnu.org; Thu, 17 Dec 2009 19:25:55 -0500 Received: from jidanni.org (218-163-2-76.dynamic.hinet.net [218.163.2.76]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 73B41119DEE; Thu, 17 Dec 2009 16:25:50 -0800 (PST) From: jidanni@jidanni.org To: juri@jurta.org Subject: Re: bug#5239: 23.1.50; compile-command Local Variables must be after mode References: <87r5qt9mdz.fsf@mail.jurta.org> Date: Fri, 18 Dec 2009 08:25:45 +0800 Message-ID: <87k4wl2kmu.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Debbugs-Envelope-To: 5239 Cc: 5239@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org JL> This is already documented in (info "(emacs) Specifying File Variables"): JL> If `mode' is used to set a major mode, it should be the first JL> "variable" in the list. Otherwise, the entries that precede it will JL> usually be ignored, since most modes kill all local variables as part JL> of their initialization. JL> It makes no sense to duplicate this information in the docstrings of JL> every variable that may be used in Local Variables. OK, then the "responsible" thing to do would be to emit a warning if detected: "mode used after others, see info page...". From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 17 19:31:36 2009 Received: (at 5239) by debbugs.gnu.org; 18 Dec 2009 00:31:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLQkq-0006Gn-Nq for submit@debbugs.gnu.org; Thu, 17 Dec 2009 19:31:36 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NLQSY-0005XH-ON for 5239@debbugs.gnu.org; Thu, 17 Dec 2009 19:12:42 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.31.182.cable.starman.ee [82.131.31.182]) by mx1.starman.ee (Postfix) with ESMTP id 0B4273F412E; Fri, 18 Dec 2009 02:12:33 +0200 (EET) From: Juri Linkov To: jidanni@jidanni.org Subject: Re: bug#5239: 23.1.50; compile-command Local Variables must be after mode Organization: JURTA References: <87ws0l2zlj.fsf@jidanni.org> Date: Fri, 18 Dec 2009 01:46:00 +0200 In-Reply-To: <87ws0l2zlj.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 18 Dec 2009 03:02:32 +0800") Message-ID: <87r5qt9mdz.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Debbugs-Envelope-To: 5239 X-Mailman-Approved-At: Thu, 17 Dec 2009 19:31:35 -0500 Cc: 5239@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org > In the docstring of compile-command, you might want to emphasize that > one must set it _after_ "mode". Wrong: > > # Local_Variables: > # compile-command: "set -xnue .crontab `basename $PWD`; scp $1 $2:; ssh $2 crontab $1;\ > # ls $PWD/$1|cpiome" > # mode: Shell-script > # End: > > or else it just gets thrown away. Better yet, don't throw it away. This is already documented in (info "(emacs) Specifying File Variables"): If `mode' is used to set a major mode, it should be the first "variable" in the list. Otherwise, the entries that precede it will usually be ignored, since most modes kill all local variables as part of their initialization. It makes no sense to duplicate this information in the docstrings of every variable that may be used in Local Variables. -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 14 21:34:16 2010 Received: (at control) by debbugs.gnu.org; 15 Jan 2010 02:34:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVc0u-0002Nz-7E for submit@debbugs.gnu.org; Thu, 14 Jan 2010 21:34:16 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVc0s-0002Nt-9H for control@debbugs.gnu.org; Thu, 14 Jan 2010 21:34:14 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NVc0o-0003pu-Q3; Thu, 14 Jan 2010 21:34:10 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19279.54306.760765.98090@gargle.gargle.HOWL> Date: Thu, 14 Jan 2010 21:34:10 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: red X-Ran: :m~t}wvg-c(~($msYvZ|;v.!JomO'3d}hwb{k1S4tPrXRnrVb!DCq)dD@=s-a^i3cq17iH X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) tags 3642 moreinfo unreproducible severity 3699 minor severity 3870 minor severity 4438 minor severity 4952 minor severity 5154 minor close 5215 severity 5239 wishlist close 5318 severity 5360 wishlist severity 5362 minor tags 4974 moreinfo unreproducible severity 4408 wishlist severity 4089 wishlist tags 4089 wontfix reassign 4044 emacs,ns merge 2280 5252 tags 5374 moreinfo reassign 4828 emacs,cc-mode tags 4828 patch reassign 5001 emacs,erc close 5371 reassign 4517 emacs,ns severity 3230 minor close 4930 close 5249 From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 21:02:37 2011 Received: (at control) by debbugs.gnu.org; 27 May 2011 01:02:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QPlRl-0004Qa-7v for submit@debbugs.gnu.org; Thu, 26 May 2011 21:02:37 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QPlRj-0004QP-NB for control@debbugs.gnu.org; Thu, 26 May 2011 21:02:35 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QPlRe-00021U-Ih for control@debbugs.gnu.org; Thu, 26 May 2011 21:02:30 -0400 Date: Thu, 26 May 2011 21:02:30 -0400 Message-Id: Subject: control message for bug 5239 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) forcemerge 8586 5239 From unknown Sun Aug 10 12:54:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Jun 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator