From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Setting properties when scrolling around buffer puts property in wrong headline Date: Sun, 3 Nov 2013 08:22:16 -0600 Message-ID: References: <871u2zlv4z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0141a79cc3e85804ea468606 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcyZG-000626-L7 for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 09:22:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcyZF-0007xM-Jp for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 09:22:18 -0500 Received: from mail-oa0-x232.google.com ([2607:f8b0:4003:c02::232]:58809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcyZF-0007xA-AR for emacs-orgmode@gnu.org; Sun, 03 Nov 2013 09:22:17 -0500 Received: by mail-oa0-f50.google.com with SMTP id j6so6338419oag.9 for ; Sun, 03 Nov 2013 06:22:16 -0800 (PST) In-Reply-To: <871u2zlv4z.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: emacs-orgmode --089e0141a79cc3e85804ea468606 Content-Type: text/plain; charset=UTF-8 On Nov 1, 2013 3:34 PM, "Thorsten Jolitz" wrote: > > John Hendy writes: > > >> I'm supposing there's no way around this... but I'm creating a > >> taskjuggler document that's fairly wrong. I often find myself in a > >> situation where I go to set a :depends: property to reference another > >> headline and need to go see what it's task_id is. So, I scroll down, > >> look at the task, then enter the correct task_id in the minibuffer > >> (which is still active after doing C-c C-x p property-name RET), and > >> then find that it's been inserted in a different headline since > >> scrolling moves the point/cursor to a different headline. > > I would say its the expected behaviour - when the mini-buffer is still > active, the command wasn't sent yet, and when you finally send it, > Org-mode acts on the property drawer where point is at that moment. > Understood, and that's what I figured but wanted to check! > You might want to read about using the mark, i.e. how to set the mark > before searching the task-id, and then go back to that point before > sending the command from the mini-buffer: Will do. I constantly lose my mark when searching and selecting, so sounds really helpful. Thanks, John > > ,---------------------------------------------------------------------------------- > | http://www.gnu.org/software/emacs/manual/html_node/emacs/Mark-Ring.html#Mark-Ring > `---------------------------------------------------------------------------------- > > -- > cheers, > Thorsten > > --089e0141a79cc3e85804ea468606 Content-Type: text/html; charset=UTF-8


On Nov 1, 2013 3:34 PM, "Thorsten Jolitz" <tjolitz@gmail.com> wrote:
>
> John Hendy <jw.hendy@gmail.com> writes:
>
> >> I'm supposing there's no way around this... but I'm creating a
> >> taskjuggler document that's fairly wrong. I often find myself in a
> >> situation where I go to set a :depends: property to reference another
> >> headline and need to go see what it's task_id is. So, I scroll down,
> >> look at the task, then enter the correct task_id in the minibuffer
> >> (which is still active after doing C-c C-x p property-name RET), and
> >> then find that it's been inserted in a different headline since
> >> scrolling moves the point/cursor to a different headline.
>
> I would say its the expected behaviour - when the mini-buffer is still
> active, the command wasn't sent yet, and when you finally send it,
> Org-mode acts on the property drawer where point is at that moment.
>

Understood, and that's what I figured but wanted to check!

> You might want to read about using the mark, i.e. how to set the mark
> before searching the task-id, and then go back to that point before
> sending the command from the mini-buffer:

Will do. I constantly lose my mark when searching and selecting, so sounds really helpful.

Thanks,
John

>
> ,----------------------------------------------------------------------------------
> | http://www.gnu.org/software/emacs/manual/html_node/emacs/Mark-Ring.html#Mark-Ring
> `----------------------------------------------------------------------------------
>
> --
> cheers,
> Thorsten
>
>

--089e0141a79cc3e85804ea468606--