emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Set priority by S-<up> or S-<down> does not seem to work in an indirect buffer in the first todo headline
@ 2007-09-30 18:10 Rainer Stengele
  2007-10-01 16:58 ` Bastien
  2007-10-01 18:34 ` Carsten Dominik
  0 siblings, 2 replies; 3+ messages in thread
From: Rainer Stengele @ 2007-09-30 18:10 UTC (permalink / raw)
  To: emacs-orgmode

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?

Rainer

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Set priority by S-<up> or S-<down> does not seem to work in an indirect buffer in the first todo headline
  2007-09-30 18:10 Set priority by S-<up> or S-<down> does not seem to work in an indirect buffer in the first todo headline Rainer Stengele
@ 2007-10-01 16:58 ` Bastien
  2007-10-01 18:34 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2007-10-01 16:58 UTC (permalink / raw)
  To: emacs-orgmode

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

Rainer Stengele <rainer.stengele@diplan.de> 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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org.el.patch --]
[-- Type: text/x-diff, Size: 589 bytes --]

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

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


But I guess Carsten will find a more general solution.

-- 
Bastien

[-- Attachment #4: 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Set priority by S-<up> or S-<down> does not seem to work in an indirect buffer in the first todo headline
  2007-09-30 18:10 Set priority by S-<up> or S-<down> does not seem to work in an indirect buffer in the first todo headline Rainer Stengele
  2007-10-01 16:58 ` Bastien
@ 2007-10-01 18:34 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2007-10-01 18:34 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode


On Sep 30, 2007, at 20:10, Rainer Stengele wrote:

> 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?

It sure is.  Fixed for next version, thanks.

- Carsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-01 20:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-30 18:10 Set priority by S-<up> or S-<down> does not seem to work in an indirect buffer in the first todo headline Rainer Stengele
2007-10-01 16:58 ` Bastien
2007-10-01 18:34 ` Carsten Dominik

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).