emacs-devel
[Top][All Lists]
Advanced

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

Re: info


From: Kai Großjohann
Subject: Re: info
Date: Thu, 30 Jan 2003 09:39:13 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu)

Eli Zaretskii <address@hidden> writes:

> I believe this arebitrary predictability is not very useful, except in 
> those cases where the text between the two *'s is short.  As other 
> examples in this thread show, sometimes this approach is simply wrong.

First of all, if point is on a menu line, then choose that menu
item.  That much we all agree on.

Further, if point is on a line starting with whitespace and
containing some non-whitespace text, this could be a continuation
line for a menu line.

Here's an algorithm:

IF point is on a menu line
THEN
    choose that menu item
ELSE
    IF point is on a line that starts with whitespace and contains
       non-whitespace characters
    THEN
        WHILE point is on a nonblank line starting with whitespace
        DO
            move up one line
        END
        IF point is on a menu line
        THEN
            choose that menu item
        FI
    FI
FI

What do people think?
-- 
Ambibibentists unite!





reply via email to

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