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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error during redisplay with included diary file


From: Stephen Berman
Subject: Error during redisplay with included diary file
Date: Tue, 06 Dec 2005 12:06:51 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

When I start Emacs normally with my init-file, the following appears
in *Messages*:

Error during redisplay: (invalid-function /home/steve/diary-Abendessen.txt)

I don't see this message in the echo area and don't notice anything
wrong with the display and no other display problems appear to result
from the error.  I just happened to glance at *Messages* after
starting Emacs and saw this, but it may have been happening through
numerous CVS updates, since I've been using the relevant
initialization for many months.

The message only occurs when my Emacs initializations contain the line
(add-hook 'list-diary-entries-hook 'include-other-diary-files).  In
fact, "/home/steve/diary-Abendessen.txt" is an included file for my
diary.  Further, as a string it is the value of a variable used in a
function I wrote modelled on make-diary-entry.  No where in my
initializations is it referenced as a function.  I couldn't find
anything in calendar.el or diary-lib.el that looks like it could
induce this message, but I don't know how to debug lisp files that are
loaded during initialization.  (Starting Emacs with -debug-init
doesn't yield a backtrace, just the same entry in *Messages*.)

I grepped the Emacs sources for "Error during redisplay" and found it
in safe_eval_handler in xdisp.c, so I ran Emacs with my
initializations under gdb and set a breakpoint at that function.  Here
is the backtrace:

Breakpoint 3, safe_eval_handler (arg=140906725) at xdisp.c:2236
2236      add_to_log ("Error during redisplay: %s", arg, Qnil);

#0  safe_eval_handler (arg=140906725) at xdisp.c:2236
#1  0x081508a8 in internal_condition_case_1 (bfun=0x81519c0 <Feval>,
    arg=139399637, handlers=137489449, hfun=0x806c440 <safe_eval_handler>)
    at eval.c:1496
#2  0x08064fad in safe_eval (sexpr=139399637) at xdisp.c:2261
#3  0x080773aa in display_mode_element (it=0xbf8e8e54, depth=1, field_width=0,
    precision=0, elt=<value optimized out>, props=137489401, risky=0)
    at xdisp.c:16587
#4  0x080779a9 in display_mode_line (w=<value optimized out>,
    face_id=HEADER_LINE_FACE_ID, format=139399757) at xdisp.c:16182
#5  0x08077b63 in display_mode_lines (w=0x8535180) at xdisp.c:16138
#6  0x08078d3f in redisplay_window (window=139678084, just_this_one_p=0)
    at xdisp.c:12973
#7  0x0807b082 in redisplay_window_0 (window=139678084) at xdisp.c:11404
#8  0x081508f3 in internal_condition_case_1 (
    bfun=0x807b060 <redisplay_window_0>, arg=139678084, handlers=137476381,
    hfun=0x806ff60 <redisplay_window_error>) at eval.c:1506
#9  0x0806fd41 in redisplay_windows (window=<value optimized out>)
    at xdisp.c:11383
#10 0x0806fd09 in redisplay_windows (window=<value optimized out>)
    at xdisp.c:11377
#11 0x0807c17c in redisplay_internal (preserve_echo_area=<value optimized out>)
    at xdisp.c:10943
#12 0x0807cd26 in redisplay_preserve_echo_area (from_where=2) at xdisp.c:11190
#13 0x0805a894 in sit_for (sec=120, usec=0, reading=0, display=1,
    initial_display=1) at dispnew.c:6407
#14 0x0805a93d in Fsit_for (seconds=960, milliseconds=137489401,
    nodisp=<value optimized out>) at dispnew.c:6470
#15 0x08152774 in Ffuncall (nargs=2, args=0xbf8e9c80) at eval.c:2885
#16 0x0817e616 in Fbyte_code (bytestr=136965339, vector=136965380, maxdepth=2)
    at bytecode.c:690
#17 0x08151da2 in Feval (form=136965325) at eval.c:2225
#18 0x08152070 in Fprogn (args=136965317) at eval.c:432
#19 0x08091299 in Fsave_window_excursion (args=136965317) at window.c:6244
#20 0x0817d765 in Fbyte_code (bytestr=136961395, vector=136961724, maxdepth=8)
    at bytecode.c:839
#21 0x08152198 in funcall_lambda (fun=<value optimized out>, nargs=0,
    arg_vector=0xbf8e9ec4) at eval.c:3066
#22 0x0815269d in Ffuncall (nargs=1, args=0xbf8e9ec0) at eval.c:2934
#23 0x0817e616 in Fbyte_code (bytestr=136965907, vector=136965940, maxdepth=1)
    at bytecode.c:690
#24 0x08152198 in funcall_lambda (fun=<value optimized out>, nargs=0,
    arg_vector=0xbf8e9fc4) at eval.c:3066
#25 0x0815269d in Ffuncall (nargs=1, args=0xbf8e9fc0) at eval.c:2934
#26 0x0817e616 in Fbyte_code (bytestr=136966395, vector=136967540, maxdepth=12)
    at bytecode.c:690
#27 0x08152198 in funcall_lambda (fun=<value optimized out>, nargs=1,
    arg_vector=0xbf8ea0e4) at eval.c:3066
#28 0x0815269d in Ffuncall (nargs=2, args=0xbf8ea0e0) at eval.c:2934
#29 0x0817e616 in Fbyte_code (bytestr=136949395, vector=136950900, maxdepth=7)
    at bytecode.c:690
#30 0x08152198 in funcall_lambda (fun=<value optimized out>, nargs=0,
    arg_vector=0xbf8ea1f4) at eval.c:3066
#31 0x0815269d in Ffuncall (nargs=1, args=0xbf8ea1f0) at eval.c:2934
#32 0x0817e616 in Fbyte_code (bytestr=136943899, vector=136944060, maxdepth=6)
    at bytecode.c:690
#33 0x08152198 in funcall_lambda (fun=<value optimized out>, nargs=0,
    arg_vector=0xbf8ea2b0) at eval.c:3066
#34 0x081523e5 in apply_lambda (fun=136943876, args=137489401, eval_flag=1)
    at eval.c:2988
#35 0x08151c1a in Feval (form=139057077) at eval.c:2277
#36 0x080eef71 in top_level_2 () at keyboard.c:1324
#37 0x08150bcc in internal_condition_case (bfun=0x80eef60 <top_level_2>,
    handlers=137533185, hfun=0x80f47c0 <cmd_error>) at eval.c:1465
#38 0x080eefa9 in top_level_1 () at keyboard.c:1332
#39 0x08150ade in internal_catch (tag=140906725, func=0x80eef80 <top_level_1>,
    arg=137489401) at eval.c:1211
#40 0x080eed38 in command_loop () at keyboard.c:1289
#41 0x080eedf2 in recursive_edit_1 () at keyboard.c:987
#42 0x080eeee9 in Frecursive_edit () at keyboard.c:1048
#43 0x080edf9e in main (argc=3, argv=0xbf8ea954) at emacs.c:1786

Lisp Backtrace:
"sit-for"
"byte-code"
"normal-splash-screen"
"display-splash-screen"
"command-line-1"
"command-line"
"normal-top-level"


In GNU Emacs 22.0.50.5 (i686-pc-linux-gnu, GTK+ Version 2.8.3)
 of 2005-11-24 on escher
X server distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure '--with-x-toolkit=gtk''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tabbar-mwheel-mode: t
  tabbar-mode: t
  recentf-mode: t
  show-paren-mode: t
  display-time-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: identity

Recent input:
<drag-mouse-3> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> C-x C-s <select-window> <help-echo> 
<down-mouse-1> <mouse-1> <down-mouse-4> <mouse-4> <double-down-mouse-4> 
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<file> <Open Recent> <emacs-lisp (19)> 
</usr/local/share/emacs/22.0.50/lisp/calendar/diary-lib.el.gz> 
C-s i n c l C-w - o <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-1> <down-mouse-4> <mouse-4> <double-down-mouse-4> 
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4> 
<down-mouse-1> <mouse-1> <down-mouse-5> <mouse-5> <down-mouse-5> 
<mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5> 
<double-mouse-5> <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-1> <down-mouse-5> <mouse-5> <down-mouse-1> <mouse-1> 
<double-down-mouse-1> <double-mouse-1> <down-mouse-1> 
<mouse-1> <double-down-mouse-1> <double-mouse-1> <down-mouse-1> 
<mouse-1> <double-down-mouse-1> <mouse-movement> <double-mouse-1> 
<triple-down-mouse-1> <triple-mouse-1> <down-mouse-1> 
<mouse-1> <down-mouse-1> <mouse-1> <double-down-mouse-1> 
<mouse-movement> <mouse-movement> <double-drag-mouse-1> 
M-x r e p o <tab> r <tab> <return>

Recent messages:
mwheel-scroll: Beginning of buffer [3 times]
Loading newcomment...done
incremental parser error: "Wrong type argument: consp, nil" [2 times]
Wrote /home/steve/.emacs.d/todo+cal+diary+appt.el
Loading jka-compr...done
uncompressing diary-lib.el.gz...done
Mark set
Mark saved where search started
Making completion list...
Loading emacsbug...done




reply via email to

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