From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Sevilla Ruiz Subject: Bug: org-get-current-options uses fixed format-time-string [7.6] Date: Tue, 17 Jan 2012 13:44:14 +0100 Message-ID: <4F156D1E.2020508@ditec.um.es> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn8Qq-0004Vh-Gd for emacs-orgmode@gnu.org; Tue, 17 Jan 2012 07:46:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rn8Qj-0001xM-K4 for emacs-orgmode@gnu.org; Tue, 17 Jan 2012 07:46:32 -0500 Received: from xenon12.um.es ([155.54.212.166]:53674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn8Qj-0001wT-C5 for emacs-orgmode@gnu.org; Tue, 17 Jan 2012 07:46:25 -0500 Received: from localhost (localhost [127.0.0.1]) by xenon12.um.es (Postfix) with ESMTP id C15864C230 for ; Tue, 17 Jan 2012 13:46:17 +0100 (CET) Received: from xenon12.um.es ([127.0.0.1]) by localhost (xenon12.um.es [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zQtuunK-VNZE for ; Tue, 17 Jan 2012 13:46:09 +0100 (CET) Received: from neuromancer.inf.um.es (neuromancer.inf.um.es [155.54.204.57]) (Authenticated sender: dsevilla) by xenon12.um.es (Postfix) with ESMTPA id 670644C2A8 for ; Tue, 17 Jan 2012 13:44:14 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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:'=20 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=20 org-time-stamp-formats constant defined in org.el. I would like to suggest to add a new defun (possibly interactive) to add = a=20 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 us= e=20 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 --=20 Diego Sevilla Ruiz -- http://ditec.um.es/~dsevilla/ -- dsevilla@um.es _._= __ Dep. Ingenier=C3=ADa y Tecnolog=C3=ADa de Computadores, Facultad de Infor= m=C3=A1tica D|TEC Univ.de Murcia,Campus Espinardo,30080 Murcia (SPAIN),Tel.+34868887571