]> code.delx.au - gnu-emacs/blobdiff - lisp/calendar/diary-lib.el
Merge from emacs-23
[gnu-emacs] / lisp / calendar / diary-lib.el
index 231c92f417d09fb61367488c95ce950fb6d25f7a..869d69fd8b734a17a608a95f076d36ce6e5a8186 100644 (file)
@@ -1764,7 +1764,7 @@ best if they are non-marking."
         (forward-line 1)
         (while (looking-at "[ \t]")
           (forward-line 1))
-        (backward-char 1)
+        (if (bolp) (backward-char 1))
         (setq entry (buffer-substring-no-properties entry-start (point))))
       (setq diary-entry (diary-sexp-entry sexp entry date)
             literal entry               ; before evaluation