all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Info-scroll-prefer-subnodes default in Emacs.
Date: Mon, 23 Jun 2003 21:55:03 -0500 (CDT)	[thread overview]
Message-ID: <200306240255.h5O2t3T14984@eel.dms.auburn.edu> (raw)
In-Reply-To: <E19TaQF-0000Cb-0o@fencepost.gnu.org> (message from Richard Stallman on Sat, 21 Jun 2003 00:56:19 -0400)

Richard Stallman wrote:

   Does just setting Info-scroll-prefer-subnodes to nil give entirely the
   same behavior as in stand-alone info?

Yes it does.  

   If so, let's change that default.

Should I change the default and write a NEWS entry?  I guess we also
need NEWS entries for kill-whole-line, vis-mode, the new behavior of R
and friends in dired when applied to . and .. (assuming a final
decision was made on that issue, this was not completely clear) and
for Info-hide-note-references which never got mentioned in the NEWS.
I could write NEWS entries for kill-whole-line and vis-mode and, if
desired, for the two other issues.

There is actually one problem, which occurs in indices.  This problem
occurs both in the Emacs and the stand-alone version.  Actually index
menus are "weird" and cause a variety of problems which I will
describe (at least those I actually know of) in this message and the
next.

In emacs Info or stand-alone info do g (emacs)Key Index RETURN.

Now, in Emacs with Info-scroll-prefer-subnodes set to t, SPC
immediately carries us to (emacs)Shell Commands in Dired, the node
referenced by the first Index entry.  Not very useful (at least in my
opinion), but consistent.

With Info-scroll-prefer-subnodes set to nil or in the stand-alone
Info, we first scroll through the index and then go to 
(emacs)Shell Commands in Dired.  It would be more consistent with the
"browse through everything consecutively as if it were one single
document" philosophy if we went to the next node, (emacs)Option Index
instead.

There are related problems.  In Emacs Info, `]' and `[' behave as
usual in Indices.  In the stand-alone version, they do not.  (Just try
to "browse" through the various Emacs manual indices using `]' and `['
in the stand-alone Info.)

There is no easy solution for the problems described in the preceding
two paragraphs and they all have the same cause.

It would be easy to change the behavior of Emacs Info with
Info-scroll-prefer-subnodes set to nil to move through the consecutive
indices in the logical way by borrowing code from the Emacs versions
of `]' and '['.  I would guess that it would not be excessively
difficult to change all involved stand-alone behavior by adopting the
"algorithm" used by Emacs `]' and `[' to determine whether we are in
an index or not.  The problem is that the method used by `[' and `]''
is not a very reliable "algorithm" at all.  To Emacs `]' and `[' we
are in an index if and only if the node name contains the word
"index".  There are plenty of legitimate reasons for a non-index node
name to contain the name "index".  For instance, 
(texinfo)Index Entries is an actual example.  Fortunately this node
does not contain a menu, or Emacs `[' and ']' could have behaved
extremely confusingly in that neighborhood.  A reliable functioning of
Emacs `[' and ']' would require the convention that a non-index node
with a menu should *not* have the word "index" in its name.  This
convention seems to strict.

I believe all the above problems could be easily fixed once one could
answer the following question:

How do we determine reliably whether or not a node is an Index?

I do not believe that the method used by Emacs `[' and `]':
if and only if the node name contains the word "index" is reliable
enough by any means.

Sincerely,

Luc.

  reply	other threads:[~2003-06-24  2:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-20  1:19 Info-scroll-prefer-subnodes default in Emacs Luc Teirlinck
2003-06-21  4:56 ` Richard Stallman
2003-06-24  2:55   ` Luc Teirlinck [this message]
2003-06-24  3:50     ` Luc Teirlinck
2003-06-24  3:56       ` Luc Teirlinck
2003-06-25  2:56       ` Richard Stallman
2003-06-24  4:12     ` Eli Zaretskii
2003-06-25  3:03       ` Luc Teirlinck
2003-06-25  2:57     ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-06-20 13:55 Karl Berry
2003-06-23  1:57 ` Miles Bader
2003-06-24 13:26 Karl Berry
2003-06-25 13:43 Karl Berry
2003-06-26  5:30 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306240255.h5O2t3T14984@eel.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.