[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enable-local-variables 'maybe
From: |
Roland Winkler |
Subject: |
Re: enable-local-variables 'maybe |
Date: |
Wed, 13 Feb 2002 14:24:29 +0100 |
On Mon Feb 11 2002 Richard Stallman wrote:
> To be more specific: Most often I use file local variables in the
> context of auctex. Then, instead of the above prompt I get
>
> Updating modify environment menu...
> Updating...done
>
> which I will confirm or reject by typing `y' or `n'.
> That's odd.
>
> Those look like echo area messages. It is strange that those echo
> area messages can appear in the middle of y-or-n-p. It could be that
> this constitutes an Emacs bug, that auc-tex should be unable to
> achieve this result no matter what it tries to do.
>
> However, there is no way to come to conclusions about questions like
> this until we know precisely how the problem happens. Can you run
> under GDB with a breakpoint at message_dolog to determine what outputs
> these messages? A C backtrace and a Lisp backtrace from that point,
> made with backtrace and xbacktrace, might tell us enough to figure
> things out.
>
> See etc/DEBUG for more debugging hints.
I guess that the following is essentially the same problem
(though it does not require auctex).
Suppose I have the following bibtex file
cat > foo.bib <<EOF
@Book{abr64,
author = {M. Abramowitz and I. A. Stegun},
title = {Handbook of Mathematical Functions},
publisher = {US National Bureau of Standards},
year = 1964,
address = {Dover, New York},
}
%%% Local Variables:
%%% fill-column: 77
%%% End:
EOF
I run GNU emacs 21.1 --no-init-file with
(setq-default bibtex-maintain-sorted-entries t)
(setq enable-local-variables 'maybe)
I load file foo.bib.
Emacs will ask
"Set local variables as specified at end of foo.bib? (y or n)"
However, this prompt is overriden by the messages
foo.bib: parsing reference keys (0%)
foo.bib: parsing reference keys (done)
Then, when I type `y', I get the error message:
"File local-variables error: (error "Missing colon in local variables entry")
When I set a breakpoint at message_dolog, I get the backtrace
attached below.
Roland
(gdb) c
Continuing.
Breakpoint 3, message_dolog (m=0x8586a80 "foo.bib: parsing reference keys
(0%)", nbytes=36, nlflag=1,
multibyte=0) at xdisp.c:5601
5601 if (!NILP (Vmessage_log_max))
(gdb) bt
#0 message_dolog (m=0x8586a80 "foo.bib: parsing reference keys (0%)",
nbytes=36, nlflag=1, multibyte=0)
at xdisp.c:5601
#1 0x806d321 in message3 (m=943618180, nbytes=36, multibyte=0) at xdisp.c:5889
#2 0x817d154 in Fmessage (nargs=2, args=0xbfffcca8) at editfns.c:2959
#3 0x8185d9b in Ffuncall (nargs=3, args=0xbfffcca4) at eval.c:2636
#4 0x81bfd1b in Fbyte_code (bytestr=944994348, vector=1211566240, maxdepth=4)
at bytecode.c:716
#5 0x8186701 in funcall_lambda (fun=1212213864, nargs=1,
arg_vector=0xbfffcde8) at eval.c:2847
#6 0x818601f in Ffuncall (nargs=2, args=0xbfffcde4) at eval.c:2703
#7 0x81bfd1b in Fbyte_code (bytestr=945223476, vector=1213691056, maxdepth=3)
at bytecode.c:716
#8 0x8186701 in funcall_lambda (fun=1213691224, nargs=3,
arg_vector=0xbfffcf28) at eval.c:2847
#9 0x818601f in Ffuncall (nargs=4, args=0xbfffcf24) at eval.c:2703
#10 0x81bfd1b in Fbyte_code (bytestr=945226732, vector=1212381136, maxdepth=4)
at bytecode.c:716
#11 0x8186701 in funcall_lambda (fun=1213692472, nargs=0,
arg_vector=0xbfffd11c) at eval.c:2847
#12 0x818601f in Ffuncall (nargs=1, args=0xbfffd118) at eval.c:2703
#13 0x818531b in Fapply (nargs=2, args=0xbfffd118) at eval.c:2114
#14 0x8185d9b in Ffuncall (nargs=3, args=0xbfffd114) at eval.c:2636
#15 0x81bfd1b in Fbyte_code (bytestr=942201160, vector=1210636652, maxdepth=4)
at bytecode.c:716
#16 0x8184f12 in Feval (form=1479072056) at eval.c:2019
#17 0x8183777 in Fcondition_case (args=1481823908) at eval.c:1211
#18 0x81c0510 in Fbyte_code (bytestr=942200920, vector=1210636500, maxdepth=5)
at bytecode.c:898
#19 0x8186701 in funcall_lambda (fun=1210636340, nargs=1,
arg_vector=0xbfffd4e8) at eval.c:2847
#20 0x818601f in Ffuncall (nargs=2, args=0xbfffd4e4) at eval.c:2703
#21 0x8185a0e in call1 (fn=405781388, arg1=1211560888) at eval.c:2452
#22 0x8110ed5 in timer_check (do_it_now=1) at keyboard.c:4074
#23 0x810f8fc in readable_events (do_timers_now=1) at keyboard.c:3152
#24 0x8113d66 in get_input_pending (addr=0x82e6b84, do_timers_now=1) at
keyboard.c:6023
#25 0x811a727 in detect_input_pending_run_timers (do_display=1) at
keyboard.c:9444
#26 0x81c5f91 in wait_reading_process_input (time_limit=0, microsecs=0,
read_kbd=268435455, do_display=1)
at process.c:2686
#27 0x810ffc6 in kbd_buffer_get_event (kbp=0xbfffd838, used_mouse_menu=0x0) at
keyboard.c:3517
#28 0x810e641 in read_char (commandflag=0, nmaps=0, maps=0x0,
prev_event=405726956, used_mouse_menu=0x0)
at keyboard.c:2581
#29 0x819d821 in read_filtered_event (no_switch_frame=1, ascii_required=0,
error_nonascii=0,
input_method=0) at lread.c:438
#30 0x8191d1a in Fy_or_n_p (prompt=943634108) at fns.c:2862
#31 0x8185e73 in Ffuncall (nargs=2, args=0xbfffdae4) at eval.c:2655
#32 0x81bfd1b in Fbyte_code (bytestr=941869776, vector=1210305292, maxdepth=5)
at bytecode.c:716
#33 0x8184f12 in Feval (form=1478740672) at eval.c:2019
#34 0x8182100 in Fprogn (args=1478740664) at eval.c:431
#35 0x808f750 in Fsave_window_excursion (args=1478740664) at window.c:5331
#36 0x81c0404 in Fbyte_code (bytestr=941869168, vector=1210304956, maxdepth=7)
at bytecode.c:865
#37 0x8186701 in funcall_lambda (fun=1210304580, nargs=0,
arg_vector=0xbfffde08) at eval.c:2847
#38 0x818601f in Ffuncall (nargs=1, args=0xbfffde04) at eval.c:2703
#39 0x81bfd1b in Fbyte_code (bytestr=941860072, vector=1210295564, maxdepth=1)
at bytecode.c:716
#40 0x8184f12 in Feval (form=1478730968) at eval.c:2019
#41 0x8183777 in Fcondition_case (args=1481819812) at eval.c:1211
#42 0x81c0510 in Fbyte_code (bytestr=941859812, vector=1210295308, maxdepth=3)
at bytecode.c:898
#43 0x8186701 in funcall_lambda (fun=1210295220, nargs=1,
arg_vector=0xbfffe1a8) at eval.c:2847
#44 0x818601f in Ffuncall (nargs=2, args=0xbfffe1a4) at eval.c:2703
#45 0x81bfd1b in Fbyte_code (bytestr=941858812, vector=1210294520, maxdepth=6)
at bytecode.c:716
#46 0x8186701 in funcall_lambda (fun=1210294192, nargs=2,
arg_vector=0xbfffe2f8) at eval.c:2847
#47 0x818601f in Ffuncall (nargs=3, args=0xbfffe2f4) at eval.c:2703
#48 0x81bfd1b in Fbyte_code (bytestr=941856492, vector=1210292144, maxdepth=4)
at bytecode.c:716
#49 0x8186701 in funcall_lambda (fun=1210291876, nargs=6,
arg_vector=0xbfffe438) at eval.c:2847
#50 0x818601f in Ffuncall (nargs=7, args=0xbfffe434) at eval.c:2703
#51 0x81bfd1b in Fbyte_code (bytestr=941854472, vector=1210290460, maxdepth=8)
at bytecode.c:716
#52 0x8186701 in funcall_lambda (fun=1210289860, nargs=4,
arg_vector=0xbfffe588) at eval.c:2847
#53 0x818601f in Ffuncall (nargs=5, args=0xbfffe584) at eval.c:2703
#54 0x81bfd1b in Fbyte_code (bytestr=941850132, vector=1210285632, maxdepth=6)
at bytecode.c:716
#55 0x8186701 in funcall_lambda (fun=1210285532, nargs=1,
arg_vector=0xbfffe6d8) at eval.c:2847
#56 0x818601f in Ffuncall (nargs=2, args=0xbfffe6d4) at eval.c:2703
#57 0x81bfd1b in Fbyte_code (bytestr=942243500, vector=1210680576, maxdepth=11)
at bytecode.c:716
#58 0x8186701 in funcall_lambda (fun=1210678924, nargs=1,
arg_vector=0xbfffe838) at eval.c:2847
#59 0x818601f in Ffuncall (nargs=2, args=0xbfffe834) at eval.c:2703
#60 0x81bfd1b in Fbyte_code (bytestr=942234152, vector=1210670848, maxdepth=5)
at bytecode.c:716
#61 0x8186701 in funcall_lambda (fun=1210669584, nargs=0,
arg_vector=0xbfffe988) at eval.c:2847
#62 0x818601f in Ffuncall (nargs=1, args=0xbfffe984) at eval.c:2703
#63 0x81bfd1b in Fbyte_code (bytestr=942230240, vector=1210665840, maxdepth=5)
at bytecode.c:716
#64 0x8186701 in funcall_lambda (fun=1210665672, nargs=0,
arg_vector=0xbfffea74) at eval.c:2847
#65 0x81862ce in apply_lambda (fun=1210665672, args=405726908, eval_flag=1) at
eval.c:2766
#66 0x818506a in Feval (form=1480593460) at eval.c:2055
#67 0x810b9b4 in top_level_2 () at keyboard.c:1254
#68 0x8183891 in internal_condition_case (bfun=0x810b9a0 <top_level_2>,
handlers=405823228,
hfun=0x810b640 <cmd_error>) at eval.c:1267
#69 0x810b9fb in top_level_1 () at keyboard.c:1262
#70 0x81832c7 in internal_catch (tag=405784836, func=0x810b9d0 <top_level_1>,
arg=405726908)
at eval.c:1030
#71 0x810b901 in command_loop () at keyboard.c:1223
#72 0x810b348 in recursive_edit_1 () at keyboard.c:950
#73 0x810b4b7 in Frecursive_edit () at keyboard.c:1006
#74 0x8109d68 in main (argc=2, argv=0xbffff0c4, envp=0xbffff0d0) at emacs.c:1547
#75 0x4031aa8e in __libc_start_main (main=0x8108e70 <main>, argc=2,
argv=0xbffff0c4,
init=0x804d9ec <_init>, fini=0x81e812c <_fini>, rtld_fini=0x4000aa50
<_dl_fini>,
stack_end=0xbffff0bc) at ../sysdeps/generic/libc-start.c:92
(gdb) xbacktrace
0x820aad8 "message"
0x8568600 "bibtex-progress-message"
0x856dd38 "bibtex-parse-keys"
0x48577a38 PVEC_COMPILED
0x8206bc4 "apply"
0x8208e58 "byte-code"
0x82038f4 "timer-event-handler"
0x82076c8 "y-or-n-p"
0x8208e58 "byte-code"
0x823a39c "hack-local-variables"
0x8208e58 "byte-code"
0x8239f54 "normal-mode"
0x823967c "after-find-file"
0x8238e88 "find-file-noselect-1"
0x8237dc8 "find-file-noselect"
0x8223fe4 "find-file"
0x8295a00 "command-line-1"
0x8294ab8 "command-line"
0x82933d0 "normal-top-level"
(gdb)
- enable-local-variables 'maybe, Roland Winkler, 2002/02/10
- Re: enable-local-variables 'maybe, Richard Stallman, 2002/02/11
- Re: enable-local-variables 'maybe, Roland Winkler, 2002/02/12
- Re: enable-local-variables 'maybe, Richard Stallman, 2002/02/13
- Re: enable-local-variables 'maybe, Roland Winkler, 2002/02/13
- Re: enable-local-variables 'maybe, Richard Stallman, 2002/02/14
- Re: enable-local-variables 'maybe, Eli Zaretskii, 2002/02/14
- Re: enable-local-variables 'maybe, Stefan Monnier, 2002/02/14
- Re: enable-local-variables 'maybe, Richard Stallman, 2002/02/16
Re: enable-local-variables 'maybe,
Roland Winkler <=