From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#11042: 24.0.94; dangerous org manual: parse-time-months and parse-time-weekdays Date: Wed, 21 Mar 2012 21:24:55 +0100 Message-ID: <87wr6d66so.fsf@web.de> References: <86wr6htni5.fsf@web.de> <87haxiuk8t.fsf__7447.95193099907$1332338401$gmane$org@altern.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332361477 4888 80.91.229.3 (21 Mar 2012 20:24:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2012 20:24:37 +0000 (UTC) To: 11042@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 21:24:37 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SAS5A-0002tF-Fh for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Mar 2012 21:24:32 +0100 Original-Received: from localhost ([::1]:45357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAS59-0005zY-P1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Mar 2012 16:24:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAS56-0005rT-2U for bug-gnu-emacs@gnu.org; Wed, 21 Mar 2012 16:24:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAS51-0003yo-6J for bug-gnu-emacs@gnu.org; Wed, 21 Mar 2012 16:24:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAS4w-0003xK-Vr; Wed, 21 Mar 2012 16:24:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SASYf-0002N8-So; Wed, 21 Mar 2012 16:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Wed, 21 Mar 2012 20:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11042 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13323632559062 (code B ref -1); Wed, 21 Mar 2012 20:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Mar 2012 20:54:15 +0000 Original-Received: from localhost ([127.0.0.1]:60152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SASXu-0002M6-4T for submit@debbugs.gnu.org; Wed, 21 Mar 2012 16:54:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49276) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SASXr-0002Lz-9c for submit@debbugs.gnu.org; Wed, 21 Mar 2012 16:54:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAS46-0003lr-1e for submit@debbugs.gnu.org; Wed, 21 Mar 2012 16:23:27 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:40404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAS45-0003lk-VM for submit@debbugs.gnu.org; Wed, 21 Mar 2012 16:23:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAS41-0005YI-5S for bug-gnu-emacs@gnu.org; Wed, 21 Mar 2012 16:23:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAS3w-0003cx-4Z for bug-gnu-emacs@gnu.org; Wed, 21 Mar 2012 16:23:20 -0400 Original-Received: from fmmailgate07.web.de ([217.72.192.248]:54379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAS3v-0003cX-RT for bug-gnu-emacs@gnu.org; Wed, 21 Mar 2012 16:23:16 -0400 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate07.web.de (Postfix) with ESMTP id 9E507F3C733 for ; Wed, 21 Mar 2012 21:23:13 +0100 (CET) Original-Received: from snow.dragon ([80.226.24.14]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0M2Mq4-1STMQD0BRE-00s6kZ; Wed, 21 Mar 2012 21:23:13 +0100 In-Reply-To: <87haxiuk8t.fsf__7447.95193099907$1332338401$gmane$org@altern.org> (Bastien's message of "Wed, 21 Mar 2012 15:00:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Provags-ID: V02:K0:isubgreQEwkWU2+qg1C59Q8FDiAZF0v0SaB9zRfgdGV hMpscmIcFkK6lneFKtGjlkSHU4nG6KagVm7cp+dM2xwKqELQWh vLYqnBSoxxIolJWBTPFqXmWy4xh6GuLIUIBDQnv9UD4xapyW16 ALomFJTas+IR2fpHz4qktijkZPdaNRJfCOoQ3HpLCrRp3idVrF b/5w4PRZVydgXjgQNFX4GDEUeHGhtzR7gCzN/ffDE0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57942 Archived-At: Bastien writes: > Hi Michael, > > Michael Heerdegen writes: > > > The org-mode manual under the node "The date/time prompt" tells: > > > > "[...] The function understands English month and weekday > > abbreviations. If > > you want to use unabbreviated names and/or other languages, configure > > the variables `parse-time-months' and `parse-time-weekdays'." > > > > It doesn't tell how the user can do that. Even worse, > > `parse-time-months' and `parse-time-weekdays' are not defined as user > > options and undocumented! > > > > After reading the above section in the org manual, users may replace > > the English names with e.g. German ones in their config. Seems this > > is not a good idea, as this user question in gnu.emacs.gnus shows: > > > > http://groups.google.com/group/gnu.emacs.gnus/browse_thread/thread/8dde85b5ff3ab454/a02ddb878bfa1eb9 > > The thread doesn't tell what is wrong with setting `parse-time-months' > and `parse-time-weekdays'. Can you expand a bit more on this? The thread is not completely visible in google groups, dunno why. Please read at gnu.emacs.gnus with a newsreader. The problem was that the user replaced the English names with German names - instead of adding them to the lists. This broke Gnus. Currently, `parse-time-months' and `parse-time-weekdays' are internal variables with no docstring. Seems they are not intended to be changed by the user. Other packages may rely on the fact that the default values aren't changed. If they are supposed to be configured by the user, they should get a documented defcustom. At least, the documentation in the org manual _must_ be improved, so that the user is enabled to do the right thing without breaking anything else. > > BTW1: maybe a better solution would be to define own variables for > > this purpose in org, instead of letting users change variables in > > parse-time.el. > > Org heavily depends on parse-time.el. Providing a defcustom in Org > that is tied to parse-time.el at the same time is not trivial. Why not? You could just write a function `org-parse-time-string' that binds `parse-time-months' and `parse-time-weekdays' accordingly and calls `parse-time-string'. Then you would just need to call this new function from org code. Regards, Michael.