GNU bug report logs -
#24292
# Local Variables: not working
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24292 in the body.
You can then email your comments to 24292 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24292
; Package
emacs
.
(Tue, 23 Aug 2016 15:28:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
nullx002 <nullx002 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 23 Aug 2016 15:28:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24292
; Package
emacs
.
(Tue, 23 Aug 2016 17:01:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24292 <at> debbugs.gnu.org (full text, mbox):
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).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#24292
; Package
emacs
.
(Wed, 24 Aug 2016 11:22:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 24292 <at> debbugs.gnu.org (full text, mbox):
On Wed, Aug 24, 2016 at 02:26:15PM +0530, nullx002 wrote:
> Alan Mackenzie <acm <at> muc.de> 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 <at> 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).
Added tag(s) notabug.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 24 Aug 2016 15:37:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
24292 <at> debbugs.gnu.org and nullx002 <nullx002 <at> gmail.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 24 Aug 2016 15:37:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 22 Sep 2016 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 330 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.