]> git.eshelyaron.com Git - emacs.git/commitdiff
(appt-make-list): Fix off-by-one error caused by
authorGlenn Morris <rgm@gnu.org>
Mon, 22 Jun 2009 06:29:59 +0000 (06:29 +0000)
committerGlenn Morris <rgm@gnu.org>
Mon, 22 Jun 2009 06:29:59 +0000 (06:29 +0000)
differing behavior of \n and ^ in strings.  (Bug#3385)

lisp/ChangeLog
lisp/calendar/appt.el

index 2b8da709b9215d808fd6f628b7d5979e08385461..c2ff91ba0be89f0aca5696ed092fc4287c2873ce 100644 (file)
@@ -1,5 +1,8 @@
 2009-06-22  Glenn Morris  <rgm@gnu.org>
 
+       * calendar/appt.el (appt-make-list): Fix off-by-one error caused by
+       differing behavior of \n and ^ in strings.  (Bug#3385)
+
        * emacs-lisp/cl-indent.el: Remove leading "*" from defcustom docs.
 
        * emacs-lisp/lisp-mode.el (lisp-indent-offset): Fix safe-local-variable
index 6b58b8ca552fd3178cf6e4c5db93900a4ffb0a6c..3c39cd9960e5a04745611077dd75dc1617d07cce 100644 (file)
@@ -568,7 +568,7 @@ appointment package (if it is not already active)."
                                  (match-end 0)))
                            ;; Get the whole string for this appointment.
                            (appt-time-string
-                            (substring time-string beg (if end (1- end))))
+                            (substring time-string beg end))
                            (appt-time (list (appt-convert-time only-time)))
                            (time-msg (list appt-time appt-time-string)))
                       ;; Add this appointment to appt-time-msg-list.