diff options
| author | Glenn Morris | 2009-06-22 06:29:59 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-06-22 06:29:59 +0000 |
| commit | 731a00fbd7293d006744df495d13da5a27d4daec (patch) | |
| tree | 2d62b64a9efb66333e8a21bcd24ea9bb7506cd74 | |
| parent | c66cd0ff658dfcba849176d58a405c69e9672e80 (diff) | |
| download | emacs-731a00fbd7293d006744df495d13da5a27d4daec.tar.gz emacs-731a00fbd7293d006744df495d13da5a27d4daec.zip | |
(appt-make-list): Fix off-by-one error caused by
differing behavior of \n and ^ in strings. (Bug#3385)
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/calendar/appt.el | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2b8da709b92..c2ff91ba0be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-06-22 Glenn Morris <rgm@gnu.org> | 1 | 2009-06-22 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/appt.el (appt-make-list): Fix off-by-one error caused by | ||
| 4 | differing behavior of \n and ^ in strings. (Bug#3385) | ||
| 5 | |||
| 3 | * emacs-lisp/cl-indent.el: Remove leading "*" from defcustom docs. | 6 | * emacs-lisp/cl-indent.el: Remove leading "*" from defcustom docs. |
| 4 | 7 | ||
| 5 | * emacs-lisp/lisp-mode.el (lisp-indent-offset): Fix safe-local-variable | 8 | * emacs-lisp/lisp-mode.el (lisp-indent-offset): Fix safe-local-variable |
diff --git a/lisp/calendar/appt.el b/lisp/calendar/appt.el index 6b58b8ca552..3c39cd9960e 100644 --- a/lisp/calendar/appt.el +++ b/lisp/calendar/appt.el | |||
| @@ -568,7 +568,7 @@ appointment package (if it is not already active)." | |||
| 568 | (match-end 0))) | 568 | (match-end 0))) |
| 569 | ;; Get the whole string for this appointment. | 569 | ;; Get the whole string for this appointment. |
| 570 | (appt-time-string | 570 | (appt-time-string |
| 571 | (substring time-string beg (if end (1- end)))) | 571 | (substring time-string beg end)) |
| 572 | (appt-time (list (appt-convert-time only-time))) | 572 | (appt-time (list (appt-convert-time only-time))) |
| 573 | (time-msg (list appt-time appt-time-string))) | 573 | (time-msg (list appt-time appt-time-string))) |
| 574 | ;; Add this appointment to appt-time-msg-list. | 574 | ;; Add this appointment to appt-time-msg-list. |