From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#30182: Update Date: Thu, 01 Feb 2018 10:26:28 +0100 Message-ID: <5A72DD44.3060104@gmx.at> References: <87k1wdqc4q.fsf@gmail.com> <5A634E53.7010205@gmx.at> <87mv182bzk.fsf@gmail.com> <83a7x7sww6.fsf@gnu.org> <87efmj27d5.fsf@gmail.com> <83vafvqjbf.fsf@gnu.org> <87inbvxdz8.fsf@gmail.com> <5A65AB97.1030401@gmx.at> <87po62kk10.fsf@gmail.com> <831sih23rh.fsf@gnu.org> <5A663490.3050409@gmx.at> <87r2qh5lya.fsf@gmail.com> <5A6C37A7.2020309@gmx.at> <87r2qag5wp.fsf@gmail.com> <5A6D8947.5010207@gmx.at> <87d11t9ria.fsf@gmail.com> <5A6EF1A2.30904@gmx.at> <83lgggirzp.fsf@gnu.org> <5A702D36.6040302@gmx.at> <83po5rh3pu.fsf@gnu.org> <5A718CFA.2080408@gmx.at> <878tcdtpbk.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1517477135 12383 195.159.176.226 (1 Feb 2018 09:25:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Feb 2018 09:25:35 +0000 (UTC) Cc: 30182@debbugs.gnu.org To: Sujith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 01 10:25:30 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehB7S-00027L-CU for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Feb 2018 10:25:22 +0100 Original-Received: from localhost ([::1]:44720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehB9M-0005Hi-U1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Feb 2018 04:27:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehB9B-0005G9-BZ for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2018 04:27:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehB94-0003EY-KT for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2018 04:27:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43916) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehB94-0003E9-GY for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2018 04:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ehB94-0004Mf-Aw for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2018 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Feb 2018 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30182-submit@debbugs.gnu.org id=B30182.151747720616751 (code B ref 30182); Thu, 01 Feb 2018 09:27:02 +0000 Original-Received: (at 30182) by debbugs.gnu.org; 1 Feb 2018 09:26:46 +0000 Original-Received: from localhost ([127.0.0.1]:51813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehB8o-0004M6-Ej for submit@debbugs.gnu.org; Thu, 01 Feb 2018 04:26:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:59101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehB8m-0004Ls-N9 for 30182@debbugs.gnu.org; Thu, 01 Feb 2018 04:26:45 -0500 Original-Received: from [192.168.1.100] ([213.162.73.24]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lg0wl-1f4yVq2bPf-00pbkf; Thu, 01 Feb 2018 10:26:37 +0100 In-Reply-To: <878tcdtpbk.fsf@gmail.com> X-Provags-ID: V03:K0:DGvrD2IDS2Kj1DNmnMBGrsHCaThgWjzw3gLeN0vhu/CzqbURE3h GXk1aut2/gUY/L8455ik0cwy4sn4mgoU1yqtfppm6ENh27dnAgSG3Jz7bzUgx3c60PfnR9T 6lxy0i9ZvfOzm7h+UPYisENZPvkfzb5CMqskgLCERnauSBORepkImXOyul71PSUzNV/w6Ft 8ECo7xoVoPhR4bnBPibLw== X-UI-Out-Filterresults: notjunk:1;V01:K0:8lMkHGMpMaM=:n1HO1tPSCJn3zFpepr9Syg vOCaaITUylNRHYzhqG/RFZ1nGwd7ufCuuvh/npSgu9ucXo5zmUgFRIxZG/Es/WcJvIhFA7M+X 3ncVuE9TEd4eiSYfRlQgLlmP7BB0SMtf04XjHopkzqrAgFxk0ZiE2+/O2HGhl4deFQLMKgspE dLu6hxODpSD2izCVdULsdTsN1LhiciKW1aSITEyT4tcMU9y7POj64+tIRfa6GZURczE06vYue G+x/UxCdxhxwv1eBNXzk+Uy9JMmfuek/Qyr1rZZm/Lm+IICbj5g7OIfaoM55Ml+CzedBJIc+E fd0iCg6UkEf1owD4eEBWiGwaHUideW1Bm1Pz5tBMYpfuPs6zFtAjzP1Bb9OwFL+U/XkRJzBqk 8DWemF6Kl4a0z5oPPVgLVm20yuXbDj38UkIFxYj72ucpIfI+nAEh6Eo6CBZI52EplrJujH/Z8 FC4lhqnvrdCZfR+8/Qiby4pNoG7GofDcRzDe6fRdbTMcXEIj0EaSfHdBLaoYL6eWgfi8VO/bb 5vPFghq1XNBbAp3pEUnJQq8hdxDLsxm2N+m3sC8ef1hArcVhlEveCgq7c6ozLzUwCRf2cW6/x 9NWYxloEHYxfcnOEk3DJNr8L60/XEXge2qk3+AF9aF8H9kd1u94yK7GThhMuIyDxA9GBRuk0c 4AmJUGPYON1BPtUp/lcJT0TIEDtc59VUq9NBrfsEoY//qU4MVVWDd/EwlhJomHU7XcjpHQ+ih 5q4mBkdk8ac768gGgThquIN7ANQhxDgx031Sy3XfcvUoSERfW+HkaMiOdfEJnJs/lHA/+pBV X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142761 Archived-At: > 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 follows (setq mode-line-buffer-identification `(,@(w3m-static-if (featurep 'xemacs) (list (cons modeline-buffer-id-right-extent "%b") " ") (nconc (propertized-buffer-identification "%b") '(" "))) [...] (w3m-current-process "Loading..." ,(if (fboundp 'format-mode-line) '(:eval (w3m-modeline-title)) (if w3m-use-title-buffer-name "" 'w3m-current-title))))) 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." (if w3m-use-title-buffer-name "" (when w3m-current-title (or (and w3m-modeline-title-timer w3m-modeline-title-string) (prog2 (setq w3m-modeline-title-string w3m-current-title w3m-modeline-title-timer t) (let ((excess (- (string-width (condition-case nil (format-mode-line mode-line-format 1) (error ""))) (window-width))) (tlen (string-width w3m-current-title))) (when (and (> excess 0) (> tlen 3)) (setq w3m-modeline-title-string (concat (w3m-replace-in-string (w3m-truncate-string w3m-current-title (max (- tlen excess 3) 2)) "[\t ]+\\'" "") "..."))) w3m-modeline-title-string) (run-at-time 0.5 nil (lambda (buffer) (when (buffer-live-p buffer) (with-current-buffer buffer (setq w3m-modeline-title-timer nil)))) (current-buffer))))))) 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 (presumably). I have no idea what further to learn or teach from this experience, though. martin