[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
info-lookup annoyance
From: |
Jesper Harder |
Subject: |
info-lookup annoyance |
Date: |
Mon, 08 Mar 2004 15:09:38 +0100 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
In GNU Emacs 21.3.50.86 (i686-pc-linux-gnu, GTK+ Version 2.0.2)
of 2004-03-07 on defun.localdomain
It's a bit annoying that `info-lookup-symbol' doesn't reuse an
existing Info buffer.
Steps to reproduce:
* Open an Emacs Lisp file.
* Split the frame in two windows
* Open Info in one window
* Use `C-h S' (info-lookup-symbol) to look up a symbol in the Lisp
file.
Result: _Both_ windows are used for Info. `info-lookup' should have
reused the existing Info window. I think the patch below fixes it.
[BTW, I know I've whined about it before: but please keep the existing
keybinding `C-h C-i' for `info-lookup-symbol' -- `C-h S' is too
difficult to type].
2004-03-08 Jesper Harder <address@hidden>
* info-look.el (info-lookup): Reuse existing Info window.
*** /home/harder/emacs/lisp/info-look.el.~1.38.~ Fri Feb 27 21:29:04 2004
--- /home/harder/emacs/lisp/info-look.el Mon Mar 8 14:31:35 2004
***************
*** 338,344 ****
(info-frame (and window (window-frame window))))
(if (and info-frame
(display-multi-frame-p)
! (memq info-frame (frames-on-display-list)))
(select-frame info-frame)
(switch-to-buffer-other-window "*info*")))))
(while (and (not found) modes)
--- 338,345 ----
(info-frame (and window (window-frame window))))
(if (and info-frame
(display-multi-frame-p)
! (memq info-frame (frames-on-display-list))
! (not (eq info-frame (selected-frame))))
(select-frame info-frame)
(switch-to-buffer-other-window "*info*")))))
(while (and (not found) modes)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- info-lookup annoyance,
Jesper Harder <=