all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#13146: [PATCH] help-for-help interferes with buffer order, and displays help in too many windows
@ 2012-12-11 18:57 Kelly Dean
  2012-12-12  9:42 ` martin rudalics
  2012-12-16 11:58 ` Kelly Dean
  0 siblings, 2 replies; 6+ messages in thread
From: Kelly Dean @ 2012-12-11 18:57 UTC (permalink / raw)
  To: 13146

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

In 24.2, do emacs -Q, then
M-x split-window RET C-x b foo RET C-x b bar RET C-h C-h C-g C-x b
It defaults to *Help*, but it should default to foo; transiently displaying help-for-help shouldn't modify the buffer order.

Now do C-g C-h f mark RET C-x o C-h C-h
It shows the help-for-help page in both windows, but it should show it in only one.

The attached helphelpbug.patch fixes both problems. I'm not bothering to submit separate reports for the two since it's a one-line patch.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: helphelpbug.patch --]
[-- Type: text/x-diff; name="helphelpbug.patch", Size: 474 bytes --]

--- emacs-24.2/lisp/help-macro.el
+++ emacs-24.2/lisp/help-macro.el
@@ -130,7 +130,7 @@
 		   (when (or (eq char ??) (eq char help-char)
 			     (memq char help-event-list))
 		     (setq config (current-window-configuration))
-		     (switch-to-buffer-other-window "*Help*")
+		     (if (not (equal (buffer-name) "*Help*")) (switch-to-buffer-other-window "*Help*" t))
 		     (and (fboundp 'make-frame)
 			  (not (eq (window-frame (selected-window))
 				   prev-frame))

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

end of thread, other threads:[~2012-12-17 13:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11 18:57 bug#13146: [PATCH] help-for-help interferes with buffer order, and displays help in too many windows Kelly Dean
2012-12-12  9:42 ` martin rudalics
2012-12-13  8:12   ` Kelly Dean
2012-12-14 10:24     ` martin rudalics
2012-12-16 11:58 ` Kelly Dean
2012-12-17 13:38   ` martin rudalics

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.