From: Diego Sevilla Ruiz <dsevilla@ditec.um.es>
To: emacs-orgmode@gnu.org
Subject: Bug: org-get-current-options uses fixed format-time-string [7.6]
Date: Tue, 17 Jan 2012 13:44:14 +0100 [thread overview]
Message-ID: <4F156D1E.2020508@ditec.um.es> (raw)
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
http://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------
Hi all:
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`.
Emacs : GNU Emacs 24.0.90.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.4)
of 2011-10-12 on dfontaine-laptop, modified by Debian
Package: Org-mode version 7.6
--
Diego Sevilla Ruiz -- http://ditec.um.es/~dsevilla/ -- dsevilla@um.es _.___
Dep. Ingeniería y Tecnología de Computadores, Facultad de Informática D|TEC
Univ.de Murcia,Campus Espinardo,30080 Murcia (SPAIN),Tel.+34868887571
next reply other threads:[~2012-01-17 12:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 12:44 Diego Sevilla Ruiz [this message]
2012-01-25 9:16 ` Bug: org-get-current-options uses fixed format-time-string [7.6] Bastien
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=4F156D1E.2020508@ditec.um.es \
--to=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 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.