aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-07-16 02:17:28 +0000
committerThien-Thi Nguyen2007-07-16 02:17:28 +0000
commitfd5306d288cffa8397d9fd8187872208525713f0 (patch)
treecbd1acb873e6205457e5eae1d5161eb2cc4f5b6e
parent5412a7f398263c2b48f5154edf0596aa0cb048c6 (diff)
downloademacs-fd5306d288cffa8397d9fd8187872208525713f0.tar.gz
emacs-fd5306d288cffa8397d9fd8187872208525713f0.zip
(bookmark-show-all-annotations):
Make sure each inserted annotation ends with newline.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/bookmark.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c9a5ef90166..3fff69b4d1b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-07-16 Thien-Thi Nguyen <ttn@gnuvola.org>
2
3 * bookmark.el (bookmark-show-all-annotations):
4 Make sure each inserted annotation ends with newline.
5
12007-07-15 Juri Linkov <juri@jurta.org> 62007-07-15 Juri Linkov <juri@jurta.org>
2 7
3 * delsel.el (delete-selection-pre-hook): 8 * delsel.el (delete-selection-pre-hook):
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 75c4826ae0b..5dc783d13d9 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -1816,7 +1816,8 @@ if an annotation exists."
1816 (if (and ann (not (string-equal ann ""))) 1816 (if (and ann (not (string-equal ann "")))
1817 ;; insert the annotation, indented by 4 spaces. 1817 ;; insert the annotation, indented by 4 spaces.
1818 (progn 1818 (progn
1819 (save-excursion (insert ann)) 1819 (save-excursion (insert ann) (unless (bolp)
1820 (insert "\n")))
1820 (while (< (point) (point-max)) 1821 (while (< (point) (point-max))
1821 (beginning-of-line) ; paranoia 1822 (beginning-of-line) ; paranoia
1822 (insert " ") 1823 (insert " ")