Rainer Stengele <[EMAIL PROTECTED]> 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
_______________________________________________
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 via email to