:version "27.1"
:type '(choice (const :tag "Suggest to reload bookmark file if changed" t)
(const :tag "Silently reload bookmark file if changed" silent)
- (const :tag "Ignore changes of bookmark file" nil))
- :group 'bookmark)
+ (const :tag "Ignore changes of bookmark file" nil)))
(defcustom bookmark-version-control 'nospecial
"Whether or not to make numbered backups of the bookmark file.
(defun bookmark-all-names ()
"Return a list of all current bookmark names."
(bookmark-maybe-load-default-file)
- (mapcar 'bookmark-name-from-full-record bookmark-alist))
+ (mapcar #'bookmark-name-from-full-record bookmark-alist))
(defun bookmark-get-bookmark (bookmark-name-or-record &optional noerror)
(bookmark-maybe-load-default-file) ; paranoia
(if (listp last-nonmenu-event)
(bookmark-menu-popup-paned-menu t prompt
- (mapcar 'bookmark-name-from-full-record
+ (mapcar #'bookmark-name-from-full-record
(bookmark-maybe-sort-alist)))
(let ((default (unless (equal "" default) default)))
(minibuffer-with-setup-hook
(concat "type=" (prin1-to-string
(substring-no-properties type))))))
-(defvar bookmark-make-record-function 'bookmark-make-record-default
+(defvar bookmark-make-record-function #'bookmark-make-record-default
"A function that should be called to create a bookmark record.
Modes may set this variable buffer-locally to enable bookmarking of
locations that should be treated specially, such as Info nodes,
\f
;;; Core code:
-(define-obsolete-function-alias 'bookmark-maybe-message 'message "27.1")
+(define-obsolete-function-alias 'bookmark-maybe-message #'message "27.1")
(defvar-keymap bookmark-minibuffer-read-name-map
:doc "This variable is obsolete and no longer used.")
(list (bookmark-completing-read "Jump to bookmark"
bookmark-current-bookmark)))
(unless bookmark (error "No bookmark specified"))
- (bookmark--jump-via bookmark (or display-func 'switch-to-buffer)))
+ (bookmark--jump-via bookmark (or display-func #'switch-to-buffer)))
(put 'bookmark-jump 'minibuffer-action 'bookmark-display)
(interactive
(list (bookmark-completing-read "Jump to bookmark (in another window)"
bookmark-current-bookmark)))
- (bookmark-jump bookmark 'switch-to-buffer-other-window))
+ (bookmark-jump bookmark #'switch-to-buffer-other-window))
;;;###autoload
(defun bookmark-jump-other-frame (bookmark)
then offer interactively to relocate BOOKMARK-NAME-OR-RECORD."
(condition-case err
(funcall (or (bookmark-get-handler bookmark-name-or-record)
- 'bookmark-default-handler)
+ #'bookmark-default-handler)
(bookmark-get-bookmark bookmark-name-or-record))
(bookmark-error-no-filename ;file-error
;; We were unable to find the marked file, so ask if user wants to
(bookmark-relocate bookmark-name-or-record)
;; Try again.
(funcall (or (bookmark-get-handler bookmark-name-or-record)
- 'bookmark-default-handler)
+ #'bookmark-default-handler)
(bookmark-get-bookmark bookmark-name-or-record)))
(message
"Bookmark not relocated; consider removing it (%s)."
(insert (bookmark-location bookmark-name)))
;;;###autoload
-(defalias 'bookmark-locate 'bookmark-insert-location)
+(defalias 'bookmark-locate #'bookmark-insert-location)
(defun bookmark-location (bookmark-name-or-record)
"Return a description of the location of BOOKMARK-NAME-OR-RECORD."
["Save Bookmarks" bookmark-bmenu-save t]
["Load Bookmarks" bookmark-bmenu-load t]))
-;; Bookmark Buffer Menu mode is suitable only for specially formatted
-;; data.
-(put 'bookmark-bmenu-mode 'mode-class 'special)
-
-
;; todo: need to display whether or not bookmark exists as a buffer in
;; flag column.
(bookmark-bmenu--revert))
;;;###autoload
-(defalias 'list-bookmarks 'bookmark-bmenu-list)
+(defalias 'list-bookmarks #'bookmark-bmenu-list)
;;;###autoload
-(defalias 'edit-bookmarks 'bookmark-bmenu-list)
+(defalias 'edit-bookmarks #'bookmark-bmenu-list)
(define-obsolete-function-alias 'bookmark-bmenu-set-header
#'tabulated-list-init-header "28.1")
(pop-up-windows t))
(delete-other-windows)
(switch-to-buffer (other-buffer) nil t)
- (bookmark--jump-via bmrk 'pop-to-buffer)
+ (bookmark--jump-via bmrk #'pop-to-buffer)
(bury-buffer menu)))
"Select this line's bookmark in other window, leaving bookmark menu visible."
(interactive nil bookmark-bmenu-mode)
(let ((bookmark (bookmark-bmenu-bookmark)))
- (bookmark--jump-via bookmark 'switch-to-buffer-other-window)))
+ (bookmark--jump-via bookmark #'switch-to-buffer-other-window)))
(defun bookmark-bmenu-other-frame ()
"Select this line's bookmark in other frame."
(bookmark-save)))
(unless noninteractive
- (add-hook 'kill-emacs-hook 'bookmark-exit-hook-internal))
+ (add-hook 'kill-emacs-hook #'bookmark-exit-hook-internal))
(defun bookmark-unload-function ()
"Unload the Bookmark library."