From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: feature suggestion: apply datetime prompt magic to selected region Date: Fri, 07 Oct 2011 11:42:15 -0400 Message-ID: <10188.1318002135@alphaville.dokosmarshall.org> References: <87ehypx5s1.fsf@Rainer.invalid> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCCZ3-0001Sx-Nh for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 11:42:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCCZ2-0007oM-Ac for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 11:42:21 -0400 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:36838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCCZ2-0007oB-27 for emacs-orgmode@gnu.org; Fri, 07 Oct 2011 11:42:20 -0400 In-Reply-To: Message from Brian van den Broek of "Fri, 07 Oct 2011 16:36:27 +0200." 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: Brian van den Broek Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Brian van den Broek wrote: > ... > Say I have a buffer with the following contents: > > <------> > Some text in a buffer with orgmode enabled. > > Blah blah, Tuesday at 3pm blah blah September 19, 2003, 14:00-15:00 blah blah > <------> > > As it is now, if I kill the text "Tuesday at 3pm", and with cursor > where I killed hit C-u C-c . to invoke org-time-stamp with prefix > argument, and then yank the just killed text into the resulting > prompt, and repeat for the text "Sept. ... 15:00", I get > > <------> > Some text in a buffer with orgmode enabled. > > Blah blah, <2011-10-11 Tue 15:00> blah blah <2003-09-19 Fri > 14:00-15:00> blah blah > <------> > > (the exact way the org-time-stamp command interprets the text is a > function of the date that it is run and of the value of > org-read-date-prefer-future, and possibly other variables, too.) > > What I was suggesting was it would be cool and a small time-saver if I > could select the text "Tuesday at 3pm" and hit C-u C-c . and have the > region replaced with the stamp <2011-10-11 Tue 15:00>, entirely > bypassing the kill and yank steps. (Achim correctly suggested that > what I want to do could be done with a keyboard macro. I still think > it would be neat.) So we are talking about saving two keystrokes: not worth it in my opinion for interactive use (unless you have a bunch of things to do, as you apparently did - macros or a wrapped org-time-stamp assigned to some key is probably the best solution for that). The reason why I don't think that anything more needs to be done in org, is that the major time waster here is *not* the two extra keystrokes: it's selecting the region(s) to cut/paste - I don't see any way to improve that. Nick