]> code.delx.au - gnu-emacs/commit
Offer non-overwrite bookmark setter (Bug#15746)
authorKarl Fogel <kfogel@red-bean.com>
Sun, 8 Nov 2015 19:16:43 +0000 (14:16 -0500)
committerKarl Fogel <kfogel@red-bean.com>
Sun, 8 Nov 2015 19:18:53 +0000 (14:18 -0500)
commit3812e17978547bd659b92da817f9ddd557bd511c
tree2efcc02f6276fb01de8fcbf027a3ea544541ca48
parent2ce0c0674eba9179ba57c537e387bc3f7b0e5b63
Offer non-overwrite bookmark setter (Bug#15746)

* lisp/bookmark.el (bookmark-set-internal): New helper function to do
  what `bookmark-set' used to do, but with more choices for overwrite
  vs push, and with minor changes to the interactive prompt format.
  (bookmark-set): Rewrite as wrapper around above.
  If overwriting, inform the user of that in the prompt.
  (bookmark-set-no-overwrite): New function, also done as wrapper.
  Bind to "M" in `ctl-x-r-map' autoloads.
  (bookmark-map): Similarly bind "M" here.
lisp/bookmark.el