From: Bastien <bzg@altern.org>
To: Diego Sevilla Ruiz <dsevilla@ditec.um.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: org-get-current-options uses fixed format-time-string [7.6]
Date: Wed, 25 Jan 2012 10:16:08 +0100 [thread overview]
Message-ID: <87vco0m9bb.fsf@gnu.org> (raw)
In-Reply-To: <4F156D1E.2020508@ditec.um.es> (Diego Sevilla Ruiz's message of "Tue, 17 Jan 2012 13:44:14 +0100")
Hi Diego,
this is not a bug -- please use `org-submit-bug-report' for bugs
only.
Diego Sevilla Ruiz <dsevilla@ditec.um.es> writes:
> org-get-current-options uses the following line to fill the `#+DATE:'
> property in a new file:
>
> (format-time-string (substring (car org-time-stamp-formats) 1 -1))
>
> While this is correct, I think it is too much tightly coupled with the
> org-time-stamp-formats constant defined in org.el.
>
> I would like to suggest to add a new defun (possibly interactive) to add a
> plain actual date. Something along the lines of:
>
> (defun org-current-time-stamp-string ()
> "Returns the current time stamp string in the org format."
> (format-time-string (substring (car org-time-stamp-formats) 1 -1)))
>
> (defun org-insert-current-time-stamp-string ()
> "Insert at point the current time stamp string in the org format."
> (interactive)
> (insert (org-current-time-stamp-string)))
>
> If those functions already exist, it would be then more appropriate to use
> them in that function `org-get-current-options`.
I'm not sure to understand -- can you try to rephrase your request?
What do you want to achieve exactly?
Thanks,
--
Bastien
prev parent reply other threads:[~2012-01-25 9:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 12:44 Bug: org-get-current-options uses fixed format-time-string [7.6] Diego Sevilla Ruiz
2012-01-25 9:16 ` Bastien [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vco0m9bb.fsf@gnu.org \
--to=bzg@altern.org \
--cc=dsevilla@ditec.um.es \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).