From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Set priority by S- or S- does not seem to work in an indirect buffer in the first todo headline Date: Mon, 01 Oct 2007 18:58:49 +0200 Message-ID: <871wcehiuu.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IcObh-0005kC-2N for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 12:58:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IcObf-0005k0-Hx for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 12:58:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcObf-0005jx-EX for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 12:58:55 -0400 Received: from nf-out-0910.google.com ([64.233.182.187]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IcObf-0002ue-0i for emacs-orgmode@gnu.org; Mon, 01 Oct 2007 12:58:55 -0400 Received: by nf-out-0910.google.com with SMTP id f5so2782558nfh for ; Mon, 01 Oct 2007 09:58:54 -0700 (PDT) In-Reply-To: (Rainer Stengele's message of "Sun, 30 Sep 2007 20:10:55 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Rainer Stengele 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: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org.el.patch 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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--