From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian van den Broek Subject: Re: feature suggestion: apply datetime prompt magic to selected region Date: Tue, 25 Oct 2011 18:56:56 +0200 Message-ID: References: <87ehypx5s1.fsf@Rainer.invalid> <87vcrfc4ix.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkJA-0006xR-7l for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 12:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIkJ8-0006Ny-4H for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 12:57:00 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:36040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIkJ8-0006Ne-1s for emacs-orgmode@gnu.org; Tue, 25 Oct 2011 12:56:58 -0400 Received: by vcbfk1 with SMTP id fk1so837818vcb.0 for ; Tue, 25 Oct 2011 09:56:57 -0700 (PDT) In-Reply-To: <87vcrfc4ix.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode@gnu.org On 24 October 2011 08:00, Bastien wrote: > Hi Brian, > > suvayu ali writes: > >> Ah I see it now, you want the org-timestamp command to work on a >> region. Maybe you can write your own function with lisp if you are >> doing this too often. Should be quite simple to try. > > Please check `org-loop-over-headlines-in-active-region' from latest > git repo and see if using `org-schedule' in the region does what you > want. =A0We can actually implement this for `org-timestamp' as well, > if relevant. > > Thanks, > > -- > =A0Bastien Hi Bastien, Thanks for replying and giving this your attention. Various people upthread convinced me that my feature request wasn't really worth it. (I do hope it didn't cost you too much time!) So, I am content to drop it here :-) That said, it seems only right to respond and let you know how things sit. Feel free to let it die. Unless I misunderstood, that does not do what I had in mind. With a fresh git pull I invoked emacs with emacs --no-site-file -l minimalorgtestdotemacs test.org where minimalorgtestdotemacs reads: (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-cc" 'org-capture) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (transient-mark-mode 1) (setq org-loop-over-headlines-in-active-region t) and test.org reads: * test 2003-01-26 Versions: Org-mode version 7.7 (release_7.7.464.g679a0) GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian If I have point and mark on either end of 2003-01-26 and invoke M-x org-schedule, nothing occurs. By analogy with my original request, what was desired was for the region to automatically get fed to the datetime prompt and thus for the test subtree to acquire the scheduled date of 2003-01-26 without further intervention. So, thanks again for the attention to the suggestion. I'm more than happy to let it rest here. Best, Brian vdB