GNU bug report logs - #24292
# Local Variables: not working

Previous Next

Package: emacs;

Reported by: nullx002 <nullx002 <at> gmail.com>

Date: Tue, 23 Aug 2016 15:28:02 UTC

Severity: normal

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: nullx002 <nullx002 <at> gmail.com>
To: 24292 <at> debbugs.gnu.org
Subject: bug#24292: # Local Variables: not working
Date: Tue, 23 Aug 2016 15:34:33 +0530

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

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




This bug report was last modified 8 years and 332 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.