From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Hannu Koivisto Newsgroups: gmane.emacs.bugs Subject: outline-next-visible-heading breaks with certain outline-regexps Date: Fri, 06 Dec 2002 23:05:05 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <877kemj1tq.fsf@lynx.ionific.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039218200 20950 80.91.224.249 (6 Dec 2002 23:43:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2002 23:43:20 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18KS7o-0005RM-00 for ; Sat, 07 Dec 2002 00:43:16 +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 18KS7d-0001Q6-00; Fri, 06 Dec 2002 18:43:05 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18KS6v-0001FB-00 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2002 18:42:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18KS6o-0001E0-00 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2002 18:42:16 -0500 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KS3U-0007Yf-00 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2002 18:38:48 -0500 Original-Received: from lynx.ionific.com ([195.197.252.71]) by gnudist.gnu.org with esmtp (Exim 4.10.13) id 18KPep-00078a-00 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2002 16:05:11 -0500 Original-Received: from azure by lynx.ionific.com with local (Exim 3.35 #1 (Debian)) id 18KPek-0001Xa-00; Fri, 06 Dec 2002 23:05:06 +0200 Original-To: bug-gnu-emacs@gnu.org Original-Lines: 52 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:4016 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4016 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.2 (i686-pc-linux-gnu, X toolkit) of 2002-03-26 on lynx configured using `configure --prefix=/usr/local/emacs-21 --with-xpm --with-jpeg --with-tiff --with-gif' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: fi_FI@euro value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: iso-latin-9 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Concerning outline.el, if outline-regexp matches the entire heading line and the heading line is visible but the heading entry itself is hidden, outline-next-visible-heading (and thus also at least outline-forward-same-level) skips the heading line as invisible even though it should not. This happens because outline-next-visible-heading moves to the next heading line with (re-search-forward (concat "^\\(" outline-regexp "\\)") nil 'move) , which in the described conditions leaves the point right before the newline at the end of the heading line, and then tests whether the heading line is not visible (i.e. one that should be skipped) with (not (outline-visible)) which again does the test by checking whether the character after point is invisible. It is invisible, if the heading entry is hidden, even though the heading line itself is visible, which is what outline-visible should be testing. -- Hannu