mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Use format-prompt in read-string calls (that have default values)
* lisp/vc/vc-annotate.el (vc-annotate): * lisp/vc/log-edit.el (log-edit-comment-search-backward) (log-edit-comment-search-forward): * lisp/textmodes/rst.el (rst-insert-list-new-item): * lisp/server.el (server-force-delete): * lisp/mpc.el (mpc): * lisp/frame.el (set-frame-name): * lisp/emulation/cua-rect.el (cua-sequence-rectangle): * lisp/cedet/semantic/symref/list.el (semantic-symref-regexp): * lisp/calendar/todo-mode.el (todo-read-time): Use `format-prompt' in `read-string' calls that have defaults.
This commit is contained in:
parent
52a92c6e7b
commit
95268cdb7e
9 changed files with 37 additions and 24 deletions
|
|
@ -244,7 +244,9 @@ If the optional argument STRIDE is present, that is a step-width to use
|
|||
when going through the comment ring."
|
||||
;; Why substring rather than regexp ? -sm
|
||||
(interactive
|
||||
(list (read-string "Comment substring: " nil nil log-edit-last-comment-match)))
|
||||
(list (read-string (format-prompt "Comment substring"
|
||||
log-edit-last-comment-match)
|
||||
nil nil log-edit-last-comment-match)))
|
||||
(unless stride (setq stride 1))
|
||||
(if (string= str "")
|
||||
(setq str log-edit-last-comment-match)
|
||||
|
|
@ -261,7 +263,9 @@ when going through the comment ring."
|
|||
(defun log-edit-comment-search-forward (str)
|
||||
"Search forwards through comment history for a substring match of STR."
|
||||
(interactive
|
||||
(list (read-string "Comment substring: " nil nil log-edit-last-comment-match)))
|
||||
(list (read-string (format-prompt "Comment substring"
|
||||
log-edit-last-comment-match)
|
||||
nil nil log-edit-last-comment-match)))
|
||||
(log-edit-comment-search-backward str -1))
|
||||
|
||||
(defun log-edit-comment-to-change-log (&optional whoami file-name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue