* Bug: org-get-current-options uses fixed format-time-string [7.6]
@ 2012-01-17 12:44 Diego Sevilla Ruiz
2012-01-25 9:16 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Diego Sevilla Ruiz @ 2012-01-17 12:44 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug: org-get-current-options uses fixed format-time-string [7.6]
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
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-01-25 9:16 UTC (permalink / raw)
To: Diego Sevilla Ruiz; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-25 9:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).