From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: Strange tag search behavior Date: Wed, 26 Aug 2009 15:47:34 -0400 Message-ID: <4A959156.9090804@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgOTD-00015T-JW for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 15:47:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgOT7-000120-Uo for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 15:47:46 -0400 Received: from [199.232.76.173] (port=39388 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgOT7-00011r-PG for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 15:47:41 -0400 Received: from mail-pz0-f183.google.com ([209.85.222.183]:40332) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgOT7-0004c4-BI for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 15:47:41 -0400 Received: by pzk13 with SMTP id 13so617767pzk.25 for ; Wed, 26 Aug 2009 12:47:39 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "[Orgmode]" The test file shown below produces strange behavior when doing a tag search. This behavior is described after the file. The Org-Mode version is 6.29trans on GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-08-01 on leucaena, modified by Debian. -------------------------------------- * Grades ** Student 1 :student1: *** Homework :homework: |----------+---+---+---+---+---| | Homework | 1 | 2 | 3 | 4 | 5 | |----------+---+---+---+---+---| | | | | | | | |----------+---+---+---+---+---| *** *** Attendance :attendance: x = did not attend |------------+---+---+---+---+---| | Attendance | | | | | | |------------+---+---+---+---+---| | Day | 1 | 2 | 3 | 4 | 5 | | | | | | | | |------------+---+---+---+---+---| *** ** Student 2 :student2: *** Homework :homework: |----------+---+---+---+---+---| | Homework | 1 | 2 | 3 | 4 | 5 | |----------+---+---+---+---+---| | | | | | | | |----------+---+---+---+---+---| *** *** Attendance :attendance: x = did not attend |------------+---+---+---+---+---| | Attendance | | | | | | |------------+---+---+---+---+---| | Day | 1 | 2 | 3 | 4 | 5 | | | | | | | | |------------+---+---+---+---+---| *** ** Student 3 :student3: *** Homework :homework: |----------+---+---+---+---+---| | Homework | 1 | 2 | 3 | 4 | 5 | |----------+---+---+---+---+---| | | | | | | | |----------+---+---+---+---+---| *** *** Attendance :attendance: x = did not attend |------------+---+---+---+---+---| | Attendance | | | | | | |------------+---+---+---+---+---| | Day | 1 | 2 | 3 | 4 | 5 | | | | | | | | |------------+---+---+---+---+---| *** ** Student 4 :student4: *** Homework :homework: |----------+---+---+---+---+---| | Homework | 1 | 2 | 3 | 4 | 5 | |----------+---+---+---+---+---| | | | | | | | |----------+---+---+---+---+---| *** *** Attendance :attendance: x = did not attend |------------+---+---+---+---+---| | Attendance | | | | | | |------------+---+---+---+---+---| | Day | 1 | 2 | 3 | 4 | 5 | | | | | | | | |------------+---+---+---+---+---| *** -------------------------------------- To see the strange behavior, do the following. M-S-< (to place the cursor at the beginning of the file) C-c \ student1+attendance|student2+attendance C-u 2 C-n TAB C-u 6 C-n TAB Instead of the cursor going to the first column of the table (which is what should occur), the following USUALLY occurs (sometimes something else wrong happens): the table is folded and the cursor appears at the end of the line "x= did not attend..." Now hit TAB and the "*** Attendance" subtree is folded (usually). TAB C-u 6 C-n TAB and the correct behavior occurs. This behavior doesn't happen if the tag search doesn't include an "or". I rely on these type of searches. I haven't encountered this problem in previous versions of Org-Mode. How is this issue fixed? Scott Randby (1)