emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Buguette in `org-context'


From: Michael Sperber
Subject: [Orgmode] Buguette in `org-context'
Date: Thu, 01 Oct 2009 18:33:37 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (darwin)

`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
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  <address@hidden>
+
+       * org.el (org-context): Replace an (eobp) by (bobp) that was
+       probably intended.
+
 2009-09-28  Carsten Dominik  <address@hidden>
 
        * 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)))
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]