From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: 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 [thread overview]
Message-ID: <871wcehiuu.fsf@bzg.ath.cx> (raw)
In-Reply-To: <fdoor6$qv$1@sea.gmane.org> (Rainer Stengele's message of "Sun, 30 Sep 2007 20:10:55 +0200")
[-- 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
next prev parent reply other threads:[~2007-10-01 16:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-10-01 18:34 ` 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=871wcehiuu.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--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).