[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Info set point at the end of a menu.
From: |
Lute Kamstra |
Subject: |
Re: Info set point at the end of a menu. |
Date: |
Fri, 06 Jun 2003 13:28:30 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Lute Kamstra <address@hidden> writes:
[...]
> (Info-complete-menu-item): Use `with-current-buffer'.
I've narrowed it down to this change. `with-current-buffer' doesn't
save point, while `save-excursion' does. This causes point to end up
at the wrong position. Shall I revert the change by applying the
patch below?
[...]
> After this change, when I look at an info node that has a menu in
> it, point is put at the end of the menu. It used to be put at the
> beginning of the node (before the menu). This is easiest reproduced
> by doing C-h i in a freshly started Emacs to view the Top info node.
> Point is put at the end of the last menu entry. Naughty.
[...]
Regards,
Lute.
*** lisp/info.el.~1.353.~ 2003-06-06 13:14:25.000000000 +0200
--- lisp/info.el 2003-06-06 13:15:18.000000000 +0200
***************
*** 1578,1584 ****
;; also look for menu items in subsequent nodes as long as those
;; nodes' names match `Info-complete-next-re'. This feature is currently
;; only used for completion in Info-index.
! (with-current-buffer Info-complete-menu-buffer
(let ((completion-ignore-case t)
(case-fold-search t)
(orignode Info-current-node)
--- 1578,1585 ----
;; also look for menu items in subsequent nodes as long as those
;; nodes' names match `Info-complete-next-re'. This feature is currently
;; only used for completion in Info-index.
! (save-excursion
! (set-buffer Info-complete-menu-buffer)
(let ((completion-ignore-case t)
(case-fold-search t)
(orignode Info-current-node)