From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: Infinite loop in `org-previous-item' when there's nothing above item (patch included) [6.33trans (release_6.33f.80.gb777e3)] Date: Thu, 10 Dec 2009 13:48:54 +0100 Message-ID: References: <87ws11xhem.wl%maus.david@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIiS8-0008QM-TW for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 07:49:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIiS4-0008MD-NA for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 07:49:04 -0500 Received: from [199.232.76.173] (port=52514 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIiS4-0008Lm-G6 for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 07:49:00 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:34422) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIiS3-0005D6-UC for emacs-orgmode@gnu.org; Thu, 10 Dec 2009 07:49:00 -0500 Received: by ewy24 with SMTP id 24so9193510ewy.26 for ; Thu, 10 Dec 2009 04:48:58 -0800 (PST) In-Reply-To: <87ws11xhem.wl%maus.david@gmail.com> 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: David Maus Cc: emacs-orgmode@gnu.org Hi David, I have applied your patch, thanks! - Carsten On Dec 5, 2009, at 10:03 PM, David Maus wrote: > > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? > See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ > > When `org-previous-item' is called on an item with nothing above it > Orgmode enters an infinite loop. The reason is that > `org-previous-item' searches for non-empty lines by moving point up > line by line and if there is nothing above an item point gets stuck on > begin of buffer. > > example.org > ,---- > | > | - Item > `---- > > Move point on Item, M-x org-previous-item RET and Orgmode enters the > infinite loop. > > Attached patch adds a conditional clause to `org-previous-item' that > leaves the search loop if point reaches beginning of buffer. > > Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) > of 2009-11-28 on elegiac, modified by Debian > Package: Org-mode version 6.33trans (release_6.33f.80.gb777e3) > > <0001-org-list.el-Prevent-infinite-loop-in-org-previous- > it.patch>_______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten