From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#24292: # Local Variables: not working Date: Tue, 23 Aug 2016 17:00:00 +0000 Message-ID: <20160823170000.GA13678@acm.fritz.box> References: <87oa4j7qdq.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1471971682 26227 195.159.176.226 (23 Aug 2016 17:01:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2016 17:01:22 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) Cc: 24292@debbugs.gnu.org To: nullx002 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 23 19:01:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcF4f-0006Tr-8S for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Aug 2016 19:01:17 +0200 Original-Received: from localhost ([::1]:47491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcF4c-0000xz-G3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Aug 2016 13:01:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcF4V-0000xd-TI for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 13:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcF4Q-0006Sg-IM for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 13:01:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcF4Q-0006SW-FE for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 13:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bcF4Q-000630-6s for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 13:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Aug 2016 17:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24292 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24292-submit@debbugs.gnu.org id=B24292.147197163223200 (code B ref 24292); Tue, 23 Aug 2016 17:01:02 +0000 Original-Received: (at 24292) by debbugs.gnu.org; 23 Aug 2016 17:00:32 +0000 Original-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 Original-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 Original-Received: (qmail 4644 invoked by uid 3782); 23 Aug 2016 17:00:26 -0000 Original-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 Original-Received: (qmail 13688 invoked by uid 1000); 23 Aug 2016 17:00:00 -0000 Content-Disposition: inline In-Reply-To: <87oa4j7qdq.fsf@gmail.com> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org 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 Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122553 Archived-At: 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).