[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 01 Feb 2018 10:26:28 +0100
> With the patch applied on top of master, this message is printed in
> *Messages* when the mouse cursor is moved over the modeline. It happens
> only once.
Thank you very much.
> Error during redisplay: (eval (w3m-modeline-title)) signaled (error "Attempt to
add [t 23154 31461 636625 nil #[(buffer) \\302!\\205\0rq\\210\\303\\211)\\207 [buffer
w3m-modeline-title-timer buffer-live-p nil] 2] (*w3m*) nil 113000] to ([nil 23154 31461
622052 0.5 blink-cursor-timer-function nil nil 870000] [nil 23154 31476 0 60
display-time-event-handler nil nil 0] [nil 23154 31747 353232 300 savehist-autosave nil nil
708000]) while checking timers")
The behavior differs slightly from those seen earlier because the
timer list contains only three timers when it tries to add another
one. Still the conjecture that we try to add a timer while checking
timers has been proven.
To remember - w3m.el sets `mode-line-buffer-identification' as
`(,@(w3m-static-if (featurep 'xemacs)
(list (cons modeline-buffer-id-right-extent "%b") " ")
(nconc (propertized-buffer-identification "%b") '(" ")))
"Loading..." ,(if (fboundp 'format-mode-line)
where `w3m-modeline-title' is specified as
(defun w3m-modeline-title ()
"Return a truncated title not to cut the right end of the mode line.
It currently works only with Emacs 22 and newer."
(or (and w3m-modeline-title-timer w3m-modeline-title-string)
(setq w3m-modeline-title-string w3m-current-title
(let ((excess (- (string-width
(format-mode-line mode-line-format 1)
(tlen (string-width w3m-current-title)))
(when (and (> excess 0)
(> tlen 3))
w3m-current-title (max (- tlen excess 3) 2))
"[\t ]+\\'" "")
(run-at-time 0.5 nil
(when (buffer-live-p buffer)
(setq w3m-modeline-title-timer nil))))
Inherently, this truncates the mode line text when `w3m-current-title'
is too long and installs a timer which inihibts such truncations for
half a second with the motivation
(defvar w3m-modeline-title-timer nil
"Say time has not gone by after the mode line was updated last time.
It is used to control the `w3m-modeline-title' function running too
frequently, set by the function itself and cleared by a timer.")
So it seems that we do something we are supposed to avoid - call Lisp
from asynchronous redisplay as a consequence of some mouse movement
I have no idea what further to learn or teach from this experience,
bug#30182: Update, martin rudalics, 2018/02/02
- bug#30182: Update,
martin rudalics <=
- bug#30182: Update, Eli Zaretskii, 2018/02/01
- bug#30182: Update, Noam Postavsky, 2018/02/02
- bug#30182: Update, Eli Zaretskii, 2018/02/02
- bug#30182: Update, martin rudalics, 2018/02/03
- bug#30182: Update, Eli Zaretskii, 2018/02/03
- bug#30182: Update, martin rudalics, 2018/02/04
- bug#30182: Update, Eli Zaretskii, 2018/02/04