From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: C-u C-u C-c ! inserts an active timestamp. Date: Sun, 22 Sep 2013 08:00:19 +0200 Message-ID: <6D83857C-F40D-4490-9503-DF16D5A3177D@gmail.com> References: <87li2wvq66.fsf@yahoo.fr> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_5B47D50A-C602-42E2-AFCA-FF3521674DC0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNciV-0008ET-TG for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 02:00:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNciQ-0001Rk-O0 for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 02:00:23 -0400 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:46311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNciQ-0001Qm-Fd for emacs-orgmode@gnu.org; Sun, 22 Sep 2013 02:00:18 -0400 Received: by mail-ee0-f44.google.com with SMTP id b47so1055500eek.31 for ; Sat, 21 Sep 2013 23:00:17 -0700 (PDT) In-Reply-To: <87li2wvq66.fsf@yahoo.fr> 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: Nicolas Richard Cc: emacs-orgmode@gnu.org --Apple-Mail=_5B47D50A-C602-42E2-AFCA-FF3521674DC0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Applied, thanks you Nicolas. - Carsten On 16.9.2013, at 15:42, Nicolas Richard = wrote: > I suggest the following change so that C-u C-u C-c ! inserts an = inactive > timestamp. I also document the INACTIVE argument of org-time-stamp. >=20 > --=20 > Nicolas. >=20 > =46rom 5cdb18297d92f2d99334d98aa2f3b8a40e44702f Mon Sep 17 00:00:00 = 2001 > From: Nicolas Richard > Date: Mon, 29 Apr 2013 09:02:21 +0200 > Subject: [PATCH] Enforce the convention that C-c ! inserts inactive > timestamps. >=20 > * lisp/org.el (org-time-stamp): When INACTIVE is non-nil, insert an > inactive timestamp also with double universal argument. > --- > lisp/org.el | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/lisp/org.el b/lisp/org.el > index 59a22a2..044d06f 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -16036,7 +16036,10 @@ If there is already a timestamp at the = cursor, it will be > modified. >=20 > With two universal prefix arguments, insert an active timestamp > -with the current time without prompting the user." > +with the current time without prompting the user. > + > +When called from lisp, the timestamp is inactive if INACTIVE is > +non-nil." > (interactive "P") > (let* ((ts nil) > (default-time > @@ -16083,7 +16086,7 @@ with the current time without prompting the = user." > " " repeater ">")))) > (message "Timestamp updated")) > ((equal arg '(16)) > - (org-insert-time-stamp (current-time) t)) > + (org-insert-time-stamp (current-time) t inactive)) > (t > (setq time (let ((this-command this-command)) > (org-read-date arg 'totime nil nil default-time = default-input inactive))) > --=20 > 1.8.1.5 >=20 >=20 --Apple-Mail=_5B47D50A-C602-42E2-AFCA-FF3521674DC0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSPodzAAoJEO+gg/nAZuwMd8sIALdMgC95AHxSrmcIxtz8Aos+ 6yEO2BZYTUy6JJHjF4Z+Ueg6cw5LPcBgNyjx7Pb2leam4HzI0/t5mi1pG49SmRAm RzxDRdHQxJ8/jC4w3ao3xho+GDdidxit83kJY1X9+GpeoMtmdezSVQGJk1WBk5Nw CBezWOjKwq6LSNxUD6ETP629Gl837+xb+xEohOdhgerGNeQdhSDtQfsJNz/BBGeQ oMuR5hjRaC1ggCVu7hLM4jFKgQknk+ctObRvcw67B6jyLv1Kwl8nJgWDSBxt6ls3 QBljQub4l1aIW2f+GasTjlqimxafuqfJQI1W0kC7B+RkDjAoYU1PZ9KfBJmp0+k= =sIAM -----END PGP SIGNATURE----- --Apple-Mail=_5B47D50A-C602-42E2-AFCA-FF3521674DC0--