[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Info breadcrumbs line (was: Info-use-header-line)

From: Juri Linkov
Subject: Info breadcrumbs line (was: Info-use-header-line)
Date: Sat, 18 Oct 2008 20:32:36 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

There is one backward incompatible UI change caused by implementing
Info breadcrumbs.

In older Emacs Info versions after visiting an Info node with menu items
or cross-references, typing the first TAB moved point to the first menu
item or cross-reference.  But now the first TAB moves point to a link
in the breadcrumbs line.

It is very inconvenient to type several TABs to skip links in the
breadcrumbs line before starting to navigate links in the body of the Info
node.  When there is a need to go to the first link in the Info node,
I quickly type `TAB RET', but after recent changes it goes to the Top
node.  This is very confusing.

I think we should restore the old behavior by putting point on the next
line after the breadcrumbs line initially, so the first TAB key will go to
the first menu item or cross-reference in the node body.

Then a key to move point in the breadcrumbs line will be `backtab' (with
additional mnemonics of going backward in the Info hierarchy) where every
backtab will put point on the next parent node name in the breadcrumbs
line, so this is a good thing too.  And it is also good to keep point on
the same empty line before the first Info header even when there is no
breadcrumbs line.

Index: lisp/info.el
RCS file: /sources/emacs/emacs/lisp/info.el,v
retrieving revision 1.546
diff -u -r1.546 info.el
--- lisp/info.el        10 Oct 2008 13:47:17 -0000      1.546
+++ lisp/info.el        18 Oct 2008 17:29:30 -0000
@@ -966,6 +966,10 @@
            (goto-char (point-min))
+           (forward-line 1)                   ; skip header line
+           (when (> Info-breadcrumbs-depth 0) ; skip breadcrumbs line
+             (forward-line 1))
            (cond (anchorpos
                    (let ((new-history (list Info-current-file

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]