mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-19 23:18:39 +00:00
org.el (org-read-date): Don't mention parse-time-weekdays' and
parse-time-months' in the docstring.
* org.el (org-read-date): Don't mention `parse-time-weekdays' and `parse-time-months' in the docstring. This problem has been reported by Michael Heerdegen -- see Emacs bug#11042 against 24.0.94.
This commit is contained in:
parent
86643eba4f
commit
ce1f368013
26
lisp/org.el
26
lisp/org.el
|
@ -14929,9 +14929,7 @@ plus or minus, it is relative to the date in DEFAULT-TIME. E.g.
|
|||
+2w --> two weeks from today
|
||||
++5 --> five days from default date
|
||||
|
||||
The function understands only English month and weekday abbreviations,
|
||||
but this can be configured with the variables `parse-time-months' and
|
||||
`parse-time-weekdays'.
|
||||
The function understands only English month and weekday abbreviations.
|
||||
|
||||
While prompting, a calendar is popped up - you can also select the
|
||||
date with the mouse (button 1). The calendar shows a period of three
|
||||
|
@ -15324,6 +15322,28 @@ user."
|
|||
|
||||
(defvar parse-time-weekdays)
|
||||
|
||||
;; (defcustom org-parse-time-weekdays parse-time-weekdays
|
||||
;; "Alist of day names and their position in the week."
|
||||
;; :group 'org-time
|
||||
;; :type '(alist :key-type (string :tag "Day name")
|
||||
;; :value-type (integer :tag "Position")))
|
||||
|
||||
(setq parse-time-weekdays '(("sun" . 0)
|
||||
("mon" . 1)
|
||||
("tue" . 2)
|
||||
("wed" . 3)
|
||||
("thu" . 4)
|
||||
("fri" . 5)
|
||||
("sat" . 6)
|
||||
("sunday" . 0)
|
||||
("monday" . 1)
|
||||
("tuesday" . 2)
|
||||
("wednesday" . 3)
|
||||
("thursday" . 4)
|
||||
("lundi" . 1)
|
||||
)
|
||||
)
|
||||
|
||||
(defun org-read-date-get-relative (s today default)
|
||||
"Check string S for special relative date string.
|
||||
TODAY and DEFAULT are internal times, for today and for a default.
|
||||
|
|
Loading…
Reference in a new issue