diff options
| author | Vibhav Pant | 2017-02-13 17:07:36 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2017-02-13 17:07:36 +0530 |
| commit | cb410433e069b5bb450193353c3fea8593a643a9 (patch) | |
| tree | d2f4269781b4841e5a0c27ec57a5a4fbcec386c0 /lisp/bookmark.el | |
| parent | e742450427007cdde242c11380dfe32a950fab61 (diff) | |
| parent | 4b18ef7ba3dd8aae4f3c3bf931365ef7da883baf (diff) | |
| download | emacs-feature/byte-switch.tar.gz emacs-feature/byte-switch.zip | |
Merge branch 'master' into feature/byte-switchfeature/byte-switch
Diffstat (limited to 'lisp/bookmark.el')
| -rw-r--r-- | lisp/bookmark.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 02dd8a9f6fc..5b8ded7b22a 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -896,8 +896,8 @@ If optional arg NEWLINE-TOO is non-nil, delete the newline too. | |||
| 896 | Does not affect the kill ring." | 896 | Does not affect the kill ring." |
| 897 | (let ((eol (line-end-position))) | 897 | (let ((eol (line-end-position))) |
| 898 | (delete-region (point) eol) | 898 | (delete-region (point) eol) |
| 899 | (if (and newline-too (looking-at "\n")) | 899 | (when (and newline-too (= (following-char) ?\n)) |
| 900 | (delete-char 1)))) | 900 | (delete-char 1)))) |
| 901 | 901 | ||
| 902 | 902 | ||
| 903 | ;; Defvars to avoid compilation warnings: | 903 | ;; Defvars to avoid compilation warnings: |
| @@ -957,7 +957,7 @@ Lines beginning with `#' are ignored." | |||
| 957 | (error "Not in bookmark-edit-annotation-mode")) | 957 | (error "Not in bookmark-edit-annotation-mode")) |
| 958 | (goto-char (point-min)) | 958 | (goto-char (point-min)) |
| 959 | (while (< (point) (point-max)) | 959 | (while (< (point) (point-max)) |
| 960 | (if (looking-at "^#") | 960 | (if (= (following-char) ?#) |
| 961 | (bookmark-kill-line t) | 961 | (bookmark-kill-line t) |
| 962 | (forward-line 1))) | 962 | (forward-line 1))) |
| 963 | ;; Take no chances with text properties. | 963 | ;; Take no chances with text properties. |
| @@ -2064,7 +2064,7 @@ To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\ | |||
| 2064 | (let ((o-point (point)) | 2064 | (let ((o-point (point)) |
| 2065 | (o-str (save-excursion | 2065 | (o-str (save-excursion |
| 2066 | (beginning-of-line) | 2066 | (beginning-of-line) |
| 2067 | (unless (looking-at "^D") | 2067 | (unless (= (following-char) ?D) |
| 2068 | (buffer-substring | 2068 | (buffer-substring |
| 2069 | (point) | 2069 | (point) |
| 2070 | (progn (end-of-line) (point)))))) | 2070 | (progn (end-of-line) (point)))))) |