bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Tue, 12 Feb 2002 11:31:48 +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.

Thanks a lot for these hints. I wish I was more familiar with how to
debug such a problem.

Now I started emacs --no-init-file. I evaluated

(require 'tex-site) ;; enable auctex
(setq enable-local-variables 'maybe)

I am using auctex-11.11.

Attached below are C and lisp backtraces I got with a breakpoint at
message_dolog after emacs displayed the prompt

  "Set local variables as specified at end of my.tex. (y or n)"

Please let me know if there is anything else I can do.

Thanks a lot.

Roland


(gdb) c
Continuing.

Breakpoint 3, message_dolog (m=0x85efa44 "Applying style hooks...", nbytes=23, 
nlflag=1, multibyte=0)
    at xdisp.c:5601
5601      if (!NILP (Vmessage_log_max))
(gdb) backtrace
#0  message_dolog (m=0x85efa44 "Applying style hooks...", nbytes=23, nlflag=1, 
multibyte=0)
    at xdisp.c:5601
#1  0x806d321 in message3 (m=945753404, nbytes=23, multibyte=0) at xdisp.c:5889
#2  0x817d154 in Fmessage (nargs=1, args=0xbfffcdf8) at editfns.c:2959
#3  0x8185d9b in Ffuncall (nargs=2, args=0xbfffcdf4) at eval.c:2636
#4  0x81bfd1b in Fbyte_code (bytestr=944087228, vector=1213662008, maxdepth=5) 
at bytecode.c:716
#5  0x8186701 in funcall_lambda (fun=1211283696, nargs=0, 
arg_vector=0xbfffcf48) at eval.c:2847
#6  0x818601f in Ffuncall (nargs=1, args=0xbfffcf44) at eval.c:2703
#7  0x81bfd1b in Fbyte_code (bytestr=944638892, vector=1213575336, maxdepth=7) 
at bytecode.c:716
#8  0x8186701 in funcall_lambda (fun=1212786832, nargs=0, 
arg_vector=0xbfffd10c) at eval.c:2847
#9  0x818601f in Ffuncall (nargs=1, args=0xbfffd108) at eval.c:2703
#10 0x81857f0 in run_hook_with_args (nargs=1, args=0xbfffd108, 
cond=to_completion) at eval.c:2326
#11 0x8185557 in Frun_hooks (nargs=1, args=0xbfffd1a8) at eval.c:2197
#12 0x8185d9b in Ffuncall (nargs=2, args=0xbfffd1a4) at eval.c:2636
#13 0x8185a0e in call1 (fn=405846756, arg1=405783580) at eval.c:2452
#14 0x810d35a in safe_run_hooks_1 (hook=139351192) at keyboard.c:1785
#15 0x8183891 in internal_condition_case (bfun=0x810d340 <safe_run_hooks_1>, 
handlers=405726956, 
    hfun=0x810d370 <safe_run_hooks_error>) at eval.c:1267
#16 0x810d3ea in safe_run_hooks (hook=405783580) at keyboard.c:1808
#17 0x806fe87 in update_menu_bar (f=0x84e5370, save_match_data=0) at 
xdisp.c:7409
#18 0x806fbde in prepare_menu_bars () at xdisp.c:7317
#19 0x8071a60 in redisplay_internal (preserve_echo_area=0) at xdisp.c:8433
#20 0x8071350 in redisplay () at xdisp.c:8231
#21 0x810dd5a in read_char (commandflag=0, nmaps=0, maps=0x0, 
prev_event=405726956, used_mouse_menu=0x0)
    at keyboard.c:2272
#22 0x819d821 in read_filtered_event (no_switch_frame=1, ascii_required=0, 
error_nonascii=0, 
    input_method=0) at lread.c:438
#23 0x8191d1a in Fy_or_n_p (prompt=945753388) at fns.c:2862
#24 0x8185e73 in Ffuncall (nargs=2, args=0xbfffdad4) at eval.c:2655
#25 0x81bfd1b in Fbyte_code (bytestr=941869776, vector=1210305292, maxdepth=5) 
at bytecode.c:716
#26 0x8184f12 in Feval (form=1478740672) at eval.c:2019
#27 0x8182100 in Fprogn (args=1478740664) at eval.c:431
#28 0x808f750 in Fsave_window_excursion (args=1478740664) at window.c:5331
#29 0x81c0404 in Fbyte_code (bytestr=941869168, vector=1210304956, maxdepth=7) 
at bytecode.c:865
#30 0x8186701 in funcall_lambda (fun=1210304580, nargs=0, 
arg_vector=0xbfffddf8) at eval.c:2847
#31 0x818601f in Ffuncall (nargs=1, args=0xbfffddf4) at eval.c:2703
#32 0x81bfd1b in Fbyte_code (bytestr=941860072, vector=1210295564, maxdepth=1) 
at bytecode.c:716
#33 0x8184f12 in Feval (form=1478730968) at eval.c:2019
#34 0x8183777 in Fcondition_case (args=1482625204) at eval.c:1211
#35 0x81c0510 in Fbyte_code (bytestr=941859812, vector=1210295308, maxdepth=3) 
at bytecode.c:898
#36 0x8186701 in funcall_lambda (fun=1210295220, nargs=1, 
arg_vector=0xbfffe198) at eval.c:2847
#37 0x818601f in Ffuncall (nargs=2, args=0xbfffe194) at eval.c:2703
#38 0x81bfd1b in Fbyte_code (bytestr=941858812, vector=1210294520, maxdepth=6) 
at bytecode.c:716
#39 0x8186701 in funcall_lambda (fun=1210294192, nargs=2, 
arg_vector=0xbfffe2e8) at eval.c:2847
#40 0x818601f in Ffuncall (nargs=3, args=0xbfffe2e4) at eval.c:2703
#41 0x81bfd1b in Fbyte_code (bytestr=941856492, vector=1210292144, maxdepth=4) 
at bytecode.c:716
#42 0x8186701 in funcall_lambda (fun=1210291876, nargs=6, 
arg_vector=0xbfffe428) at eval.c:2847
#43 0x818601f in Ffuncall (nargs=7, args=0xbfffe424) at eval.c:2703
#44 0x81bfd1b in Fbyte_code (bytestr=941854472, vector=1210290460, maxdepth=8) 
at bytecode.c:716
#45 0x8186701 in funcall_lambda (fun=1210289860, nargs=4, 
arg_vector=0xbfffe578) at eval.c:2847
#46 0x818601f in Ffuncall (nargs=5, args=0xbfffe574) at eval.c:2703
#47 0x81bfd1b in Fbyte_code (bytestr=941850132, vector=1210285632, maxdepth=6) 
at bytecode.c:716
#48 0x8186701 in funcall_lambda (fun=1210285532, nargs=1, 
arg_vector=0xbfffe6c8) at eval.c:2847
#49 0x818601f in Ffuncall (nargs=2, args=0xbfffe6c4) at eval.c:2703
#50 0x81bfd1b in Fbyte_code (bytestr=942243500, vector=1210680576, maxdepth=11) 
at bytecode.c:716
#51 0x8186701 in funcall_lambda (fun=1210678924, nargs=1, 
arg_vector=0xbfffe828) at eval.c:2847
#52 0x818601f in Ffuncall (nargs=2, args=0xbfffe824) at eval.c:2703
#53 0x81bfd1b in Fbyte_code (bytestr=942234152, vector=1210670848, maxdepth=5) 
at bytecode.c:716
#54 0x8186701 in funcall_lambda (fun=1210669584, nargs=0, 
arg_vector=0xbfffe978) at eval.c:2847
#55 0x818601f in Ffuncall (nargs=1, args=0xbfffe974) at eval.c:2703
#56 0x81bfd1b in Fbyte_code (bytestr=942230240, vector=1210665840, maxdepth=5) 
at bytecode.c:716
#57 0x8186701 in funcall_lambda (fun=1210665672, nargs=0, 
arg_vector=0xbfffea64) at eval.c:2847
#58 0x81862ce in apply_lambda (fun=1210665672, args=405726908, eval_flag=1) at 
eval.c:2766
#59 0x818506a in Feval (form=1480593460) at eval.c:2055
#60 0x810b9b4 in top_level_2 () at keyboard.c:1254
#61 0x8183891 in internal_condition_case (bfun=0x810b9a0 <top_level_2>, 
handlers=405823228, 
    hfun=0x810b640 <cmd_error>) at eval.c:1267
#62 0x810b9fb in top_level_1 () at keyboard.c:1262
#63 0x81832c7 in internal_catch (tag=405784836, func=0x810b9d0 <top_level_1>, 
arg=405726908)
    at eval.c:1030
#64 0x810b901 in command_loop () at keyboard.c:1223
#65 0x810b348 in recursive_edit_1 () at keyboard.c:950
#66 0x810b4b7 in Frecursive_edit () at keyboard.c:1006
#67 0x8109d68 in main (argc=2, argv=0xbffff0b4, envp=0xbffff0c0) at emacs.c:1547
#68 0x4031aa8e in __libc_start_main (main=0x8108e70 <main>, argc=2, 
argv=0xbffff0b4, 
    init=0x804d9ec <_init>, fini=0x81e812c <_fini>, rtld_fini=0x4000aa50 
<_dl_fini>, 
    stack_end=0xbffff0ac) at ../sysdeps/generic/libc-start.c:92
(gdb) xbacktrace
0x820aad8 "message"
0x855d39c "TeX-update-style"
0x8537220 "LaTeX-menu-update"
0x8206964 "run-hooks"
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) 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]