]> git.eshelyaron.com Git - emacs.git/commitdiff
(bookmark-show-all-annotations):
authorThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 16 Jul 2007 02:17:28 +0000 (02:17 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 16 Jul 2007 02:17:28 +0000 (02:17 +0000)
Make sure each inserted annotation ends with newline.

lisp/ChangeLog
lisp/bookmark.el

index c9a5ef9016696d9bdab82eaa2cdc41196cdfe1bb..3fff69b4d1b09b335a404a585f1a052ca6b6abaf 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-16  Thien-Thi Nguyen  <ttn@gnuvola.org>
+
+       * bookmark.el (bookmark-show-all-annotations):
+       Make sure each inserted annotation ends with newline.
+
 2007-07-15  Juri Linkov  <juri@jurta.org>
 
        * delsel.el (delete-selection-pre-hook):
index 75c4826ae0b31fba54c5f04787d5b9244447cba4..5dc783d13d98e3f75fe3bb82d188a94441b817ea 100644 (file)
@@ -1816,7 +1816,8 @@ if an annotation exists."
          (if (and ann (not (string-equal ann "")))
              ;; insert the annotation, indented by 4 spaces.
              (progn
-               (save-excursion (insert ann))
+               (save-excursion (insert ann) (unless (bolp)
+                                              (insert "\n")))
                (while (< (point) (point-max))
                  (beginning-of-line) ; paranoia
                  (insert "    ")