Mercurial > emacs
changeset 6282:1b76cf849b2f
(menu-bar-bookmark-map): Autoload the whole setup.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 10 Mar 1994 04:24:29 +0000 |
parents | e98ae7dec34d |
children | 8616f990feaf |
files | lisp/bookmark.el |
diffstat | 1 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/bookmark.el Thu Mar 10 04:23:52 1994 +0000 +++ b/lisp/bookmark.el Thu Mar 10 04:24:29 1994 +0000 @@ -1254,46 +1254,51 @@ ;; Thanks to Roland McGrath for fixing menubar.el so that the ;; following works, and for explaining what to do to make it work. +;;;###autoload (defvar menu-bar-bookmark-map (make-sparse-keymap "Bookmark functions.")) -;; make bookmarks appear toward the right side of the menu. -(if (boundp 'menu-bar-final-items) - (if menu-bar-final-items - (setq menu-bar-final-items - (cons 'bookmark menu-bar-final-items))) - (setq menu-bar-final-items '(bookmark))) +;;;###autoload +(fset 'menu-bar-bookmark-map (symbol-value 'menu-bar-bookmark-map)) +;;;###autoload (define-key menu-bar-bookmark-map [load] '("Load a bookmark file" . bookmark-load)) +;;;###autoload (define-key menu-bar-bookmark-map [write] '("Write \(to another file\)" . bookmark-write)) +;;;###autoload (define-key menu-bar-bookmark-map [save] '("Save \(in default file\)" . bookmark-save)) +;;;###autoload (define-key menu-bar-bookmark-map [edit] '("Edit Bookmark List" . list-bookmarks)) +;;;###autoload (define-key menu-bar-bookmark-map [delete] '("Delete bookmark" . bookmark-menu-bar-delete)) +;;;###autoload (define-key menu-bar-bookmark-map [rename] '("Rename bookmark" . bookmark-menu-bar-rename)) +;;;###autoload (define-key menu-bar-bookmark-map [locate] '("Insert location" . bookmark-menu-bar-locate)) +;;;###autoload (define-key menu-bar-bookmark-map [insert] '("Insert contents" . bookmark-menu-bar-insert)) +;;;###autoload (define-key menu-bar-bookmark-map [set] '("Set bookmark" . bookmark-set)) +;;;###autoload (define-key menu-bar-bookmark-map [jump] '("Jump to bookmark" . bookmark-menu-bar-jump)) - -;;;###autoload (autoload 'menu-bar-bookmark-map "bookmark" nil t 'keymap) (fset 'menu-bar-bookmark-map (symbol-value 'menu-bar-bookmark-map))