unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12338: 24.2.50; Error during redisplay (apropos which-function-mode?)
@ 2012-09-02 20:58 Jambunathan K
  2012-09-02 21:32 ` Eli Zaretskii
  2012-10-07  6:50 ` bug#12338: Status: " Jambunathan K
  0 siblings, 2 replies; 5+ messages in thread
From: Jambunathan K @ 2012-09-02 20:58 UTC (permalink / raw)
  To: 12338


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@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






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12338: 24.2.50; Error during redisplay (apropos which-function-mode?)
  2012-09-02 20:58 bug#12338: 24.2.50; Error during redisplay (apropos which-function-mode?) Jambunathan K
@ 2012-09-02 21:32 ` Eli Zaretskii
  2012-10-07  6:50 ` bug#12338: Status: " Jambunathan K
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2012-09-02 21:32 UTC (permalink / raw)
  To: Jambunathan K; +Cc: 12338

> From: Jambunathan K <kjambunathan@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".)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12338: Status: 24.2.50; Error during redisplay (apropos which-function-mode?)
  2012-09-02 20:58 bug#12338: 24.2.50; Error during redisplay (apropos which-function-mode?) Jambunathan K
  2012-09-02 21:32 ` Eli Zaretskii
@ 2012-10-07  6:50 ` Jambunathan K
  2012-10-22 11:12   ` Michael Heerdegen
  1 sibling, 1 reply; 5+ messages in thread
From: Jambunathan K @ 2012-10-07  6:50 UTC (permalink / raw)
  To: bug#12338


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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12338: Status: 24.2.50; Error during redisplay (apropos which-function-mode?)
  2012-10-07  6:50 ` bug#12338: Status: " Jambunathan K
@ 2012-10-22 11:12   ` Michael Heerdegen
  2012-10-22 13:31     ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Heerdegen @ 2012-10-22 11:12 UTC (permalink / raw)
  To: bug#12338

Jambunathan K <kjambunathan@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#12338: Status: 24.2.50; Error during redisplay (apropos which-function-mode?)
  2012-10-22 11:12   ` Michael Heerdegen
@ 2012-10-22 13:31     ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2012-10-22 13:31 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: bug#12338, Takafumi Arakaki

>> 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





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-22 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-02 20:58 bug#12338: 24.2.50; Error during redisplay (apropos which-function-mode?) Jambunathan K
2012-09-02 21:32 ` Eli Zaretskii
2012-10-07  6:50 ` bug#12338: Status: " Jambunathan K
2012-10-22 11:12   ` Michael Heerdegen
2012-10-22 13:31     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).