Inherit instead of copying keymap in bookmark.el
* lisp/bookmark.el (bookmark-rename): Inherit instead of copying keymap.
This commit is contained in:
parent
599aea3012
commit
0b5301fceb
1 changed files with 7 additions and 7 deletions
|
@ -216,10 +216,10 @@ A non-nil value may result in truncated bookmark names."
|
|||
;; Set up these bindings dumping time *only*;
|
||||
;; if the user alters them, don't override the user when loading bookmark.el.
|
||||
|
||||
;;;###autoload (define-key ctl-x-r-map "b" 'bookmark-jump)
|
||||
;;;###autoload (define-key ctl-x-r-map "m" 'bookmark-set)
|
||||
;;;###autoload (define-key ctl-x-r-map "M" 'bookmark-set-no-overwrite)
|
||||
;;;###autoload (define-key ctl-x-r-map "l" 'bookmark-bmenu-list)
|
||||
;;;###autoload (keymap-set ctl-x-r-map "b" #'bookmark-jump)
|
||||
;;;###autoload (keymap-set ctl-x-r-map "m" #'bookmark-set)
|
||||
;;;###autoload (keymap-set ctl-x-r-map "M" #'bookmark-set-no-overwrite)
|
||||
;;;###autoload (keymap-set ctl-x-r-map "l" #'bookmark-bmenu-list)
|
||||
|
||||
;;;###autoload
|
||||
(defvar-keymap bookmark-map
|
||||
|
@ -1436,9 +1436,9 @@ name."
|
|||
(read-from-minibuffer
|
||||
"New name: "
|
||||
nil
|
||||
(let ((now-map (copy-keymap minibuffer-local-map)))
|
||||
(define-key now-map "\C-w" 'bookmark-yank-word)
|
||||
now-map)
|
||||
(define-keymap
|
||||
:parent minibuffer-local-map
|
||||
"C-w" #'bookmark-yank-word)
|
||||
nil
|
||||
'bookmark-history))))
|
||||
(bookmark-set-name old-name final-new-name)
|
||||
|
|
Loading…
Add table
Reference in a new issue