Instead, use 'eshell-process-wait-time', which supports floating-point
values.
+---
+** Bookmark commands no longer extend minibuffer history when called non-interactively
+Commands that read a bookmark name when called interactively, such as
+'bookmark-jump', used to add their bookmark name argument to the
+'bookmark-history' minibuffer history variable even when called
+non-interactively. This special behavior is removed in this version
+of Emacs, for consistency with the common Emacs behavior where
+minibuffer history is reserved for past minibuffer inputs.
+
\f
* Lisp Changes in Emacs 30.1
(concat "bookmark type " (prin1-to-string
(substring-no-properties type))))))
-(defmacro bookmark-maybe-historicize-string (string)
- "Put STRING into the bookmark prompt history, if caller non-interactive.
-We need this because sometimes bookmark functions are invoked
-from other commands that pass in the bookmark name, so
-`completing-read' never gets a chance to set `bookmark-history'."
- `(or
- (called-interactively-p 'interactive)
- (setq bookmark-history (cons ,string bookmark-history))))
-
(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
bookmark-current-bookmark)))
(unless bookmark
(error "No bookmark specified"))
- (bookmark-maybe-historicize-string bookmark)
;; Don't use `switch-to-buffer' because it would let the
;; window-point override the bookmark's point when
;; `switch-to-buffer-preserve-window-point' is non-nil.
the one it used to point at. Useful when a file has been renamed
after a bookmark was set in it."
(interactive (list (bookmark-completing-read "Bookmark to relocate")))
- (bookmark-maybe-historicize-string bookmark-name)
(bookmark-maybe-load-default-file)
(let ((bmrk-filename (bookmark-get-filename bookmark-name)))
;; FIXME: Make `bookmark-relocate' support bookmark Types
(bookmark-bmenu-surreptitiously-rebuild-list))))
;;;###autoload
-(defun bookmark-insert-location (bookmark-name &optional no-history)
+(defun bookmark-insert-location (bookmark-name &optional _)
"Insert the name of the file associated with BOOKMARK-NAME.
-Optional second arg NO-HISTORY means don't record this in the
-minibuffer history list `bookmark-history'."
+Optional second argument is obsolete and ignored."
(interactive (list (bookmark-completing-read "Insert bookmark location")))
- (or no-history (bookmark-maybe-historicize-string bookmark-name))
(insert (bookmark-location bookmark-name)))
;;;###autoload
consecutive words from the text of the buffer into the new bookmark
name."
(interactive (list (bookmark-completing-read "Old bookmark name")))
- (bookmark-maybe-historicize-string old-name)
(bookmark-maybe-load-default-file)
(setq bookmark-yank-point (point))
bookmarks. See help on function `bookmark-load' for more about
this."
(interactive (list (bookmark-completing-read "Insert bookmark contents")))
- (bookmark-maybe-historicize-string bookmark-name)
(bookmark-maybe-load-default-file)
(let ((orig-point (point))
(str-to-insert
(interactive
(list (bookmark-completing-read "Delete bookmark"
bookmark-current-bookmark)))
- (bookmark-maybe-historicize-string bookmark-name)
(bookmark-maybe-load-default-file)
(let ((will-go (bookmark-get-bookmark bookmark-name 'noerror)))
(bookmark--remove-fringe-mark will-go)