From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Buguette in `org-context' Date: Thu, 1 Oct 2009 20:03:42 +0200 Message-ID: <8B27CF39-0D4B-47CD-AD04-D5F6C38492D3@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtQ0P-0000rs-4M for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 14:03:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtQ0K-0000pU-42 for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 14:03:52 -0400 Received: from [199.232.76.173] (port=57150 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtQ0J-0000pO-V8 for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 14:03:48 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:42447) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtQ0J-0000ba-DW for emacs-orgmode@gnu.org; Thu, 01 Oct 2009 14:03:47 -0400 Received: by ewy4 with SMTP id 4so437997ewy.31 for ; Thu, 01 Oct 2009 11:03:46 -0700 (PDT) In-Reply-To: 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: Michael Sperber Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On Oct 1, 2009, at 6:33 PM, Michael Sperber wrote: > > `org-context' fails if called at the beginning of a buffer. I think =20= > 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 =20 > fails, > XEmacs crashes. > > (Try typing C-c C-s at the very beginning of an org-mode buffer.) > > --=20 > Cheers =3D8-} Mike > Friede, V=F6lkerverst=E4ndigung und =FCberhaupt blabla > 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))) > > _______________________________________________ > 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