Re: [O] Bug: org-get-current-options uses fixed format-time-string [7.6]

2012-01-25 Thread Bastien
Hi Diego,

this is not a bug -- please use `org-submit-bug-report' for bugs
only.

Diego Sevilla Ruiz dsevi...@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



[O] Bug: org-get-current-options uses fixed format-time-string [7.6]

2012-01-17 Thread Diego Sevilla Ruiz


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/ -- dsevi...@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