[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug: org-get-current-options uses fixed format-time-string [7.6]
From: |
Diego Sevilla Ruiz |
Subject: |
[O] Bug: org-get-current-options uses fixed format-time-string [7.6] |
Date: |
Tue, 17 Jan 2012 13:44:14 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 |
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/ -- address@hidden _.___
Dep. Ingeniería y Tecnología de Computadores, Facultad de Informática D|TEC
Univ.de Murcia,Campus Espinardo,30080 Murcia (SPAIN),Tel.+34868887571
- [O] Bug: org-get-current-options uses fixed format-time-string [7.6],
Diego Sevilla Ruiz <=