emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix for `parse-time-string'


From: Bastien
Subject: [PATCH] Fix for `parse-time-string'
Date: Fri, 24 Jan 2020 11:06:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Paul,

07a4dd8e6a introduces a change in the behavior of `parse-time-string':

(parse-time-string "2020-12-12")
  [before 07a4dd8e6a] => (nil nil nil 12 12 2020 nil nil nil)
   [after 07a4dd8e6a] => (0 0 0 12 12 2020 nil -1 nil)

The current docstring seems to suggest that the current implementation
should return (nil nil nil 12 12 2020 nil -1 nil).

I suggest the attached patch to revert to the previous behavior while
still having the benefits of the new implementation.

The new behavior causes an annoying bug in Org-mode: re-scheduling a
headline from the calendar introduces a default time value ("00:00")
even when there is no time in the timestamp.

WDYT?

Thanks,

-- 
 Bastien

Attachment: parse-time.el.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]