From: Carsten Dominik <carsten.dominik@gmail.com>
To: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: C-u C-u C-c ! inserts an active timestamp.
Date: Sun, 22 Sep 2013 08:00:19 +0200 [thread overview]
Message-ID: <6D83857C-F40D-4490-9503-DF16D5A3177D@gmail.com> (raw)
In-Reply-To: <87li2wvq66.fsf@yahoo.fr>
[-- Attachment #1: Type: text/plain, Size: 1796 bytes --]
Applied, thanks you Nicolas.
- Carsten
On 16.9.2013, at 15:42, Nicolas Richard <theonewiththeevillook@yahoo.fr> 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.
>
> --
> Nicolas.
>
> From 5cdb18297d92f2d99334d98aa2f3b8a40e44702f Mon Sep 17 00:00:00 2001
> From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
> 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
>
>
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2013-09-22 6:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-16 13:42 C-u C-u C-c ! inserts an active timestamp Nicolas Richard
2013-09-22 6:00 ` Carsten Dominik [this message]
2013-09-23 8:51 ` Nicolas Richard
2013-09-23 9:07 ` Suvayu Ali
2013-09-23 9:16 ` Sebastien Vauban
2013-09-23 14:08 ` Suvayu Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6D83857C-F40D-4490-9503-DF16D5A3177D@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=theonewiththeevillook@yahoo.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.