GNU bug report logs -
#25564
11.90; XEmacs lacks file-local-variables-alist and reports error.
Previous Next
Reported by: Ikumi Keita <ikumi <at> ikumi.que.jp>
Date: Sat, 28 Jan 2017 16:11:01 UTC
Severity: normal
Found in version 11.90
Done: Tassilo Horn <tsdh <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 25564 in the body.
You can then email your comments to 25564 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Sat, 28 Jan 2017 16:11:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ikumi Keita <ikumi <at> ikumi.que.jp>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Sat, 28 Jan 2017 16:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.
Be sure to consult the FAQ section in the manual before submitting
a bug report. In addition check if the bug is reproducable with an
up-to-date version of AUCTeX. So please upgrade to the version
available from http://www.gnu.org/software/auctex/ if your
installation is older than the one available from the web site.
If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.
Your report will be posted for the auctex package at the GNU bug
tracker. Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=auctex
to browse existing AUCTeX bugs.
------------------------------------------------------------------------
Opening circ.tex with xemacs leads to the following error:
----------------------------------------------------------------------
(1) (local-variables/warning) File local-variables error: Symbol's value as variable is void: file-local-variables-alist
----------------------------------------------------------------------
Grepping over the *.el files in auctex directory, it seems that the
function font-latex-after-hacking-local-variables in font-latex.el
triggers this error. Probably suitable boundp test is necessary.
Emacs : XEmacs 21.4 (patch 24) "Standard C" [Lucid] (amd64-unknown-freebsd11.0, Mule) of Thu Jan 12 2017 on freebsd.vmware
Package: 11.90
current state:
==============
(setq
AUCTeX-date "2017-01-10"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("/usr/local/var/auctex/"
"/usr/local/lib/xemacs/xemacs-packages/etc/auctex/style"
"/home/keita/.emacs.d/auctex/auto"
"/home/keita/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
TeX-command-list '(("TeX"
"%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t"
TeX-run-TeX nil
(plain-tex-mode ams-tex-mode texinfo-mode) :help
"Run plain TeX")
("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
(latex-mode doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo %(extraopts) --html %t"
TeX-run-compile nil (texinfo-mode) :help
"Run Makeinfo with HTML output")
("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t"
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt"
"%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
TeX-run-TeX nil (context-mode) :help
"Run ConTeXt until completion")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
"Run BibTeX")
("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
("View" "%V" TeX-run-discard-or-function t t :help
"Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help
"View the printer queue" :visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help
"Generate PostScript file")
("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help
"Convert DVI file to PostScript")
("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help
"Convert DVI file to PDF with dvipdfmx")
("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help
"Convert PostScript file to PDF")
("Index" "makeindex %s" TeX-run-index nil t :help
"Run makeindex to create index file")
("Xindy" "texindy %s" TeX-run-command nil t :help
"Run xindy to create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for correctness")
("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for common mistakes")
("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
t :help "Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t :help
"Delete generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
"Delete generated intermediate and output files")
("Other" "" TeX-run-command t t :help
"Run an arbitrary command")
)
)
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 06:58:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
Hi Ikumi,
> Opening circ.tex with xemacs leads to the following error:
> ----------------------------------------------------------------------
> (1) (local-variables/warning) File local-variables error: Symbol's value as variable is void: file-local-variables-alist
> ----------------------------------------------------------------------
> Grepping over the *.el files in auctex directory, it seems that the
> function font-latex-after-hacking-local-variables in font-latex.el
> triggers this error. Probably suitable boundp test is necessary.
Argh, a bug I introduced shortly before the release. ;-)
Do you know if XEmacs has some similar feature, i.e., a way to check
which variables have been set using file (or directory) local variables?
For reference, `file-local-variables-alist' is
((LaTeX-verbatim-macros-with-braces-local "hugo")
(fill-column . 120))
in a buffer containing
% Local Variables:
% fill-column: 120
% End:
that corresponds to a file in a directory with a .dir-locals.el
containing
((latex-mode . ((LaTeX-verbatim-macros-with-braces-local . ("hugo")))))
[I think XEmacs has no directory local variables, so we can probably
ignore that.]
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 13:36:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
> Do you know if XEmacs has some similar feature, i.e., a way to check
> which variables have been set using file (or directory) local variables?
Hmm, now I'm looking at files.el of xemacs and unfortunately xemacs
doesn't seem to have such features.
Bye,
Ikumi Keita
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 17:20:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
2017-02-01 7:57 GMT+01:00 Tassilo Horn <tsdh <at> gnu.org>:
> Do you know if XEmacs has some similar feature, i.e., a way to check
> which variables have been set using file (or directory) local variables?
If you want to check whether a variable was set locally in a
XEmacs-compatible way you can use:
(local-variable-p 'variable-name (current-buffer))
This is what is done in style/biblatex.el ;-)
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 18:13:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Mosè Giordano <mose <at> gnu.org> writes:
Hi Mosè & Ikumi,
>> Do you know if XEmacs has some similar feature, i.e., a way to check
>> which variables have been set using file (or directory) local
>> variables?
>
> If you want to check whether a variable was set locally in a
> XEmacs-compatible way you can use:
>
> (local-variable-p 'variable-name (current-buffer))
>
> This is what is done in style/biblatex.el ;-)
No, that won't help here. I need to know where that local binding came
from. The reason is `LaTeX-verbatim-environments-local' and friends are
always buffer-local. Styles like minted or lstlistings add to those
lists to make font-latex aware of the fact that, e.g., clojurecode, is a
verbatim environment generated by minted and should be highlighted as
such. When such a style is loaded, a font-lock refresh is triggered to
put that into effect.
However, a user might also have
% Local Variables:
% LaTeX-verbatim-environments-local: ("mycode")
% End:
and the new function added to `hack-local-variables-hook' will then also
trigger a font-lock refresh.
Well, maybe we could rely that `hack-local-variables-hook' is always
executed before styles are applied (when finding a TeX file or running
`TeX-normal-mode'). In that case, if any of these variables in question
do have a local non-nil binding, then we trigger a font-lock refresh.
So we might trigger it too often but I guess that's acceptable.
Ikumi, I'll implement that now. Could you please check if it works as
expected in the coming days?
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 18:30:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Tassilo Horn <tsdh <at> gnu.org> writes:
> Ikumi, I'll implement that now. Could you please check if it works as
> expected in the coming days?
Pushed with commit d54e7472.
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 18:58:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 25564 <at> debbugs.gnu.org (full text, mbox):
2017-02-01 10:29 GMT-08:00 Tassilo Horn <tsdh <at> gnu.org>:
> Tassilo Horn <tsdh <at> gnu.org> writes:
>
>> Ikumi, I'll implement that now. Could you please check if it works as
>> expected in the coming days?
>
> Pushed with commit d54e7472.
The second argument of `local-variable-p' is mandatory in XEmacs ;-)
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 19:21:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Gosh, can you please clean up after me? I'm already in the bringing sick
son to bed business which might take a while.
If not, no problem, I'll fix it tomorrow.
Bye,
Tassilo
Am 1. Februar 2017 19:57:12 schrieb Mosè Giordano <mose <at> gnu.org>:
> 2017-02-01 10:29 GMT-08:00 Tassilo Horn <tsdh <at> gnu.org>:
>> Tassilo Horn <tsdh <at> gnu.org> writes:
>>
>>> Ikumi, I'll implement that now. Could you please check if it works as
>>> expected in the coming days?
>>
>> Pushed with commit d54e7472.
>
> The second argument of `local-variable-p' is mandatory in XEmacs ;-)
>
> Bye,
> Mosè
>
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 19:43:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 25564 <at> debbugs.gnu.org (full text, mbox):
2017-02-01 11:20 GMT-08:00 Tassilo Horn <tsdh <at> gnu.org>:
> Gosh, can you please clean up after me? I'm already in the bringing sick son
> to bed business which might take a while.
Done.
Bye,
Mosè
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Wed, 01 Feb 2017 19:50:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Thank you. My job here is almost done, too. ;-)
Am 1. Februar 2017 20:42:54 schrieb Mosè Giordano <mose <at> gnu.org>:
> 2017-02-01 11:20 GMT-08:00 Tassilo Horn <tsdh <at> gnu.org>:
>> Gosh, can you please clean up after me? I'm already in the bringing sick son
>> to bed business which might take a while.
>
> Done.
>
> Bye,
> Mosè
>
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Thu, 02 Feb 2017 13:08:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Hi Tassilo,
> Ikumi, I'll implement that now. Could you please check if it works as
> expected in the coming days?
With the updated code, the error went away. Thank you.
Bye,
Ikumi Keita
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Thu, 02 Feb 2017 13:54:01 GMT)
Full text and
rfc822 format available.
Message #38 received at 25564 <at> debbugs.gnu.org (full text, mbox):
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
>> Ikumi, I'll implement that now. Could you please check if it works as
>> expected in the coming days?
>
> With the updated code, the error went away. Thank you.
Did you also check that the feature works? That is, that the code
between | and | in
\mycode|(lambda () "wohoo")|
is highlighted as verbatim in a file with
%% Local Variables:
%% LaTeX-verbatim-macros-with-delims: ("mycode")
%% End:
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#25564
; Package
auctex
.
(Thu, 02 Feb 2017 14:19:01 GMT)
Full text and
rfc822 format available.
Message #41 received at 25564 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Tassilo,
> Did you also check that the feature works? That is, that the code
> between | and | in
> \mycode|(lambda () "wohoo")|
> is highlighted as verbatim in a file with
> %% Local Variables:
> %% LaTeX-verbatim-macros-with-delims: ("mycode")
> %% End:
I checked with the given example. It seems that highlighting works as
expected. See the attached images, please.
Bye,
Ikumi Keita
[xemacs-normal.png (image/png, attachment)]
[xemacs-reverse.png (image/png, attachment)]
Reply sent
to
Tassilo Horn <tsdh <at> gnu.org>
:
You have taken responsibility.
(Thu, 02 Feb 2017 16:13:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ikumi Keita <ikumi <at> ikumi.que.jp>
:
bug acknowledged by developer.
(Thu, 02 Feb 2017 16:13:02 GMT)
Full text and
rfc822 format available.
Message #46 received at 25564-done <at> debbugs.gnu.org (full text, mbox):
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
Hi Ikumi,
>> Did you also check that the feature works? That is, that the code
>> between | and | in
>
>> \mycode|(lambda () "wohoo")|
>
>> is highlighted as verbatim in a file with
>
>> %% Local Variables:
>> %% LaTeX-verbatim-macros-with-delims: ("mycode")
>> %% End:
>
> I checked with the given example. It seems that highlighting works as
> expected. See the attached images, please.
Perfect, thanks a lot. I close this issue then.
Bye,
Tassilo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 03 Mar 2017 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 107 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.