GNU bug report logs - #17210
24.3.50; help mode [back] link to a C-h b keybind listing fails with message "Current buffer is not in Help mode"

Previous Next

Package: emacs;

Reported by: Ian Kelling <ian <at> iankelling.org>

Date: Sun, 6 Apr 2014 23:49:02 UTC

Severity: important

Found in version 24.3.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 17210 in the body.
You can then email your comments to 17210 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#17210; Package emacs. (Sun, 06 Apr 2014 23:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ian Kelling <ian <at> iankelling.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 06 Apr 2014 23:49:02 GMT) Full text and rfc822 format available.

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

From: Ian Kelling <ian <at> iankelling.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; help mode [back] link to a C-h b keybind listing fails with
 message "Current buffer is not in Help mode"
Date: Sun, 06 Apr 2014 16:47:36 -0700
Repro steps:
emacs -Q
C-h b
click function name link
click back

expected:
go back to the C-h b keymap listing

acutal
in echo area: "Current buffer is not in Help mode"
the help buffer does no change.


The problem does not always happen, but it seems consistent on the first try in a
fresh emacs. Toggling debug on error, gives this trace:

Debugger entered--Lisp error: (error "Current buffer is not in Help mode")
  signal(error ("Current buffer is not in Help mode"))
  error("Current buffer is not in Help mode")
  help-buffer()
  describe-bindings-internal(nil nil)
  describe-bindings(nil #<buffer *scratch*>)
  apply(describe-bindings (nil #<buffer *scratch*>))
  help-xref-go-back(#<buffer *Help*>)
  apply(help-xref-go-back #<buffer *Help*>)
  help-do-xref(63 help-xref-go-back (#<buffer *Help*>))
  help-button-action(#<marker (moves after insertion) at 66 in *Help*>)
  button-activate(#<marker (moves after insertion) at 66 in *Help*> nil)
  push-button(66)
  push-button((mouse-2 (#<window 6 on *Help*> 66 (34 . 106) 107906261 nil 66 (3 .
5) nil (7 . 11) (9 . 19))))
  call-interactively(push-button nil nil)
  command-execute(push-button)



In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2014-03-18 on treetowl
Repository revision: 116779 dgutov <at> yandex.ru-20140317064809-2mea5nujkyricpny
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.4 (wheezy)

Configured using:
 `configure --enable-link-time-optimization 'CFLAGS=-std=gnu99 -g3 -O2''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-h b <help-echo> <help-echo> <down-mouse-2> <mouse-1>
<help-echo> <down-mouse-2> <mouse-1> <help-echo> M-x
r e C-g M-x b u g <kp-add> <backspace> <tab> <tab>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> r e
p o r t - b <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Type C-x 1 to delete the help window, C-M-v to scroll help.

help-buffer: Current buffer is not in Help mode
Quit
Making completion list...
call-interactively: End of buffer

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-fns kmacro two-column iso-transl help-mode
easymenu time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Mon, 07 Apr 2014 07:49:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Ian Kelling <ian <at> iankelling.org>, 17210 <at> debbugs.gnu.org
Cc: Juri Linkov <juri <at> jurta.org>
Subject: Re: bug#17210: 24.3.50; help mode [back] link to a C-h b keybind
 listing fails with message "Current buffer is not in Help mode"
Date: Mon, 07 Apr 2014 09:48:43 +0200
> Repro steps:
> emacs -Q
> C-h b
> click function name link
> click back
>
> expected:
> go back to the C-h b keymap listing
>
> acutal
> in echo area: "Current buffer is not in Help mode"
> the help buffer does no change.
>
>
> The problem does not always happen, but it seems consistent on the first try in a
> fresh emacs. Toggling debug on error, gives this trace:
>
> Debugger entered--Lisp error: (error "Current buffer is not in Help mode")
>    signal(error ("Current buffer is not in Help mode"))
>    error("Current buffer is not in Help mode")
>    help-buffer()
>    describe-bindings-internal(nil nil)
>    describe-bindings(nil #<buffer *scratch*>)
>    apply(describe-bindings (nil #<buffer *scratch*>))
>    help-xref-go-back(#<buffer *Help*>)
>    apply(help-xref-go-back #<buffer *Help*>)
>    help-do-xref(63 help-xref-go-back (#<buffer *Help*>))
>    help-button-action(#<marker (moves after insertion) at 66 in *Help*>)
>    button-activate(#<marker (moves after insertion) at 66 in *Help*> nil)
>    push-button(66)
>    push-button((mouse-2 (#<window 6 on *Help*> 66 (34 . 106) 107906261 nil 66 (3 .
> 5) nil (7 . 11) (9 . 19))))
>    call-interactively(push-button nil nil)
>    command-execute(push-button)

Confirmed.  Thanks for caring to provide a simple scenario.

I could fix this by restoring the code of `describe-bindings-internal'
from Emacs 24.3.  But the behavior of `help-xref-go-back' here is
erratic per se: It does not restore the earlier contents of the bindings
from the *scratch* buffer but IIUC those of the *Help* buffer and I'm
not sure whether that's what we want (I think we don't).

Juri, any opinions?

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Mon, 07 Apr 2014 15:55:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 17210 <at> debbugs.gnu.org, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Mon, 07 Apr 2014 18:54:39 +0300
> Date: Mon, 07 Apr 2014 09:48:43 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> 
>  > Debugger entered--Lisp error: (error "Current buffer is not in Help mode")
>  >    signal(error ("Current buffer is not in Help mode"))
>  >    error("Current buffer is not in Help mode")
>  >    help-buffer()
>  >    describe-bindings-internal(nil nil)
>  >    describe-bindings(nil #<buffer *scratch*>)
>  >    apply(describe-bindings (nil #<buffer *scratch*>))
>  >    help-xref-go-back(#<buffer *Help*>)
>  >    apply(help-xref-go-back #<buffer *Help*>)
>  >    help-do-xref(63 help-xref-go-back (#<buffer *Help*>))
>  >    help-button-action(#<marker (moves after insertion) at 66 in *Help*>)
>  >    button-activate(#<marker (moves after insertion) at 66 in *Help*> nil)
>  >    push-button(66)
>  >    push-button((mouse-2 (#<window 6 on *Help*> 66 (34 . 106) 107906261 nil 66 (3 .
>  > 5) nil (7 . 11) (9 . 19))))
>  >    call-interactively(push-button nil nil)
>  >    command-execute(push-button)
> 
> Confirmed.  Thanks for caring to provide a simple scenario.
> 
> I could fix this by restoring the code of `describe-bindings-internal'
> from Emacs 24.3.  But the behavior of `help-xref-go-back' here is
> erratic per se: It does not restore the earlier contents of the bindings
> from the *scratch* buffer but IIUC those of the *Help* buffer and I'm
> not sure whether that's what we want (I think we don't).

Can you tell why you replaced a literal "*Help*" with a call to
help-buffer?  That change was part of your pixel-resizing changes, but
it doesn't sound related to me, and the ChangeLog entry doesn't
provide any explanations to convince me otherwise.

Also, describe-bindings-internal is only called from this single
place, so I see no reason to support some other help buffers.  Do you?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Mon, 07 Apr 2014 18:18:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: martin rudalics <rudalics <at> gmx.at>, 17210 <at> debbugs.gnu.org,
 ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Mon, 07 Apr 2014 14:17:00 -0400
> Can you tell why you replaced a literal "*Help*" with a call to
> help-buffer?

I think it's just generally preferable.

> That change was part of your pixel-resizing changes, but
> it doesn't sound related to me, and the ChangeLog entry doesn't
> provide any explanations to convince me otherwise.

> Also, describe-bindings-internal is only called from this single
> place, so I see no reason to support some other help buffers.  Do you?

You might have done M-x rename-uniquely.
Does the patch below help?


        Stefan


=== modified file 'lisp/help.el'
--- lisp/help.el	2014-04-05 18:33:55 +0000
+++ lisp/help.el	2014-04-07 18:16:00 +0000
@@ -485,8 +485,11 @@
   (or buffer (setq buffer (current-buffer)))
   (help-setup-xref (list #'describe-bindings prefix buffer)
 		   (called-interactively-p 'interactive))
-  (with-current-buffer buffer
-    (describe-bindings-internal nil prefix)))
+  (with-help-window (help-buffer)
+    ;; Be aware that `describe-buffer-bindings' puts its output into
+    ;; the current buffer.
+    (with-current-buffer (help-buffer)
+      (describe-buffer-bindings buffer prefix))))
 
 ;; This function used to be in keymap.c.
 (defun describe-bindings-internal (&optional menus prefix)
@@ -497,6 +500,7 @@
 \(Ordinarily these are omitted from the output.)
 The optional argument PREFIX, if non-nil, should be a key sequence;
 then we display only bindings that start with that prefix."
+  (declare (obsolete describe-buffer-bindings "24.4"))
   (let ((buf (current-buffer)))
     (with-help-window (help-buffer)
       ;; Be aware that `describe-buffer-bindings' puts its output into





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 07:15:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 17210 <at> debbugs.gnu.org, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;	help mode [back] link to a C-h b keybind
 listing fails with message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 09:13:56 +0200
> Can you tell why you replaced a literal "*Help*" with a call to
> help-buffer?  That change was part of your pixel-resizing changes, but
> it doesn't sound related to me, and the ChangeLog entry doesn't
> provide any explanations to convince me otherwise.

I tested `window-text-pixel-size' mostly by switching forward and
backward between help buffers because these are the only ones here whose
text size is not an integral multiple of the nominal character size.  In
the course of testing I found some problems with help buffers and fixed
them on the fly.

Later, when I installed the pixelwise changes, I was afraid to back out
some related ones like the one we talk about here.  But note that the
bug which is the subject of the current thread was implicitly caused by
reverting a behavior erroneously introduced in Emacs 24.3 (see the
threads of bug#16816 and bug#17007 for details).

> Also, describe-bindings-internal is only called from this single
> place, so I see no reason to support some other help buffers.  Do you?

I think Stefan explained that meanwhile.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 07:15:03 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>, 
 Eli Zaretskii <eliz <at> gnu.org>
Cc: Juri Linkov <juri <at> jurta.org>, 17210 <at> debbugs.gnu.org, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50; help mode [back] link to a C-h b keybind
 listing fails with message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 09:14:04 +0200
> Does the patch below help?

It fixes the OP's problem so please check it in.  But when hitting the
back button you don't get the previous contents.  I suppose we have to
add the original buffer to the `help-args' of that button, but I leave
that to Juri.  In any case, the behavior is broken since Emacs 24.3 at
least (but I suppose it's broken ever since).

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 08:37:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> jurta.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 17210 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> IRO.UMontreal.CA>, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 11:32:27 +0300
> It fixes the OP's problem so please check it in.  But when hitting the
> back button you don't get the previous contents.  I suppose we have to
> add the original buffer to the `help-args' of that button, but I leave
> that to Juri.

In the recent discussion at http://thread.gmane.org/gmane.emacs.devel/168353
the idea was to store the previous content in hidden Help buffers
(buffer names starting with a space).

> In any case, the behavior is broken since Emacs 24.3 at least
> (but I suppose it's broken ever since).

For `C-h b' it was broken by design because after killing the initial buffer:

1. C-h b
2. click function name link
3. kill *scratch*
4. click back

clicking on [back] fails with the error "Selecting deleted buffer".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 09:19:01 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> jurta.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 17210 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> IRO.UMontreal.CA>, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50; help mode [back] link to a C-h b keybind
 listing fails with message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 11:18:33 +0200
> For `C-h b' it was broken by design because after killing the initial buffer:
>
> 1. C-h b
> 2. click function name link
> 3. kill *scratch*
> 4. click back
>
> clicking on [back] fails with the error "Selecting deleted buffer".

Well, we could handle that more smoothly.  But the principal problem
remains - namely that going back all of a sudden describes different
bindings.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 15:27:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 17210 <at> debbugs.gnu.org, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 18:26:13 +0300
> Date: Tue, 08 Apr 2014 09:13:56 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: ian <at> iankelling.org, 17210 <at> debbugs.gnu.org
> 
> note that the bug which is the subject of the current thread was
> implicitly caused by reverting a behavior erroneously introduced in
> Emacs 24.3 (see the threads of bug#16816 and bug#17007 for details).

Only by side effect, because all that stuff had nothing to do with
which buffer is current when describe-bindings-internal is called.

>  > Also, describe-bindings-internal is only called from this single
>  > place, so I see no reason to support some other help buffers.  Do you?
> 
> I think Stefan explained that meanwhile.

As long as describe-bindings invokes describe-bindings-internal with
the current buffer set to the buffer whose keybindings we want to
describe, I don't understand how the multitude of Help buffer can be
relevant to the issue at hand.

My problem with help-buffer is that calling it requires intimate
understanding of its internal logic, because the caller doesn't
necessarily know whether help-xref-following is bound to nil or not.
Without knowing that, whoever calls help-buffer can easily trip on
this problem.  So it sounds like help-buffer is only suitable for
callers who bind help-xref-following themselves, or have tight
relationships with functions that do.  describe-bindings-internal
doesn't, so I don't see how it can be clean for it to call that
function.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 15:28:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: juri <at> jurta.org, 17210 <at> debbugs.gnu.org, monnier <at> IRO.UMontreal.CA,
 ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 18:27:13 +0300
> Date: Tue, 08 Apr 2014 09:14:04 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: ian <at> iankelling.org, 17210 <at> debbugs.gnu.org, 
>  Juri Linkov <juri <at> jurta.org>
> 
>  > Does the patch below help?
> 
> It fixes the OP's problem so please check it in.  But when hitting the
> back button you don't get the previous contents.

If "back" doesn't get you back, then it isn't really a solution, is
it?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 16:35:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: juri <at> jurta.org, 17210 <at> debbugs.gnu.org, monnier <at> IRO.UMontreal.CA,
 ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50; help mode [back] link to a C-h b keybind
 listing fails with message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 18:34:38 +0200
> If "back" doesn't get you back, then it isn't really a solution, is
> it?

My first conclusion was wrong.  "back" gets me the right buffer but it
gives me different contents.  After C-h b my first 12 lines of the
*Help* buffer are


Key translations:
key             binding
---             -------

C-x		Prefix Command
<double-down-mouse-1> mouse--down-1-maybe-follows-link
<down-mouse-1>	mouse--down-1-maybe-follows-link

C-x 8		iso-transl-ctl-x-8-map

C-x 8 SPC	
...


and *Help* has 1050 lines while after going to some function and hitting
"back" these lines are


Key translations:
key             binding
---             -------

C-x		Prefix Command
A-SPC		
A-!		¡
A-"		Prefix Command
A-$		¤
A-'		Prefix Command
A-*		Prefix Command
A-+		±
...


and *Help* has 1637 lines.  Confusing.  I think I'll have to debug
`describe-buffer-bindings' to find out what happens.

martin





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 16:43:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: juri <at> jurta.org, 17210 <at> debbugs.gnu.org, monnier <at> IRO.UMontreal.CA,
 ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 19:42:40 +0300
> Date: Tue, 08 Apr 2014 18:34:38 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: monnier <at> IRO.UMontreal.CA, ian <at> iankelling.org, 17210 <at> debbugs.gnu.org, 
>  juri <at> jurta.org
> 
>  > If "back" doesn't get you back, then it isn't really a solution, is
>  > it?
> 
> My first conclusion was wrong.  "back" gets me the right buffer but it
> gives me different contents.

That is a different problem, and AFAIK it is not new: try the same in
Emacs from before your pixelwise resize changes, and I think you will
see the same behavior.

> and *Help* has 1637 lines.  Confusing.  I think I'll have to debug
> `describe-buffer-bindings' to find out what happens.

I think it simply describes bindings in another buffer (*Help* instead
of *scratch*).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 17:02:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: juri <at> jurta.org, 17210 <at> debbugs.gnu.org, monnier <at> IRO.UMontreal.CA,
 ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50; help mode [back] link to a C-h b keybind
 listing fails with message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 19:01:22 +0200
>> My first conclusion was wrong.  "back" gets me the right buffer but it
>> gives me different contents.
>
> That is a different problem, and AFAIK it is not new: try the same in
> Emacs from before your pixelwise resize changes, and I think you will
> see the same behavior.

I know.

> I think it simply describes bindings in another buffer (*Help* instead
> of *scratch*).

That's what I thought.  But the same buffer (e.g. *scratch*) is passed
to `describe-buffer-bindings' in both cases.  I'm sure that following
the links forward and backward is responsible but why has that such
drastic consequences?

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 17:09:02 GMT) Full text and rfc822 format available.

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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 17210 <at> debbugs.gnu.org, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50; help mode [back] link to a C-h b keybind
 listing fails with message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 19:08:32 +0200
> That's what I thought.  But the same buffer (e.g. *scratch*) is passed
> to `describe-buffer-bindings' in both cases.  I'm sure that following
> the links forward and backward is responsible but why has that such
> drastic consequences?

It's `describe-bindings' itself, some sort of Heisenbug.

martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17210; Package emacs. (Tue, 08 Apr 2014 17:17:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 17210 <at> debbugs.gnu.org, ian <at> iankelling.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 19:16:13 +0200
martin rudalics <rudalics <at> gmx.at> writes:

> and *Help* has 1050 lines while after going to some function and hitting
> "back" these lines are
>
>
> Key translations:
> key             binding
> ---             -------
>
> C-x		Prefix Command
> A-SPC		
> A-!		¡
> A-"		Prefix Command
> A-$		¤
> A-'		Prefix Command
> A-*		Prefix Command
> A-+		±
> ...
>
>
> and *Help* has 1637 lines.

This is normal.  Listing the key translations autoloads iso-transl which
installs more bindings as a side effect.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Tue, 08 Apr 2014 19:51:02 GMT) Full text and rfc822 format available.

Notification sent to Ian Kelling <ian <at> iankelling.org>:
bug acknowledged by developer. (Tue, 08 Apr 2014 19:51:04 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 17210-done <at> debbugs.gnu.org
Subject: Re: bug#17210: 24.3.50;
 help mode [back] link to a C-h b keybind listing fails with
 message	"Current buffer is not in Help mode"
Date: Tue, 08 Apr 2014 15:49:49 -0400
> It fixes the OP's problem so please check it in.

Thanks, installed.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 May 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 105 days ago.

Previous Next


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