From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Sperber Subject: Buguette in `org-context' Date: Thu, 01 Oct 2009 18:33:37 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtPTv-0004FL-7b for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 13:30:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtPTq-000499-1m for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 13:30:18 -0400 Received: from [199.232.76.173] (port=38733 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtPTp-00048y-Tp for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 13:30:13 -0400 Received: from lo.gmane.org ([80.91.229.12]:38600) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtPTo-0002bu-V7 for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 13:30:13 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MtPTh-0002Sq-JJ for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 19:30:05 +0200 Received: from p5b206419.dip.t-dialin.net ([91.32.100.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Oct 2009 19:30:05 +0200 Received: from sperber by p5b206419.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Oct 2009 19:30:05 +0200 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit `org-context' fails if called at the beginning of a buffer. I think the reason is a call to `eobp' that wants to be a call to `bobp'. This buguette actually has serious consequences at least on XEmacs: `org-context' is called off the menubar construction, and if that fails, XEmacs crashes. (Try typing C-c C-s at the very beginning of an org-mode buffer.) -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla --=-=-= Content-Disposition: inline diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 25be313..c3db38c 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-10-01 Mike Sperber + + * org.el (org-context): Replace an (eobp) by (bobp) that was + probably intended. + 2009-09-28 Carsten Dominik * org.el (org-ctrl-c-ctrl-c): Pass prefix arg to diff --git a/lisp/org.el b/lisp/org.el index bde12b1..cc3a5e1 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16007,7 +16007,7 @@ and :keyword." (push (org-point-in-group p 2 :todo-keyword) clist) (push (org-point-in-group p 4 :tags) clist)) (goto-char p) - (skip-chars-backward "^[\n\r \t") (or (eobp) (backward-char 1)) + (skip-chars-backward "^[\n\r \t") (or (bobp) (backward-char 1)) (if (looking-at "\\[#[A-Z0-9]\\]") (push (org-point-in-group p 0 :priority) clist))) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--