This follows up to Mark Oteiza's commit of 12 Feb 2017, 14:46:03 UTC
(commit
91478f46238a) with more of the same.
* lisp/bookmark.el (bookmark-send-edited-annotation):
(bookmark-bmenu-execute-deletions): Replace instances of looking-at
with char comparisons using following-char.
(error "Not in bookmark-edit-annotation-mode"))
(goto-char (point-min))
(while (< (point) (point-max))
- (if (looking-at "^#")
+ (if (= (following-char) ?#)
(bookmark-kill-line t)
(forward-line 1)))
;; Take no chances with text properties.
(let ((o-point (point))
(o-str (save-excursion
(beginning-of-line)
- (unless (looking-at "^D")
+ (unless (= (following-char) ?D)
(buffer-substring
(point)
(progn (end-of-line) (point))))))