emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Set priority by S-<up> or S-<down> does not seem to work i


From: Bastien
Subject: Re: [Orgmode] Set priority by S-<up> or S-<down> does not seem to work in an indirect buffer in the first todo headline
Date: Mon, 01 Oct 2007 18:58:49 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Rainer Stengele <address@hidden> writes:

> as the subjct already says ... S-up does not do in the indirect buffer
> what it does in the "direct" buffer.
>
> Instead of a priority I get "Beginning of buffer". Is this a bug?

Yes.  

`org-shiftup' calls `org-at-timestamp-p' (among others) which tries to
go backward while deciding if the cursor is on a timestamp.

This tiny patch provides a temporary workaround by being a bit more
liberal about the narrowed region:

diff -u /home/guerry/elisp/testing/org/org.el 
/home/guerry/elisp/testing/bzg/org.el
--- /home/guerry/elisp/testing/org/org.el       2007-09-26 21:00:50.000000000 
+0200
+++ /home/guerry/elisp/testing/bzg/org.el       2007-10-01 18:53:54.000000000 
+0200
@@ -5370,7 +5370,7 @@
        (if (< arg 0) (setq arg (+ level arg)))
        (while (> (setq level (org-outline-level)) arg)
          (outline-up-heading 1 t)))
-      (setq beg (point)
+      (setq beg (1- (point))
            heading (org-get-heading))
       (org-end-of-subtree t) (setq end (point)))
     (if (and (not arg)

Diff finished.  Mon Oct  1 18:57:33 2007
But I guess Carsten will find a more general solution.

-- 
Bastien

reply via email to

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