emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Sperber <sperber@deinprogramm.de>
To: emacs-orgmode@gnu.org
Subject: Buguette in `org-context'
Date: Thu, 01 Oct 2009 18:33:37 +0200	[thread overview]
Message-ID: <y9lljjvvztq.fsf@deinprogramm.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]


`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

[-- Attachment #2: Type: text/plain, Size: 883 bytes --]

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  <mike@xemacs.org>
+
+	* org.el (org-context): Replace an (eobp) by (bobp) that was
+	probably intended.
+
 2009-09-28  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* 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)))
 

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

             reply	other threads:[~2009-10-01 17:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-01 16:33 Michael Sperber [this message]
2009-10-01 18:03 ` Buguette in `org-context' Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y9lljjvvztq.fsf@deinprogramm.de \
    --to=sperber@deinprogramm.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).