From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: info Date: Thu, 30 Jan 2003 09:39:13 +0100 Organization: University of Duisburg, Germany Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <84n0lj821a.fsf@lucy.is.informatik.uni-duisburg.de> References: <200301292039.OAA26000@moose.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043916058 28170 80.91.224.249 (30 Jan 2003 08:40:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2003 08:40:58 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18eAFB-0007JB-00 for ; Thu, 30 Jan 2003 09:40:21 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18eAKk-0000Cj-00 for ; Thu, 30 Jan 2003 09:46:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eAFm-0003vb-08 for emacs-devel@quimby.gnus.org; Thu, 30 Jan 2003 03:40:58 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18eAEM-0003dK-00 for emacs-devel@gnu.org; Thu, 30 Jan 2003 03:39:30 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18eAEH-0003at-00 for emacs-devel@gnu.org; Thu, 30 Jan 2003 03:39:29 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18eAEE-0003XG-00 for emacs-devel@gnu.org; Thu, 30 Jan 2003 03:39:22 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18eACQ-0007AV-00 for ; Thu, 30 Jan 2003 09:37:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18eACO-0007AL-00 for ; Thu, 30 Jan 2003 09:37:28 +0100 Original-Lines: 36 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:1/9sF5fQKeo1KQCE3aFVhC78L7M= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11218 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11218 Eli Zaretskii 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!