From unknown Mon Aug 18 14:24:34 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#24292 <24292@debbugs.gnu.org> To: bug#24292 <24292@debbugs.gnu.org> Subject: Status: # Local Variables: not working Reply-To: bug#24292 <24292@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:24:34 +0000 retitle 24292 # Local Variables: not working reassign 24292 emacs submitter 24292 nullx002 severity 24292 normal tag 24292 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 11:27:10 2016 Received: (at submit) by debbugs.gnu.org; 23 Aug 2016 15:27:10 +0000 Received: from localhost ([127.0.0.1]:38065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcDba-0003gi-1l for submit@debbugs.gnu.org; Tue, 23 Aug 2016 11:27:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bc8Ze-0007TV-GR for submit@debbugs.gnu.org; Tue, 23 Aug 2016 06:04:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bc8ZY-0001Vw-Cp for submit@debbugs.gnu.org; Tue, 23 Aug 2016 06:04:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc8ZY-0001Vm-AB for submit@debbugs.gnu.org; Tue, 23 Aug 2016 06:04:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc8ZW-0004FE-86 for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 06:04:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bc8ZT-0001Ul-HP for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 06:04:42 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:35846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bc8ZT-0001UV-8V for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 06:04:39 -0400 Received: by mail-pf0-x241.google.com with SMTP id y134so8008269pfg.3 for ; Tue, 23 Aug 2016 03:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version; bh=b9PmYoifwc7cp8ZRZayog/PIn3NGHRqgdoGwdheBb+Y=; b=OWch7CTyRH5ZF3+8M5Ru/LmS6NE+K/zlx9aVcvo0o9naO037eDg+L69ewksF9PpA4r YyBHOQpvyTEbT2UUbY3HpuKFj+r+rRUAjN1T2L4k3AxrqSLV/Qd7s8Dx6NKJu/8+bqkx jzqaqfTbKhgsqlHF18HBJvF2P5bzf5YQUS46q6VGL3zsKJ+5GtAfcQ0v1JrVQUAuHQCz h/FqIEROoZCY3HInEMGXXFPvpmFodZfusK4g+eAo9OVJYniOBnRGGWBFoBDJBecRu5vO UHRmubEuWgdWPOIiN0Kxj+NYsj8S+nY47JlIxlAEpSFjHWl9N9Dv6K6fac5Kre9YebwB 4CsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=b9PmYoifwc7cp8ZRZayog/PIn3NGHRqgdoGwdheBb+Y=; b=NvzdOtXvW7X3//Keshgk75tahBRvA2IZXJAWutOHZ/QpsPOMnaghYIn62PRLUMCsE4 02eUsiZbFDYQX7wyYlDdVcLz0DAQjpe27/WGc9gLRYuEiG9UsFoGaLthHfG+0S3sLbXC lfOCdgycGyE34bWXspWnrD+nYrhn2wQ34BinnysBKBA3G2MDBCVtuSABroX16pv3uKse jgeraedV67IzxPmfGVgDooXEOL4xQslNqFdKbPqeiOxBeoPJHXaOIWvb6x2eEt1qLZNG LJ3dyuxp2hmWS4/K5s/XBFn73ZBwufPCBZ8gz1W+PB3vQ9sXoGsm5blQQ/1LLjnLINI7 inXQ== X-Gm-Message-State: AEkoousGXDogFXfMW944XgFeZENeWm4/yqwvBg67/yP9YBWjXWDeqQeW6WdyeYBC2Kyqpw== X-Received: by 10.98.58.149 with SMTP id v21mr51023906pfj.19.1471946677351; Tue, 23 Aug 2016 03:04:37 -0700 (PDT) Received: from nullx002-machine ([163.53.179.118]) by smtp.gmail.com with ESMTPSA id xv9sm4250923pab.36.2016.08.23.03.04.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Aug 2016 03:04:36 -0700 (PDT) From: nullx002 To: bug-gnu-emacs@gnu.org Subject: # Local Variables: not working Date: Tue, 23 Aug 2016 15:34:33 +0530 Message-ID: <87oa4j7qdq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 23 Aug 2016 11:27:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ My init.el file has following line: (gobal-linum-mode t) Now I want to disable linum-mode for few .org files so i used following: # Local Variables: # eval: (linum-mode 0) # End: in header above everything else. but it is not working for me for org files, it works for other files like .txt .md .js etc. but not for .org files I tired with empty .org file and result is same. C-h v linum-mode for .txt file gives: Its value is nil Local in buffer test.txt; global value is the same. while, C-h v linum-mode for .org file gives: Its value is t Local in buffer capture-tasks.org; global value is nil ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ In GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-36, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11803000 System Description: Ubuntu 16.04.1 LTS Important settings: value of $LANG: en_IN value of $XMODIFIERS: locale-coding-system: iso-latin-1-unix Major mode: Emacs-Lisp Minor modes in effect: savehist-mode: t desktop-save-mode: t yahoo-weather-mode: t shell-dirtrack-mode: t winner-mode: t global-linum-mode: t linum-mode: t global-hl-line-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 13:00:32 2016 Received: (at 24292) by debbugs.gnu.org; 23 Aug 2016 17:00:32 +0000 Received: from localhost ([127.0.0.1]:38101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcF3v-000628-VL for submit@debbugs.gnu.org; Tue, 23 Aug 2016 13:00:32 -0400 Received: from mail.muc.de ([193.149.48.3]:26485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcF3t-00061v-5T for 24292@debbugs.gnu.org; Tue, 23 Aug 2016 13:00:29 -0400 Received: (qmail 4644 invoked by uid 3782); 23 Aug 2016 17:00:26 -0000 Received: from acm.muc.de (p548C6762.dip0.t-ipconnect.de [84.140.103.98]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 23 Aug 2016 19:00:24 +0200 Received: (qmail 13688 invoked by uid 1000); 23 Aug 2016 17:00:00 -0000 Date: Tue, 23 Aug 2016 17:00:00 +0000 To: nullx002 Subject: Re: bug#24292: # Local Variables: not working Message-ID: <20160823170000.GA13678@acm.fritz.box> References: <87oa4j7qdq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87oa4j7qdq.fsf@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 24292 Cc: 24292@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) On Tue, Aug 23, 2016 at 03:34:33PM +0530, nullx002 wrote: > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > My init.el file has following line: > (gobal-linum-mode t) > Now I want to disable linum-mode for few .org files so i used following: > # Local Variables: > # eval: (linum-mode 0) > # End: > in header above everything else. ^^^^^ Assuming nothing's got lost in the translation, that could be your problem. the Local Variables: section has to come at the BOTTOM of the file, after other things. It will work as long as it's within the last (I think) 5000 character of the file. So if you've got some fairly short files, a LV section at the top of that file will work. If your file is bigger than ~5000 bytes (and I think .org files tend to be big) it won't work. So move those LV sections to the ends of their files, and see if that helps. > but it is not working for me for org files, it works for other files > like .txt .md .js etc. but not for .org files > I tired with empty .org file and result is same. > C-h v linum-mode for .txt file gives: > Its value is nil > Local in buffer test.txt; global value is the same. > while, > C-h v linum-mode for .org file gives: > Its value is t > Local in buffer capture-tasks.org; global value is nil > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > In GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.18.9) > of 2016-04-17 on lgw01-36, modified by Debian > Windowing system distributor `The X.Org Foundation', version 11.0.11803000 > System Description: Ubuntu 16.04.1 LTS [ .... ] -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 24 07:21:50 2016 Received: (at 24292) by debbugs.gnu.org; 24 Aug 2016 11:21:51 +0000 Received: from localhost ([127.0.0.1]:38711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcWFi-0000nG-NN for submit@debbugs.gnu.org; Wed, 24 Aug 2016 07:21:50 -0400 Received: from mail.muc.de ([193.149.48.3]:60166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcWFg-0000n7-U4 for 24292@debbugs.gnu.org; Wed, 24 Aug 2016 07:21:49 -0400 Received: (qmail 95964 invoked by uid 3782); 24 Aug 2016 11:21:47 -0000 Received: from acm.muc.de (p548C661A.dip0.t-ipconnect.de [84.140.102.26]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 24 Aug 2016 13:21:46 +0200 Received: (qmail 4967 invoked by uid 1000); 24 Aug 2016 11:21:22 -0000 Date: Wed, 24 Aug 2016 11:21:22 +0000 To: nullx002 Subject: Re: bug#24292: # Local Variables: not working Message-ID: <20160824112121.GA4920@acm.fritz.box> References: <87oa4j7qdq.fsf@gmail.com> <20160823170000.GA13678@acm.fritz.box> <87oa4ituj4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87oa4ituj4.fsf@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 24292 Cc: 24292@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) On Wed, Aug 24, 2016 at 02:26:15PM +0530, nullx002 wrote: > Alan Mackenzie writes: > initially i added LV using commands and that automatically added it at > the bottom of the buffer/file and it didn't work in that case for both > large and small files. but when i added those line manually by hand as > you suggested it worked. (for both large and small files) Glad to hear it! > however there is a problem as i have to add extra top-level heading just > above the LV block as to avoid it messing up with the org-drill and > org-drill-table-generate i use to create :drill: for those org > files. it works well for me now with :noexport: tag for that last > heading for LV block. is there a better way to achieve what i am trying > to do without adding a dummy header for LV block at the end of the file? This is where your removal of the bug list address from the Cc: counts against you. I actually know nothing about org mode, but other people reading the list actually know quite a lot. However, I looked into the org mode manual, and see you can write comments by starting a line with "#". The "Local Variables:" line is quite happy being after a comment marker, so you could write your LV list entirely in org mode comments: # Local Variables: # ... # End: > thanks for you quick reply it was very helpful. Just one or two tips on getting quick help in the future. Your post would have been more appropriate on help-gnu-emacs@gnu.org, since it was not clear that it was an actual Emacs bug. (As it turned out, it wasn't.) Please, as already mentioned, leave in the list address when you reply. That way, more people get to see the problem, and there is a complete record of the thread in the archives. Anyways, I hope you can now get things sorted out, and continue being a happy Emacs user. :-) -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 24 11:36:10 2016 Received: (at control) by debbugs.gnu.org; 24 Aug 2016 15:36:10 +0000 Received: from localhost ([127.0.0.1]:39260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcaDl-0000Jb-02 for submit@debbugs.gnu.org; Wed, 24 Aug 2016 11:36:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcaDe-0000Iz-Cr for control@debbugs.gnu.org; Wed, 24 Aug 2016 11:36:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcaDY-0007W2-Fr for control@debbugs.gnu.org; Wed, 24 Aug 2016 11:35:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcaDY-0007Vj-CZ for control@debbugs.gnu.org; Wed, 24 Aug 2016 11:35:52 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bcaDX-0005rQ-Vj for control@debbugs.gnu.org; Wed, 24 Aug 2016 11:35:52 -0400 Subject: control message for bug 24292 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 24 Aug 2016 11:35:51 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) tag 24292 notabug close 24292 From unknown Mon Aug 18 14:24:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 22 Sep 2016 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