From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.devel Subject: Re: How to debug Error during redisplay Date: Sat, 12 Jan 2013 19:56:59 +0800 Message-ID: References: <83bocwuidc.fsf@gnu.org> <837gnjvmlg.fsf@gnu.org> <83a9seu47p.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1357991855 30765 80.91.229.3 (12 Jan 2013 11:57:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 11:57:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 12:57:53 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ttzig-000389-Jy for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 12:57:50 +0100 Original-Received: from localhost ([::1]:35160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtziQ-0006SU-Mr for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 06:57:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtziI-0006Rw-61 for emacs-devel@gnu.org; Sat, 12 Jan 2013 06:57:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtziA-00053s-LC for emacs-devel@gnu.org; Sat, 12 Jan 2013 06:57:26 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:39101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtziA-00053R-E3 for emacs-devel@gnu.org; Sat, 12 Jan 2013 06:57:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TtziM-0002qq-Bx for emacs-devel@gnu.org; Sat, 12 Jan 2013 12:57:30 +0100 Original-Received: from 119.255.41.67 ([119.255.41.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jan 2013 12:57:30 +0100 Original-Received: from sdl.web by 119.255.41.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jan 2013 12:57:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 71 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 119.255.41.67 Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (OS X 10.8.2) Cancel-Lock: sha1:V5xZYTRBgLwTPhXWu5veLyjFp78= X-detected-operating-system: by eggs.gnu.org: Error: Can't connect to API socket. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156262 Archived-At: --=-=-= Content-Type: text/plain On 2013-01-12 17:43 +0800, Eli Zaretskii wrote: > I downloaded the current snapshot of slime from > http://common-lisp.net/project/slime/. Is this the package you are > talking about? The only *.el file that calls animate-string there is > slime-banner.el: > > (defun slime-startup-message () > (when slime-header-line-p > (setq header-line-format > (format "%s Port: %s Pid: %s" > (slime-lisp-implementation-type) > (slime-connection-port (slime-connection)) > (slime-pid)))) > (when (zerop (buffer-size)) > (let ((welcome (concat "; SLIME " (or (slime-changelog-date) > "- ChangeLog file not found")))) > (if slime-startup-animation > (animate-string welcome 0 0) > (insert welcome))))) > > Is this the code that produced the redisplay error messages? If so, I > cannot reproduce this on my machine. If this isn't the code in > question, then please show a minimal code snippet using animate-string > that does reproduce the problem. (It isn't right to let me guess like > this, if you want the problem solved any time soon.) Thanks for taking the trouble to investigate the issue further. I have just spent an hour to come up with this reproduction recipe. 1. Install adaptive-wrap.el from ELPA 2. Install sbcl or clisp or any CL supported by slime 1. Emacs -q -l t.el (t.el assumes sbcl, which you may want to change) 2. M-x slime My whole *Messages* buffer looks like this: -------------------------------- For information about GNU Emacs and the GNU system, type C-h C-a. `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. [11 times] Polling "/var/folders/mf/8_qnj_n146d0wxb32wdnb9jh0000gn/T/slime.13675" .. 1 (Abort with `M-x slime-abort-connection'.) Polling "/var/folders/mf/8_qnj_n146d0wxb32wdnb9jh0000gn/T/slime.13675" .. 2 (Abort with `M-x slime-abort-connection'.) Polling "/var/folders/mf/8_qnj_n146d0wxb32wdnb9jh0000gn/T/slime.13675" .. 3 (Abort with `M-x slime-abort-connection'.) Polling "/var/folders/mf/8_qnj_n146d0wxb32wdnb9jh0000gn/T/slime.13675" .. 4 (Abort with `M-x slime-abort-connection'.) Connecting to Swank on port 60501.. Error during redisplay: (jit-lock-function 1) signaled (wrong-type-argument stringp nil) Error during redisplay: (jit-lock-function 520) signaled (wrong-type-argument stringp nil) Error during redisplay: (jit-lock-function 1) signaled (wrong-type-argument stringp nil) [2 times] Connected. Let the hacking commence! -------------------------------- --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=t.el Content-Transfer-Encoding: quoted-printable Content-Description: t.el (require 'slime) (slime-setup '(slime-fancy slime-banner)) (setq inferior-lisp-program "sbcl") ; or other common lisp supported by sli= me (setq slime-protocol-version 'ignore) (setq line-move-visual nil) (add-hook 'visual-line-mode-hook 'adaptive-wrap-prefix-mode) ; adaptive-wra= p.el is in ELPA (add-hook 'slime-repl-mode-hook 'turn-on-visual-line-mode t) --=-=-=--