GNU bug report logs - #12338
24.2.50; Error during redisplay (apropos which-function-mode?)

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Sun, 2 Sep 2012 21:00:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.2.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12338 in the body.
You can then email your comments to 12338 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12338; Package emacs. (Sun, 02 Sep 2012 21:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jambunathan K <kjambunathan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 02 Sep 2012 21:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50; Error during redisplay (apropos which-function-mode?)
Date: Mon, 03 Sep 2012 02:28:37 +0530
My message buffer is getting populated with these messages

,----
|     Error during redisplay: (eval (replace-regexp-in-string "%" "%%"
|     (gethash (selected-window) which-func-table which-func-unknown)))
|     signaled (wrong-type-argument arrayp nil)
`----

I have following configs that concerns `which-function-mode'

,----
| 2 matches for "which" in buffer: .emacs
|      84: '(which-function-mode t))
|     111: '(which-func ((t (:inherit font-lock-function-name-face))))
`----

Can someone remove these messages or fix underlying problem?

I can narrow it down when I have sometime.  Documenting the issue for
now.


In GNU Emacs 24.2.50.12 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-09-03 on debian-6.05
Bzr revision: 109861 eggert <at> cs.ucla.edu-20120902171035-7mzihil3xd6bjfiy
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
Important settings:
  value of $LANG: en_IN
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12338; Package emacs. (Sun, 02 Sep 2012 21:35:01 GMT) Full text and rfc822 format available.

Message #8 received at 12338 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jambunathan K <kjambunathan <at> gmail.com>
Cc: 12338 <at> debbugs.gnu.org
Subject: Re: bug#12338: 24.2.50;
	Error during redisplay (apropos which-function-mode?)
Date: Mon, 03 Sep 2012 00:32:12 +0300
> From: Jambunathan K <kjambunathan <at> gmail.com>
> Date: Mon, 03 Sep 2012 02:28:37 +0530
> 
> 
> My message buffer is getting populated with these messages
> 
> ,----
> |     Error during redisplay: (eval (replace-regexp-in-string "%" "%%"
> |     (gethash (selected-window) which-func-table which-func-unknown)))
> |     signaled (wrong-type-argument arrayp nil)
> `----
> 
> I have following configs that concerns `which-function-mode'
> 
> ,----
> | 2 matches for "which" in buffer: .emacs
> |      84: '(which-function-mode t))
> |     111: '(which-func ((t (:inherit font-lock-function-name-face))))
> `----
> 
> Can someone remove these messages or fix underlying problem?

The messages cannot be removed: this is the only way to signal an
error that happens during redisplay, without wedging Emacs.  That's
because displaying an error message in the normal way re-enters
redisplay, which will again signal an error, ad nauseam.

As you can see in which-func.el, the expression being evaluated is
which-func-current, which is part of which-func-format.  Hopefully,
this is enough to find the culprit.  (I don't see the error messages
if I just enable which-func-mode in 'emacs -Q".)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12338; Package emacs. (Sun, 07 Oct 2012 06:50:02 GMT) Full text and rfc822 format available.

Message #11 received at 12338 <at> debbugs.gnu.org (full text, mbox):

From: Jambunathan K <kjambunathan <at> gmail.com>
To: bug#12338 <12338 <at> debbugs.gnu.org>
Subject: Re: Status: 24.2.50;
	Error during redisplay (apropos which-function-mode?)
Date: Sun, 07 Oct 2012 12:20:09 +0530
See http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00353.html




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12338; Package emacs. (Mon, 22 Oct 2012 11:15:01 GMT) Full text and rfc822 format available.

Message #14 received at 12338 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: bug#12338 <12338 <at> debbugs.gnu.org>
Subject: Re: bug#12338: Status: 24.2.50;
	Error during redisplay (apropos which-function-mode?)
Date: Mon, 22 Oct 2012 13:12:25 +0200
Jambunathan K <kjambunathan <at> gmail.com> writes:

> See
> http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00353.html

I can confirm that this patch fixes the bug.  Please install.

BTW, here is a recipe to reproduce this bug with emacs -Q in the
*scratch* buffer:

1. M-: (progn
         (switch-to-buffer "*scratch*")
         (which-func-mode)
         (goto-char (point-max))
         (insert "(defun test (x) 1)")
         (setq pop-up-windows t)
         (display-buffer "*Messages*"))

2. Move point into the comment at the beginning of *scratch*.  You get
the message (over and over):

Error during redisplay: (eval (replace-regexp-in-string "%" "%%"
(gethash (selected-window) which-func-table which-func-unknown)))
signaled (wrong-type-argument arrayp nil)


Thanks,

Michael.




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Mon, 22 Oct 2012 13:34:04 GMT) Full text and rfc822 format available.

Notification sent to Jambunathan K <kjambunathan <at> gmail.com>:
bug acknowledged by developer. (Mon, 22 Oct 2012 13:34:07 GMT) Full text and rfc822 format available.

Message #19 received at 12338-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: Takafumi Arakaki <aka.tkf <at> gmail.com>,
	bug#12338 <12338-done <at> debbugs.gnu.org>
Subject: Re: bug#12338: Status: 24.2.50;
	Error during redisplay (apropos which-function-mode?)
Date: Mon, 22 Oct 2012 09:31:09 -0400
>> See http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00353.html
> I can confirm that this patch fixes the bug.  Please install.

Thank you, installed,


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Nov 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.