Is ability to set local variables for files broken in the beta?
I don't use it a lot, but I use it sometimes. I just did it on a
text file that I use frequently and got a backtrace. So I
tried it again on a LaTeX file I rarely visit, and got another
one.
Here's what I have at the end of the LaTeX file:
% Local Variables:
% mode: latex
% TeX-master: t
% End:
This is unchanged for years, and is standard boilerplate I put at the
end of most every LaTeX file. Here's what I get in another buffer when
I visit it.
The message is similar when I visit an ordinary text file with local variables
set, i.e., the complaint is about a missing prefix:
(5) (local-variables/warning) Error in File local-variables: Local
variables entry is missing the prefix
Backtrace follows:
backtrace(nil t)
# bind (standard-output standard-output handler-arg-name)
backtrace-in-condition-handler-eliminating-handler(#:call-trapping-errors-Ldc9FC5Hr)
# bind (errstr #:call-trapping-errors-Ldc9FC5Hr)
#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc")
(#:call-trapping-errors-Ldc9FC5Hr) "...(17)"
[#:call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn
local-variables warning "Error in %s: %s\n\nBacktrace follows:\n\n%s"
"File local-variables"
backtrace-in-condition-handler-eliminating-handler] 8 0x687>((error
"Local variables entry is missing the prefix"))
signal(error ("Local variables entry is missing the prefix"))
# bind (args datum)
cerror("Local variables entry is missing the prefix")
apply(cerror "Local variables entry is missing the prefix" nil)
# bind (args datum)
error("Local variables entry is missing the prefix")
# bind (enable-local-eval continue prefix prefixlen suffix start)
# (unwind-protect ...)
# bind (force)
hack-local-variables-last-page(nil)
# bind (force)
hack-local-variables(nil)
#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc") nil "...(5)"
[find-file hack-local-variables] 2 0x688>()
# (unwind-protect ...)
call-with-condition-handler(#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc")
(#:call-trapping-errors-Ldc9FC5Hr) "...(17)"
[#:call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn
local-variables warning "Error in %s: %s\n\nBacktrace follows:\n\n%s"
"File local-variables"
backtrace-in-condition-handler-eliminating-handler] 8 0x687>
#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc") nil "...(5)"
[find-file hack-local-variables] 2 0x688>)
# (condition-case ... . ((error)))
# bind (find-file)
normal-mode(t)
# bind (nomodes after-find-file-from-revert-buffer noauto warn error)
after-find-file(nil t)
# (unwind-protect ...)
# bind (inhibit-read-only error number truename rawfile nowarn filename buf)
find-file-noselect-1(#<buffer "writingnotebook.txt">
"/Users/lnewton/write/writingnotebook.txt" nil nil
"/Users/lnewton/write/writingnotebook.txt" (3147726 16777224))
byte-code("..." [number truename rawfile nowarn filename buf
set-buffer-major-mode find-file-noselect-1] 7)
# (condition-case ... . ((t (byte-code " !ˆÃ @ A\"‡" [buf data
kill-buffer signal] 3))))
# bind (number truename buf wildcards rawfile nowarn filename)
find-file-noselect("~/write/writingnotebook.txt" nil nil nil)
# bind (coding-system-for-read wildcards codesys filename)
find-file("~/write/writingnotebook.txt")
# bind (calc-flag notebook-file)
notebook-entry("~/write/writingnotebook.txt" t)
(if (not arg) (notebook-entry write-notebook t) (notebook-entry
write-notebook nil))
# bind (arg)
write-notebook-entry(nil)
# bind (command-debug-status)
call-interactively(write-notebook-entry)
(dispatch-event "[internal]")
# (condition-case ... . error)
# (catch top-level ...)
(6) (custom/warning) custom: widget custom-variable, option
LaTeX-section-hook has no associated group
(7) (local-variables/warning) Error in File local-variables: Local
variables entry is missing the prefix
Backtrace follows:
backtrace(nil t)
# bind (standard-output standard-output handler-arg-name)
backtrace-in-condition-handler-eliminating-handler(#:call-trapping-errors-Ldc9FC5Hr)
# bind (errstr #:call-trapping-errors-Ldc9FC5Hr)
#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc")
(#:call-trapping-errors-Ldc9FC5Hr) "...(17)"
[#:call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn
local-variables warning "Error in %s: %s\n\nBacktrace follows:\n\n%s"
"File local-variables"
backtrace-in-condition-handler-eliminating-handler] 8 0x687>((error
"Local variables entry is missing the prefix"))
signal(error ("Local variables entry is missing the prefix"))
# bind (args datum)
cerror("Local variables entry is missing the prefix")
apply(cerror "Local variables entry is missing the prefix" nil)
# bind (args datum)
error("Local variables entry is missing the prefix")
# bind (enable-local-eval continue prefix prefixlen suffix start)
# (unwind-protect ...)
# bind (force)
hack-local-variables-last-page(nil)
# bind (force)
hack-local-variables(nil)
#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc") nil "...(5)"
[find-file hack-local-variables] 2 0x688>()
# (unwind-protect ...)
call-with-condition-handler(#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc")
(#:call-trapping-errors-Ldc9FC5Hr) "...(17)"
[#:call-trapping-errors-Ldc9FC5Hr errstr error-message-string lwarn
local-variables warning "Error in %s: %s\n\nBacktrace follows:\n\n%s"
"File local-variables"
backtrace-in-condition-handler-eliminating-handler] 8 0x687>
#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc") nil "...(5)"
[find-file hack-local-variables] 2 0x688>)
# (condition-case ... . ((error)))
# bind (find-file)
normal-mode(t)
# bind (nomodes after-find-file-from-revert-buffer noauto warn error)
after-find-file(nil t)
# (unwind-protect ...)
# bind (inhibit-read-only error number truename rawfile nowarn filename buf)
find-file-noselect-1(#<buffer "glossary.tex">
"/Users/lnewton/th/gl/v7.2/glossary.tex" nil nil
"/Users/lnewton/th/gl/v7.2/glossary.tex" (1100365 16777224))
byte-code("..." [number truename rawfile nowarn filename buf
set-buffer-major-mode find-file-noselect-1] 7)
# (condition-case ... . ((t (byte-code " !ˆÃ @ A\"‡" [buf data
kill-buffer signal] 3))))
# bind (number truename buf wildcards rawfile nowarn filename)
find-file-noselect("~/th/gl/v7.2/glossary.tex" nil nil t)
# bind (coding-system-for-read wildcards codesys filename)
#<compiled-function (from find-file) (filename &optional codesys
wildcards) "...(37)" [wildcards filename coding-system-for-read thunk
value codesys check-coding-system find-file-noselect nil
#<compiled-function (from
"/Users/lnewton/xemacs/xemacs-21.5.33/lisp/files.elc") (buffer)
"...(21)" [buffer buffer-file-name file-exists-p set-buffer-modified-p
t switch-to-buffer] 3 0x66c> mapcar] 5 1242796 (list (read-file-name
"Find file: ") (and current-prefix-arg (read-coding-system "Coding
system: ")) t) 0x66d>("~/th/gl/v7.2/glossary.tex" nil t)
call-interactively(find-file)
(dispatch-event "[internal]")
# (condition-case ... . error)
# (catch top-level ...)
--
Lynn David Newton
Columbus, Ohio
neologisticsediting.com
lynndavidnewton.com
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta