From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: C-u C-u C-c ! inserts an active timestamp. Date: Mon, 16 Sep 2013 15:42:25 +0200 Message-ID: <87li2wvq66.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLZ4P-0006NG-5q for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 09:42:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLZ4J-00010r-ES for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 09:42:29 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:48415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLZ4J-00010j-87 for emacs-orgmode@gnu.org; Mon, 16 Sep 2013 09:42:23 -0400 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: emacs-orgmode@gnu.org 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. -- Nicolas. >From 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. * 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(-) 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. 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))) -- 1.8.1.5