diff options
| author | Romain Francoise | 2005-09-24 13:44:02 +0000 |
|---|---|---|
| committer | Romain Francoise | 2005-09-24 13:44:02 +0000 |
| commit | 5b76833fd5dc63730baaa8a504aa3df4a4c8fc7a (patch) | |
| tree | 632929d5c45f4f29fab06280b4450c50737bfe8e | |
| parent | 9abab831dc5af803a93071fd95a248d3394feee4 (diff) | |
| download | emacs-5b76833fd5dc63730baaa8a504aa3df4a4c8fc7a.tar.gz emacs-5b76833fd5dc63730baaa8a504aa3df4a4c8fc7a.zip | |
2005-09-24 Emilio C. Lopes <eclig@gmx.net>
* woman.el (woman-file-name):
* wid-edit.el (widget-file-prompt-value)
(widget-coding-system-prompt-value):
* w32-fns.el (set-w32-system-coding-system):
* vc.el (vc-version-diff, vc-annotate):
* textmodes/reftex-auc.el (reftex-arg-cite)
(reftex-arg-index-tag):
* textmodes/refer.el (refer-get-bib-files):
* textmodes/artist.el (artist-figlet-choose-font):
* terminal.el (terminal-emulator):
* replace.el (occur-read-primary-args):
* rect.el (string-rectangle, string-insert-rectangle):
* ps-print.el (ps-print-preprint):
* progmodes/pascal.el (pascal-goto-defun):
* progmodes/etags.el (visit-tags-table, visit-tags-table-buffer):
* progmodes/compile.el (compilation-find-file):
* printing.el (pr-interactive-n-up):
* play/animate.el (animate-birthday-present):
* net/rcompile.el (remote-compile):
* man.el (man, Man-goto-section, Man-follow-manual-reference):
* mail/rmailsum.el (rmail-summary-search-backward)
(rmail-summary-search):
* mail/rmailout.el (rmail-output-read-rmail-file-name)
(rmail-output-read-file-name):
* mail/rmail.el (rmail-search, rmail-search-backwards):
* mail/mailabbrev.el (merge-mail-abbrevs, rebuild-mail-abbrevs):
* locate.el (locate):
* international/quail.el (quail-show-keyboard-layout):
* international/mule.el (set-buffer-file-coding-system)
(revert-buffer-with-coding-system, set-file-name-coding-system)
(set-terminal-coding-system, set-keyboard-coding-system)
(set-next-selection-coding-system):
* international/mule-diag.el (describe-coding-system)
(describe-font, describe-fontset):
* international/mule-cmds.el (universal-coding-system-argument)
(search-unencodable-char, describe-input-method)
(set-language-environment, describe-language-environment):
* international/codepage.el (codepage-setup):
* international/code-pages.el (codepage-setup):
* info.el (Info-search, Info-follow-reference)
(Info-search-backward):
* emacs-lisp/advice.el (ad-read-advised-function)
(ad-read-advice-class, ad-clear-cache, ad-activate)
(ad-deactivate, ad-update, ad-unadvise, ad-read-advice-name)
(ad-enable-advice, ad-disable-advice, ad-remove-advice)
(ad-read-regexp):
* ediff-util.el (ediff-toggle-regexp-match):
* ediff-ptch.el (ediff-prompt-for-patch-file):
* dired-aux.el (dired-diff):
* diff.el (diff):
* cus-edit.el (custom-variable-prompt):
* calendar/timeclock.el (timeclock-ask-for-project):
* calc/calcalg3.el (calc-get-fit-variables):
* calc/calc-store.el (calc-edit-variable)
(calc-permanent-variable):
* vc-mcvs.el (vc-mcvs-register):
* shadowfile.el (shadow-define-literal-group):
* woman.el (woman-file-name):
* vc.el (vc-version-diff, vc-merge):
* textmodes/reftex-index.el (reftex-index-complete-tag):
* format.el (format-decode-buffer, format-decode-region):
* emulation/viper-cmd.el (viper-read-string-with-history):
* emacs-lisp/debug.el (cancel-debug-on-entry):
* emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* ediff.el (ediff-merge-revisions)
(ediff-merge-revisions-with-ancestor, ediff-revision):
* completion.el (interactive-completion-string-reader):
* calc/calc-prog.el (calc-user-define-formula):
Follow convention for reading with the minibuffer.
51 files changed, 244 insertions, 161 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8c84d8c461c..3000e2bd79f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,75 @@ | |||
| 1 | 2005-09-24 Emilio C. Lopes <eclig@gmx.net> | ||
| 2 | |||
| 3 | * woman.el (woman-file-name): | ||
| 4 | * wid-edit.el (widget-file-prompt-value) | ||
| 5 | (widget-coding-system-prompt-value): | ||
| 6 | * w32-fns.el (set-w32-system-coding-system): | ||
| 7 | * vc.el (vc-version-diff, vc-annotate): | ||
| 8 | * textmodes/reftex-auc.el (reftex-arg-cite) | ||
| 9 | (reftex-arg-index-tag): | ||
| 10 | * textmodes/refer.el (refer-get-bib-files): | ||
| 11 | * textmodes/artist.el (artist-figlet-choose-font): | ||
| 12 | * terminal.el (terminal-emulator): | ||
| 13 | * replace.el (occur-read-primary-args): | ||
| 14 | * rect.el (string-rectangle, string-insert-rectangle): | ||
| 15 | * ps-print.el (ps-print-preprint): | ||
| 16 | * progmodes/pascal.el (pascal-goto-defun): | ||
| 17 | * progmodes/etags.el (visit-tags-table, visit-tags-table-buffer): | ||
| 18 | * progmodes/compile.el (compilation-find-file): | ||
| 19 | * printing.el (pr-interactive-n-up): | ||
| 20 | * play/animate.el (animate-birthday-present): | ||
| 21 | * net/rcompile.el (remote-compile): | ||
| 22 | * man.el (man, Man-goto-section, Man-follow-manual-reference): | ||
| 23 | * mail/rmailsum.el (rmail-summary-search-backward) | ||
| 24 | (rmail-summary-search): | ||
| 25 | * mail/rmailout.el (rmail-output-read-rmail-file-name) | ||
| 26 | (rmail-output-read-file-name): | ||
| 27 | * mail/rmail.el (rmail-search, rmail-search-backwards): | ||
| 28 | * mail/mailabbrev.el (merge-mail-abbrevs, rebuild-mail-abbrevs): | ||
| 29 | * locate.el (locate): | ||
| 30 | * international/quail.el (quail-show-keyboard-layout): | ||
| 31 | * international/mule.el (set-buffer-file-coding-system) | ||
| 32 | (revert-buffer-with-coding-system, set-file-name-coding-system) | ||
| 33 | (set-terminal-coding-system, set-keyboard-coding-system) | ||
| 34 | (set-next-selection-coding-system): | ||
| 35 | * international/mule-diag.el (describe-coding-system) | ||
| 36 | (describe-font, describe-fontset): | ||
| 37 | * international/mule-cmds.el (universal-coding-system-argument) | ||
| 38 | (search-unencodable-char, describe-input-method) | ||
| 39 | (set-language-environment, describe-language-environment): | ||
| 40 | * international/codepage.el (codepage-setup): | ||
| 41 | * international/code-pages.el (codepage-setup): | ||
| 42 | * info.el (Info-search, Info-follow-reference) | ||
| 43 | (Info-search-backward): | ||
| 44 | * emacs-lisp/advice.el (ad-read-advised-function) | ||
| 45 | (ad-read-advice-class, ad-clear-cache, ad-activate) | ||
| 46 | (ad-deactivate, ad-update, ad-unadvise, ad-read-advice-name) | ||
| 47 | (ad-enable-advice, ad-disable-advice, ad-remove-advice) | ||
| 48 | (ad-read-regexp): | ||
| 49 | * ediff-util.el (ediff-toggle-regexp-match): | ||
| 50 | * ediff-ptch.el (ediff-prompt-for-patch-file): | ||
| 51 | * dired-aux.el (dired-diff): | ||
| 52 | * diff.el (diff): | ||
| 53 | * cus-edit.el (custom-variable-prompt): | ||
| 54 | * calendar/timeclock.el (timeclock-ask-for-project): | ||
| 55 | * calc/calcalg3.el (calc-get-fit-variables): | ||
| 56 | * calc/calc-store.el (calc-edit-variable) | ||
| 57 | (calc-permanent-variable): | ||
| 58 | * vc-mcvs.el (vc-mcvs-register): | ||
| 59 | * shadowfile.el (shadow-define-literal-group): | ||
| 60 | * woman.el (woman-file-name): | ||
| 61 | * vc.el (vc-version-diff, vc-merge): | ||
| 62 | * textmodes/reftex-index.el (reftex-index-complete-tag): | ||
| 63 | * format.el (format-decode-buffer, format-decode-region): | ||
| 64 | * emulation/viper-cmd.el (viper-read-string-with-history): | ||
| 65 | * emacs-lisp/debug.el (cancel-debug-on-entry): | ||
| 66 | * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): | ||
| 67 | * ediff.el (ediff-merge-revisions) | ||
| 68 | (ediff-merge-revisions-with-ancestor, ediff-revision): | ||
| 69 | * completion.el (interactive-completion-string-reader): | ||
| 70 | * calc/calc-prog.el (calc-user-define-formula): | ||
| 71 | Follow convention for reading with the minibuffer. | ||
| 72 | |||
| 1 | 2005-09-24 Steven Huwig <steven_h@acm.org> (tiny change) | 73 | 2005-09-24 Steven Huwig <steven_h@acm.org> (tiny change) |
| 2 | 74 | ||
| 3 | * progmodes/python.el (python-describe-symbol): Add globals() and | 75 | * progmodes/python.el (python-describe-symbol): Add globals() and |
diff --git a/lisp/calc/calc-prog.el b/lisp/calc/calc-prog.el index b44d8d256a5..2bbbbcceee5 100644 --- a/lisp/calc/calc-prog.el +++ b/lisp/calc/calc-prog.el | |||
| @@ -197,7 +197,7 @@ | |||
| 197 | (progn | 197 | (progn |
| 198 | (setq cmd-base-default (concat "User-" keyname)) | 198 | (setq cmd-base-default (concat "User-" keyname)) |
| 199 | (setq cmd (completing-read | 199 | (setq cmd (completing-read |
| 200 | (concat "Define M-x command name (default: calc-" | 200 | (concat "Define M-x command name (default calc-" |
| 201 | cmd-base-default | 201 | cmd-base-default |
| 202 | "): ") | 202 | "): ") |
| 203 | obarray 'commandp nil | 203 | obarray 'commandp nil |
| @@ -233,7 +233,7 @@ | |||
| 233 | (setq func | 233 | (setq func |
| 234 | (concat "calcFunc-" | 234 | (concat "calcFunc-" |
| 235 | (completing-read | 235 | (completing-read |
| 236 | (concat "Define algebraic function name (default: " | 236 | (concat "Define algebraic function name (default " |
| 237 | cmd-base-default "): ") | 237 | cmd-base-default "): ") |
| 238 | (mapcar (lambda (x) (substring x 9)) | 238 | (mapcar (lambda (x) (substring x 9)) |
| 239 | (all-completions "calcFunc-" | 239 | (all-completions "calcFunc-" |
diff --git a/lisp/calc/calc-store.el b/lisp/calc/calc-store.el index 1410b7d6651..82c7077ba91 100644 --- a/lisp/calc/calc-store.el +++ b/lisp/calc/calc-store.el | |||
| @@ -430,7 +430,7 @@ | |||
| 430 | (calc-wrapper | 430 | (calc-wrapper |
| 431 | (or var (setq var (calc-read-var-name | 431 | (or var (setq var (calc-read-var-name |
| 432 | (if calc-last-edited-variable | 432 | (if calc-last-edited-variable |
| 433 | (format "Edit: (default %s) " | 433 | (format "Edit (default %s): " |
| 434 | (calc-var-name calc-last-edited-variable)) | 434 | (calc-var-name calc-last-edited-variable)) |
| 435 | "Edit: ")))) | 435 | "Edit: ")))) |
| 436 | (or var (setq var calc-last-edited-variable)) | 436 | (or var (setq var calc-last-edited-variable)) |
| @@ -587,7 +587,7 @@ | |||
| 587 | (defun calc-permanent-variable (&optional var) | 587 | (defun calc-permanent-variable (&optional var) |
| 588 | (interactive) | 588 | (interactive) |
| 589 | (calc-wrapper | 589 | (calc-wrapper |
| 590 | (or var (setq var (calc-read-var-name "Save variable (default=all): "))) | 590 | (or var (setq var (calc-read-var-name "Save variable (default all): "))) |
| 591 | (let (calc-pv-pos) | 591 | (let (calc-pv-pos) |
| 592 | (and var (or (and (boundp var) (symbol-value var)) | 592 | (and var (or (and (boundp var) (symbol-value var)) |
| 593 | (error "No such variable"))) | 593 | (error "No such variable"))) |
diff --git a/lisp/calc/calcalg3.el b/lisp/calc/calcalg3.el index 0aef3ba55af..d5ef567866f 100644 --- a/lisp/calc/calcalg3.el +++ b/lisp/calc/calcalg3.el | |||
| @@ -370,7 +370,7 @@ | |||
| 370 | (setq defv (calc-invent-independent-variables nv))) | 370 | (setq defv (calc-invent-independent-variables nv))) |
| 371 | (or defc | 371 | (or defc |
| 372 | (setq defc (calc-invent-parameter-variables nc defv))) | 372 | (setq defc (calc-invent-parameter-variables nc defv))) |
| 373 | (let ((vars (read-string (format "Fitting variables: (default %s; %s) " | 373 | (let ((vars (read-string (format "Fitting variables (default %s; %s): " |
| 374 | (mapconcat 'symbol-name | 374 | (mapconcat 'symbol-name |
| 375 | (mapcar (function (lambda (v) | 375 | (mapcar (function (lambda (v) |
| 376 | (nth 1 v))) | 376 | (nth 1 v))) |
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el index afa7b0e87d9..f2ee3f3a048 100644 --- a/lisp/calendar/timeclock.el +++ b/lisp/calendar/timeclock.el | |||
| @@ -599,7 +599,7 @@ relative only to the time worked today, and not to past time." | |||
| 599 | (defun timeclock-ask-for-project () | 599 | (defun timeclock-ask-for-project () |
| 600 | "Ask the user for the project they are clocking into." | 600 | "Ask the user for the project they are clocking into." |
| 601 | (timeclock-completing-read | 601 | (timeclock-completing-read |
| 602 | (format "Clock into which project (default \"%s\"): " | 602 | (format "Clock into which project (default %s): " |
| 603 | (or timeclock-last-project | 603 | (or timeclock-last-project |
| 604 | (car timeclock-project-list))) | 604 | (car timeclock-project-list))) |
| 605 | (mapcar 'list timeclock-project-list) | 605 | (mapcar 'list timeclock-project-list) |
diff --git a/lisp/completion.el b/lisp/completion.el index 4b0f6cac9a6..12df9a52714 100644 --- a/lisp/completion.el +++ b/lisp/completion.el | |||
| @@ -1343,7 +1343,7 @@ String must be longer than `completion-prefix-min-length'." | |||
| 1343 | (let* ((default (symbol-under-or-before-point)) | 1343 | (let* ((default (symbol-under-or-before-point)) |
| 1344 | (new-prompt | 1344 | (new-prompt |
| 1345 | (if default | 1345 | (if default |
| 1346 | (format "%s: (default: %s) " prompt default) | 1346 | (format "%s (default %s): " prompt default) |
| 1347 | (format "%s: " prompt))) | 1347 | (format "%s: " prompt))) |
| 1348 | (read (completing-read new-prompt cmpl-obarray))) | 1348 | (read (completing-read new-prompt cmpl-obarray))) |
| 1349 | (if (zerop (length read)) (setq read (or default ""))) | 1349 | (if (zerop (length read)) (setq read (or default ""))) |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 9827ab7d594..eb6656a426d 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -495,7 +495,7 @@ Return a list suitable for use in `interactive'." | |||
| 495 | val) | 495 | val) |
| 496 | (setq val (completing-read | 496 | (setq val (completing-read |
| 497 | (if (and (symbolp v) (custom-variable-p v)) | 497 | (if (and (symbolp v) (custom-variable-p v)) |
| 498 | (format "Customize option: (default %s) " v) | 498 | (format "Customize option (default %s): " v) |
| 499 | "Customize option: ") | 499 | "Customize option: ") |
| 500 | obarray 'custom-variable-p t)) | 500 | obarray 'custom-variable-p t)) |
| 501 | (list (if (equal val "") | 501 | (list (if (equal val "") |
| @@ -967,7 +967,7 @@ then prompt for the MODE to customize." | |||
| 967 | (defun customize-group (group) | 967 | (defun customize-group (group) |
| 968 | "Customize GROUP, which must be a customization group." | 968 | "Customize GROUP, which must be a customization group." |
| 969 | (interactive (list (let ((completion-ignore-case t)) | 969 | (interactive (list (let ((completion-ignore-case t)) |
| 970 | (completing-read "Customize group: (default emacs) " | 970 | (completing-read "Customize group (default emacs): " |
| 971 | obarray | 971 | obarray |
| 972 | (lambda (symbol) | 972 | (lambda (symbol) |
| 973 | (or (get symbol 'custom-loads) | 973 | (or (get symbol 'custom-loads) |
| @@ -990,7 +990,7 @@ then prompt for the MODE to customize." | |||
| 990 | (defun customize-group-other-window (group) | 990 | (defun customize-group-other-window (group) |
| 991 | "Customize GROUP, which must be a customization group." | 991 | "Customize GROUP, which must be a customization group." |
| 992 | (interactive (list (let ((completion-ignore-case t)) | 992 | (interactive (list (let ((completion-ignore-case t)) |
| 993 | (completing-read "Customize group: (default emacs) " | 993 | (completing-read "Customize group (default emacs): " |
| 994 | obarray | 994 | obarray |
| 995 | (lambda (symbol) | 995 | (lambda (symbol) |
| 996 | (or (get symbol 'custom-loads) | 996 | (or (get symbol 'custom-loads) |
diff --git a/lisp/diff.el b/lisp/diff.el index 7602ecb0e37..8c4332b2da2 100644 --- a/lisp/diff.el +++ b/lisp/diff.el | |||
| @@ -83,15 +83,15 @@ With prefix arg, prompt for diff switches." | |||
| 83 | (setq newf (buffer-file-name) | 83 | (setq newf (buffer-file-name) |
| 84 | newf (if (and newf (file-exists-p newf)) | 84 | newf (if (and newf (file-exists-p newf)) |
| 85 | (read-file-name | 85 | (read-file-name |
| 86 | (concat "Diff new file: (default " | 86 | (concat "Diff new file (default " |
| 87 | (file-name-nondirectory newf) ") ") | 87 | (file-name-nondirectory newf) "): ") |
| 88 | nil newf t) | 88 | nil newf t) |
| 89 | (read-file-name "Diff new file: " nil nil t))) | 89 | (read-file-name "Diff new file: " nil nil t))) |
| 90 | (setq oldf (file-newest-backup newf) | 90 | (setq oldf (file-newest-backup newf) |
| 91 | oldf (if (and oldf (file-exists-p oldf)) | 91 | oldf (if (and oldf (file-exists-p oldf)) |
| 92 | (read-file-name | 92 | (read-file-name |
| 93 | (concat "Diff original file: (default " | 93 | (concat "Diff original file (default " |
| 94 | (file-name-nondirectory oldf) ") ") | 94 | (file-name-nondirectory oldf) "): ") |
| 95 | (file-name-directory oldf) oldf t) | 95 | (file-name-directory oldf) oldf t) |
| 96 | (read-file-name "Diff original file: " | 96 | (read-file-name "Diff original file: " |
| 97 | (file-name-directory newf) nil t))) | 97 | (file-name-directory newf) nil t))) |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 6426c6daf58..561c7cc7f6f 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -59,10 +59,10 @@ With prefix arg, prompt for second argument SWITCHES, | |||
| 59 | (save-excursion (goto-char (mark t)) | 59 | (save-excursion (goto-char (mark t)) |
| 60 | (dired-get-filename t t))))) | 60 | (dired-get-filename t t))))) |
| 61 | (require 'diff) | 61 | (require 'diff) |
| 62 | (list (read-file-name (format "Diff %s with: %s" | 62 | (list (read-file-name (format "Diff %s with%s: " |
| 63 | (dired-get-filename t) | 63 | (dired-get-filename t) |
| 64 | (if default | 64 | (if default |
| 65 | (concat "(default " default ") ") | 65 | (concat " (default " default ")") |
| 66 | "")) | 66 | "")) |
| 67 | (if default | 67 | (if default |
| 68 | (dired-current-directory) | 68 | (dired-current-directory) |
diff --git a/lisp/ediff-ptch.el b/lisp/ediff-ptch.el index 2e374f11040..ec0e26e7d5c 100644 --- a/lisp/ediff-ptch.el +++ b/lisp/ediff-ptch.el | |||
| @@ -485,7 +485,7 @@ are two possible targets for this patch. However, these files do not exist." | |||
| 485 | patch-file-name) | 485 | patch-file-name) |
| 486 | (setq patch-file-name | 486 | (setq patch-file-name |
| 487 | (read-file-name | 487 | (read-file-name |
| 488 | (format "Patch is in file:%s " | 488 | (format "Patch is in file%s: " |
| 489 | (cond ((and buffer-file-name | 489 | (cond ((and buffer-file-name |
| 490 | (equal (expand-file-name dir) | 490 | (equal (expand-file-name dir) |
| 491 | (file-name-directory buffer-file-name))) | 491 | (file-name-directory buffer-file-name))) |
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el index 445669c599f..20a9869ac47 100644 --- a/lisp/ediff-util.el +++ b/lisp/ediff-util.el | |||
| @@ -2219,18 +2219,18 @@ a regular expression typed in by the user." | |||
| 2219 | regexp-A | 2219 | regexp-A |
| 2220 | (read-string | 2220 | (read-string |
| 2221 | (format | 2221 | (format |
| 2222 | "Ignore A-regions matching this regexp (default \"%s\"): " | 2222 | "Ignore A-regions matching this regexp (default %s): " |
| 2223 | ediff-regexp-hide-A)) | 2223 | ediff-regexp-hide-A)) |
| 2224 | regexp-B | 2224 | regexp-B |
| 2225 | (read-string | 2225 | (read-string |
| 2226 | (format | 2226 | (format |
| 2227 | "Ignore B-regions matching this regexp (default \"%s\"): " | 2227 | "Ignore B-regions matching this regexp (default %s): " |
| 2228 | ediff-regexp-hide-B))) | 2228 | ediff-regexp-hide-B))) |
| 2229 | (if ediff-3way-comparison-job | 2229 | (if ediff-3way-comparison-job |
| 2230 | (setq regexp-C | 2230 | (setq regexp-C |
| 2231 | (read-string | 2231 | (read-string |
| 2232 | (format | 2232 | (format |
| 2233 | "Ignore C-regions matching this regexp (default \"%s\"): " | 2233 | "Ignore C-regions matching this regexp (default %s): " |
| 2234 | ediff-regexp-hide-C)))) | 2234 | ediff-regexp-hide-C)))) |
| 2235 | (if (eq ediff-hide-regexp-connective 'and) | 2235 | (if (eq ediff-hide-regexp-connective 'and) |
| 2236 | (setq msg-connective "BOTH" | 2236 | (setq msg-connective "BOTH" |
| @@ -2258,18 +2258,18 @@ a regular expression typed in by the user." | |||
| 2258 | regexp-A | 2258 | regexp-A |
| 2259 | (read-string | 2259 | (read-string |
| 2260 | (format | 2260 | (format |
| 2261 | "Focus on A-regions matching this regexp (default \"%s\"): " | 2261 | "Focus on A-regions matching this regexp (default %s): " |
| 2262 | ediff-regexp-focus-A)) | 2262 | ediff-regexp-focus-A)) |
| 2263 | regexp-B | 2263 | regexp-B |
| 2264 | (read-string | 2264 | (read-string |
| 2265 | (format | 2265 | (format |
| 2266 | "Focus on B-regions matching this regexp (default \"%s\"): " | 2266 | "Focus on B-regions matching this regexp (default %s): " |
| 2267 | ediff-regexp-focus-B))) | 2267 | ediff-regexp-focus-B))) |
| 2268 | (if ediff-3way-comparison-job | 2268 | (if ediff-3way-comparison-job |
| 2269 | (setq regexp-C | 2269 | (setq regexp-C |
| 2270 | (read-string | 2270 | (read-string |
| 2271 | (format | 2271 | (format |
| 2272 | "Focus on C-regions matching this regexp (default \"%s\"): " | 2272 | "Focus on C-regions matching this regexp (default %s): " |
| 2273 | ediff-regexp-focus-C)))) | 2273 | ediff-regexp-focus-C)))) |
| 2274 | (if (eq ediff-focus-regexp-connective 'and) | 2274 | (if (eq ediff-focus-regexp-connective 'and) |
| 2275 | (setq msg-connective "BOTH" | 2275 | (setq msg-connective "BOTH" |
diff --git a/lisp/ediff.el b/lisp/ediff.el index a4b5bd77368..8d4bb4d86fe 100644 --- a/lisp/ediff.el +++ b/lisp/ediff.el | |||
| @@ -1261,13 +1261,13 @@ buffer." | |||
| 1261 | (setq rev1 | 1261 | (setq rev1 |
| 1262 | (read-string | 1262 | (read-string |
| 1263 | (format | 1263 | (format |
| 1264 | "Version 1 to merge (default: %s's working version): " | 1264 | "Version 1 to merge (default %s's working version): " |
| 1265 | (if (stringp file) | 1265 | (if (stringp file) |
| 1266 | (file-name-nondirectory file) "current buffer"))) | 1266 | (file-name-nondirectory file) "current buffer"))) |
| 1267 | rev2 | 1267 | rev2 |
| 1268 | (read-string | 1268 | (read-string |
| 1269 | (format | 1269 | (format |
| 1270 | "Version 2 to merge (default: %s): " | 1270 | "Version 2 to merge (default %s): " |
| 1271 | (if (stringp file) | 1271 | (if (stringp file) |
| 1272 | (file-name-nondirectory file) "current buffer")))) | 1272 | (file-name-nondirectory file) "current buffer")))) |
| 1273 | (ediff-load-version-control) | 1273 | (ediff-load-version-control) |
| @@ -1293,19 +1293,19 @@ buffer." | |||
| 1293 | (setq rev1 | 1293 | (setq rev1 |
| 1294 | (read-string | 1294 | (read-string |
| 1295 | (format | 1295 | (format |
| 1296 | "Version 1 to merge (default: %s's working version): " | 1296 | "Version 1 to merge (default %s's working version): " |
| 1297 | (if (stringp file) | 1297 | (if (stringp file) |
| 1298 | (file-name-nondirectory file) "current buffer"))) | 1298 | (file-name-nondirectory file) "current buffer"))) |
| 1299 | rev2 | 1299 | rev2 |
| 1300 | (read-string | 1300 | (read-string |
| 1301 | (format | 1301 | (format |
| 1302 | "Version 2 to merge (default: %s): " | 1302 | "Version 2 to merge (default %s): " |
| 1303 | (if (stringp file) | 1303 | (if (stringp file) |
| 1304 | (file-name-nondirectory file) "current buffer"))) | 1304 | (file-name-nondirectory file) "current buffer"))) |
| 1305 | ancestor-rev | 1305 | ancestor-rev |
| 1306 | (read-string | 1306 | (read-string |
| 1307 | (format | 1307 | (format |
| 1308 | "Ancestor version (default: %s's base revision): " | 1308 | "Ancestor version (default %s's base revision): " |
| 1309 | (if (stringp file) | 1309 | (if (stringp file) |
| 1310 | (file-name-nondirectory file) "current buffer")))) | 1310 | (file-name-nondirectory file) "current buffer")))) |
| 1311 | (ediff-load-version-control) | 1311 | (ediff-load-version-control) |
| @@ -1411,11 +1411,11 @@ Uses `vc.el' or `rcs.el' depending on `ediff-version-control-package'." | |||
| 1411 | (let (rev1 rev2) | 1411 | (let (rev1 rev2) |
| 1412 | (setq rev1 | 1412 | (setq rev1 |
| 1413 | (read-string | 1413 | (read-string |
| 1414 | (format "Revision 1 to compare (default: %s's latest revision): " | 1414 | (format "Revision 1 to compare (default %s's latest revision): " |
| 1415 | (file-name-nondirectory file))) | 1415 | (file-name-nondirectory file))) |
| 1416 | rev2 | 1416 | rev2 |
| 1417 | (read-string | 1417 | (read-string |
| 1418 | (format "Revision 2 to compare (default: %s's current state): " | 1418 | (format "Revision 2 to compare (default %s's current state): " |
| 1419 | (file-name-nondirectory file)))) | 1419 | (file-name-nondirectory file)))) |
| 1420 | (ediff-load-version-control) | 1420 | (ediff-load-version-control) |
| 1421 | (funcall | 1421 | (funcall |
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 480c838b878..ce727c30d14 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -2218,7 +2218,7 @@ which PREDICATE returns non-nil)." | |||
| 2218 | (let* ((ad-pReDiCaTe predicate) | 2218 | (let* ((ad-pReDiCaTe predicate) |
| 2219 | (function | 2219 | (function |
| 2220 | (completing-read | 2220 | (completing-read |
| 2221 | (format "%s(default %s) " (or prompt "Function: ") default) | 2221 | (format "%s (default %s): " (or prompt "Function") default) |
| 2222 | ad-advised-functions | 2222 | ad-advised-functions |
| 2223 | (if predicate | 2223 | (if predicate |
| 2224 | (function | 2224 | (function |
| @@ -2250,7 +2250,7 @@ class of FUNCTION)." | |||
| 2250 | (ad-do-return class))) | 2250 | (ad-do-return class))) |
| 2251 | (error "ad-read-advice-class: `%s' has no advices" function))) | 2251 | (error "ad-read-advice-class: `%s' has no advices" function))) |
| 2252 | (let ((class (completing-read | 2252 | (let ((class (completing-read |
| 2253 | (format "%s(default %s) " (or prompt "Class: ") default) | 2253 | (format "%s (default %s): " (or prompt "Class") default) |
| 2254 | ad-advice-class-completion-table nil t))) | 2254 | ad-advice-class-completion-table nil t))) |
| 2255 | (if (equal class "") | 2255 | (if (equal class "") |
| 2256 | default | 2256 | default |
| @@ -2268,7 +2268,7 @@ An optional PROMPT is used to prompt for the name." | |||
| 2268 | (error "ad-read-advice-name: `%s' has no %s advice" | 2268 | (error "ad-read-advice-name: `%s' has no %s advice" |
| 2269 | function class) | 2269 | function class) |
| 2270 | (car (car name-completion-table)))) | 2270 | (car (car name-completion-table)))) |
| 2271 | (prompt (format "%s(default %s) " (or prompt "Name: ") default)) | 2271 | (prompt (format "%s (default %s): " (or prompt "Name") default)) |
| 2272 | (name (completing-read prompt name-completion-table nil t))) | 2272 | (name (completing-read prompt name-completion-table nil t))) |
| 2273 | (if (equal name "") | 2273 | (if (equal name "") |
| 2274 | (intern default) | 2274 | (intern default) |
| @@ -2289,9 +2289,9 @@ be used to prompt for the function." | |||
| 2289 | (defun ad-read-regexp (&optional prompt) | 2289 | (defun ad-read-regexp (&optional prompt) |
| 2290 | "Read a regular expression from the minibuffer." | 2290 | "Read a regular expression from the minibuffer." |
| 2291 | (let ((regexp (read-from-minibuffer | 2291 | (let ((regexp (read-from-minibuffer |
| 2292 | (concat (or prompt "Regular expression: ") | 2292 | (concat (or prompt "Regular expression") |
| 2293 | (if (equal ad-last-regexp "") "" | 2293 | (if (equal ad-last-regexp "") ": " |
| 2294 | (format "(default \"%s\") " ad-last-regexp)))))) | 2294 | (format " (default %s): " ad-last-regexp)))))) |
| 2295 | (setq ad-last-regexp | 2295 | (setq ad-last-regexp |
| 2296 | (if (equal regexp "") ad-last-regexp regexp)))) | 2296 | (if (equal regexp "") ad-last-regexp regexp)))) |
| 2297 | 2297 | ||
| @@ -2352,7 +2352,7 @@ FUNCTION was not advised)." | |||
| 2352 | 2352 | ||
| 2353 | (defun ad-enable-advice (function class name) | 2353 | (defun ad-enable-advice (function class name) |
| 2354 | "Enables the advice of FUNCTION with CLASS and NAME." | 2354 | "Enables the advice of FUNCTION with CLASS and NAME." |
| 2355 | (interactive (ad-read-advice-specification "Enable advice of: ")) | 2355 | (interactive (ad-read-advice-specification "Enable advice of")) |
| 2356 | (if (ad-is-advised function) | 2356 | (if (ad-is-advised function) |
| 2357 | (if (eq (ad-enable-advice-internal function class name t) 0) | 2357 | (if (eq (ad-enable-advice-internal function class name t) 0) |
| 2358 | (error "ad-enable-advice: `%s' has no %s advice matching `%s'" | 2358 | (error "ad-enable-advice: `%s' has no %s advice matching `%s'" |
| @@ -2361,7 +2361,7 @@ FUNCTION was not advised)." | |||
| 2361 | 2361 | ||
| 2362 | (defun ad-disable-advice (function class name) | 2362 | (defun ad-disable-advice (function class name) |
| 2363 | "Disable the advice of FUNCTION with CLASS and NAME." | 2363 | "Disable the advice of FUNCTION with CLASS and NAME." |
| 2364 | (interactive (ad-read-advice-specification "Disable advice of: ")) | 2364 | (interactive (ad-read-advice-specification "Disable advice of")) |
| 2365 | (if (ad-is-advised function) | 2365 | (if (ad-is-advised function) |
| 2366 | (if (eq (ad-enable-advice-internal function class name nil) 0) | 2366 | (if (eq (ad-enable-advice-internal function class name nil) 0) |
| 2367 | (error "ad-disable-advice: `%s' has no %s advice matching `%s'" | 2367 | (error "ad-disable-advice: `%s' has no %s advice matching `%s'" |
| @@ -2385,7 +2385,7 @@ affected advices will be returned." | |||
| 2385 | "Enables all advices with names that contain a match for REGEXP. | 2385 | "Enables all advices with names that contain a match for REGEXP. |
| 2386 | All currently advised functions will be considered." | 2386 | All currently advised functions will be considered." |
| 2387 | (interactive | 2387 | (interactive |
| 2388 | (list (ad-read-regexp "Enable advices via regexp: "))) | 2388 | (list (ad-read-regexp "Enable advices via regexp"))) |
| 2389 | (let ((matched-advices (ad-enable-regexp-internal regexp 'any t))) | 2389 | (let ((matched-advices (ad-enable-regexp-internal regexp 'any t))) |
| 2390 | (if (interactive-p) | 2390 | (if (interactive-p) |
| 2391 | (message "%d matching advices enabled" matched-advices)) | 2391 | (message "%d matching advices enabled" matched-advices)) |
| @@ -2395,7 +2395,7 @@ All currently advised functions will be considered." | |||
| 2395 | "Disable all advices with names that contain a match for REGEXP. | 2395 | "Disable all advices with names that contain a match for REGEXP. |
| 2396 | All currently advised functions will be considered." | 2396 | All currently advised functions will be considered." |
| 2397 | (interactive | 2397 | (interactive |
| 2398 | (list (ad-read-regexp "Disable advices via regexp: "))) | 2398 | (list (ad-read-regexp "Disable advices via regexp"))) |
| 2399 | (let ((matched-advices (ad-enable-regexp-internal regexp 'any nil))) | 2399 | (let ((matched-advices (ad-enable-regexp-internal regexp 'any nil))) |
| 2400 | (if (interactive-p) | 2400 | (if (interactive-p) |
| 2401 | (message "%d matching advices disabled" matched-advices)) | 2401 | (message "%d matching advices disabled" matched-advices)) |
| @@ -2405,7 +2405,7 @@ All currently advised functions will be considered." | |||
| 2405 | "Remove FUNCTION's advice with NAME from its advices in CLASS. | 2405 | "Remove FUNCTION's advice with NAME from its advices in CLASS. |
| 2406 | If such an advice was found it will be removed from the list of advices | 2406 | If such an advice was found it will be removed from the list of advices |
| 2407 | in that CLASS." | 2407 | in that CLASS." |
| 2408 | (interactive (ad-read-advice-specification "Remove advice of: ")) | 2408 | (interactive (ad-read-advice-specification "Remove advice of")) |
| 2409 | (if (ad-is-advised function) | 2409 | (if (ad-is-advised function) |
| 2410 | (let* ((advice-to-remove (ad-find-advice function class name))) | 2410 | (let* ((advice-to-remove (ad-find-advice function class name))) |
| 2411 | (if advice-to-remove | 2411 | (if advice-to-remove |
| @@ -3285,7 +3285,7 @@ should be modified. The assembled function will be returned." | |||
| 3285 | Clear the cache if you want to force `ad-activate' to construct a new | 3285 | Clear the cache if you want to force `ad-activate' to construct a new |
| 3286 | advised definition from scratch." | 3286 | advised definition from scratch." |
| 3287 | (interactive | 3287 | (interactive |
| 3288 | (list (ad-read-advised-function "Clear cached definition of: "))) | 3288 | (list (ad-read-advised-function "Clear cached definition of"))) |
| 3289 | (ad-set-advice-info-field function 'cache nil)) | 3289 | (ad-set-advice-info-field function 'cache nil)) |
| 3290 | 3290 | ||
| 3291 | (defun ad-make-cache-id (function) | 3291 | (defun ad-make-cache-id (function) |
| @@ -3602,7 +3602,7 @@ an advised function that has actual pieces of advice but none of them are | |||
| 3602 | enabled is equivalent to a call to `ad-deactivate'. The current advised | 3602 | enabled is equivalent to a call to `ad-deactivate'. The current advised |
| 3603 | definition will always be cached for later usage." | 3603 | definition will always be cached for later usage." |
| 3604 | (interactive | 3604 | (interactive |
| 3605 | (list (ad-read-advised-function "Activate advice of: ") | 3605 | (list (ad-read-advised-function "Activate advice of") |
| 3606 | current-prefix-arg)) | 3606 | current-prefix-arg)) |
| 3607 | (if ad-activate-on-top-level | 3607 | (if ad-activate-on-top-level |
| 3608 | ;; avoid recursive calls to `ad-activate': | 3608 | ;; avoid recursive calls to `ad-activate': |
| @@ -3632,7 +3632,7 @@ definition of FUNCTION will be replaced with it. All the advice | |||
| 3632 | information will still be available so it can be activated again with | 3632 | information will still be available so it can be activated again with |
| 3633 | a call to `ad-activate'." | 3633 | a call to `ad-activate'." |
| 3634 | (interactive | 3634 | (interactive |
| 3635 | (list (ad-read-advised-function "Deactivate advice of: " 'ad-is-active))) | 3635 | (list (ad-read-advised-function "Deactivate advice of" 'ad-is-active))) |
| 3636 | (if (not (ad-is-advised function)) | 3636 | (if (not (ad-is-advised function)) |
| 3637 | (error "ad-deactivate: `%s' is not advised" function) | 3637 | (error "ad-deactivate: `%s' is not advised" function) |
| 3638 | (cond ((ad-is-active function) | 3638 | (cond ((ad-is-active function) |
| @@ -3650,7 +3650,7 @@ a call to `ad-activate'." | |||
| 3650 | See `ad-activate' for documentation on the optional COMPILE argument." | 3650 | See `ad-activate' for documentation on the optional COMPILE argument." |
| 3651 | (interactive | 3651 | (interactive |
| 3652 | (list (ad-read-advised-function | 3652 | (list (ad-read-advised-function |
| 3653 | "Update advised definition of: " 'ad-is-active))) | 3653 | "Update advised definition of" 'ad-is-active))) |
| 3654 | (if (ad-is-active function) | 3654 | (if (ad-is-active function) |
| 3655 | (ad-activate function compile))) | 3655 | (ad-activate function compile))) |
| 3656 | 3656 | ||
| @@ -3658,7 +3658,7 @@ See `ad-activate' for documentation on the optional COMPILE argument." | |||
| 3658 | "Deactivate FUNCTION and then remove all its advice information. | 3658 | "Deactivate FUNCTION and then remove all its advice information. |
| 3659 | If FUNCTION was not advised this will be a noop." | 3659 | If FUNCTION was not advised this will be a noop." |
| 3660 | (interactive | 3660 | (interactive |
| 3661 | (list (ad-read-advised-function "Unadvise function: "))) | 3661 | (list (ad-read-advised-function "Unadvise function"))) |
| 3662 | (cond ((ad-is-advised function) | 3662 | (cond ((ad-is-advised function) |
| 3663 | (if (ad-is-active function) | 3663 | (if (ad-is-active function) |
| 3664 | (ad-deactivate function)) | 3664 | (ad-deactivate function)) |
| @@ -3689,7 +3689,7 @@ This activates the advice for each function | |||
| 3689 | that has at least one piece of advice whose name includes a match for REGEXP. | 3689 | that has at least one piece of advice whose name includes a match for REGEXP. |
| 3690 | See `ad-activate' for documentation on the optional COMPILE argument." | 3690 | See `ad-activate' for documentation on the optional COMPILE argument." |
| 3691 | (interactive | 3691 | (interactive |
| 3692 | (list (ad-read-regexp "Activate via advice regexp: ") | 3692 | (list (ad-read-regexp "Activate via advice regexp") |
| 3693 | current-prefix-arg)) | 3693 | current-prefix-arg)) |
| 3694 | (ad-do-advised-functions (function) | 3694 | (ad-do-advised-functions (function) |
| 3695 | (if (ad-find-some-advice function 'any regexp) | 3695 | (if (ad-find-some-advice function 'any regexp) |
| @@ -3700,7 +3700,7 @@ See `ad-activate' for documentation on the optional COMPILE argument." | |||
| 3700 | This deactivates the advice for each function | 3700 | This deactivates the advice for each function |
| 3701 | that has at least one piece of advice whose name includes a match for REGEXP." | 3701 | that has at least one piece of advice whose name includes a match for REGEXP." |
| 3702 | (interactive | 3702 | (interactive |
| 3703 | (list (ad-read-regexp "Deactivate via advice regexp: "))) | 3703 | (list (ad-read-regexp "Deactivate via advice regexp"))) |
| 3704 | (ad-do-advised-functions (function) | 3704 | (ad-do-advised-functions (function) |
| 3705 | (if (ad-find-some-advice function 'any regexp) | 3705 | (if (ad-find-some-advice function 'any regexp) |
| 3706 | (ad-deactivate function)))) | 3706 | (ad-deactivate function)))) |
| @@ -3711,7 +3711,7 @@ This reactivates the advice for each function | |||
| 3711 | that has at least one piece of advice whose name includes a match for REGEXP. | 3711 | that has at least one piece of advice whose name includes a match for REGEXP. |
| 3712 | See `ad-activate' for documentation on the optional COMPILE argument." | 3712 | See `ad-activate' for documentation on the optional COMPILE argument." |
| 3713 | (interactive | 3713 | (interactive |
| 3714 | (list (ad-read-regexp "Update via advice regexp: ") | 3714 | (list (ad-read-regexp "Update via advice regexp") |
| 3715 | current-prefix-arg)) | 3715 | current-prefix-arg)) |
| 3716 | (ad-do-advised-functions (function) | 3716 | (ad-do-advised-functions (function) |
| 3717 | (if (ad-find-some-advice function 'any regexp) | 3717 | (if (ad-find-some-advice function 'any regexp) |
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 913ffcf1941..bab50a1c822 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el | |||
| @@ -1585,7 +1585,7 @@ mouse-[0-3]\\)\\)\\>")) | |||
| 1585 | ;; a prefix. | 1585 | ;; a prefix. |
| 1586 | (let ((disambiguate | 1586 | (let ((disambiguate |
| 1587 | (completing-read | 1587 | (completing-read |
| 1588 | "Disambiguating Keyword (default: variable): " | 1588 | "Disambiguating Keyword (default variable): " |
| 1589 | '(("function") ("command") ("variable") | 1589 | '(("function") ("command") ("variable") |
| 1590 | ("option") ("symbol")) | 1590 | ("option") ("symbol")) |
| 1591 | nil t nil nil "variable"))) | 1591 | nil t nil nil "variable"))) |
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 58b12376b05..2b47b139759 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -754,7 +754,7 @@ To specify a nil argument interactively, exit with an empty minibuffer." | |||
| 754 | (interactive | 754 | (interactive |
| 755 | (list (let ((name | 755 | (list (let ((name |
| 756 | (completing-read | 756 | (completing-read |
| 757 | "Cancel debug on entry to function (default: all functions): " | 757 | "Cancel debug on entry to function (default all functions): " |
| 758 | (mapcar 'symbol-name debug-function-list) nil t))) | 758 | (mapcar 'symbol-name debug-function-list) nil t))) |
| 759 | (when name | 759 | (when name |
| 760 | (unless (string= name "") | 760 | (unless (string= name "") |
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el index 51fbdb6b8c4..b07c634d9b4 100644 --- a/lisp/emulation/vip.el +++ b/lisp/emulation/vip.el | |||
| @@ -893,7 +893,7 @@ is the name of the register for COM." | |||
| 893 | each line in the region." | 893 | each line in the region." |
| 894 | (setq vip-quote-string | 894 | (setq vip-quote-string |
| 895 | (let ((str | 895 | (let ((str |
| 896 | (vip-read-string (format "quote string \(default \"%s\"\): " | 896 | (vip-read-string (format "quote string (default %s): " |
| 897 | vip-quote-string)))) | 897 | vip-quote-string)))) |
| 898 | (if (string= str "") vip-quote-string str))) | 898 | (if (string= str "") vip-quote-string str))) |
| 899 | (vip-enlarge-region (point) (mark)) | 899 | (vip-enlarge-region (point) (mark)) |
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 7d2e10a8f31..398c47d4784 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -2160,7 +2160,7 @@ problems." | |||
| 2160 | (setq keymap (or keymap minibuffer-local-map) | 2160 | (setq keymap (or keymap minibuffer-local-map) |
| 2161 | initial (or initial "") | 2161 | initial (or initial "") |
| 2162 | temp-msg (if default | 2162 | temp-msg (if default |
| 2163 | (format "(default: %s) " default) | 2163 | (format "(default %s) " default) |
| 2164 | "")) | 2164 | "")) |
| 2165 | 2165 | ||
| 2166 | (setq viper-incomplete-ex-cmd nil) | 2166 | (setq viper-incomplete-ex-cmd nil) |
diff --git a/lisp/format.el b/lisp/format.el index c43898d78a7..30e9ee207c7 100644 --- a/lisp/format.el +++ b/lisp/format.el | |||
| @@ -316,7 +316,7 @@ If the format is not specified, this function attempts to guess. | |||
| 316 | `buffer-file-format' is set to the format used, and any mode-functions | 316 | `buffer-file-format' is set to the format used, and any mode-functions |
| 317 | for the format are called." | 317 | for the format are called." |
| 318 | (interactive | 318 | (interactive |
| 319 | (list (format-read "Translate buffer from format (default: guess): "))) | 319 | (list (format-read "Translate buffer from format (default guess): "))) |
| 320 | (save-excursion | 320 | (save-excursion |
| 321 | (goto-char (point-min)) | 321 | (goto-char (point-min)) |
| 322 | (format-decode format (buffer-size) t))) | 322 | (format-decode format (buffer-size) t))) |
| @@ -327,7 +327,7 @@ Arg FORMAT is optional; if omitted the format will be determined by looking | |||
| 327 | for identifying regular expressions at the beginning of the region." | 327 | for identifying regular expressions at the beginning of the region." |
| 328 | (interactive | 328 | (interactive |
| 329 | (list (region-beginning) (region-end) | 329 | (list (region-beginning) (region-end) |
| 330 | (format-read "Translate region from format (default: guess): "))) | 330 | (format-read "Translate region from format (default guess): "))) |
| 331 | (save-excursion | 331 | (save-excursion |
| 332 | (goto-char from) | 332 | (goto-char from) |
| 333 | (format-decode format (- to from) nil))) | 333 | (format-decode format (- to from) nil))) |
diff --git a/lisp/info.el b/lisp/info.el index 4c40e187c03..7868125b9b0 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1569,11 +1569,11 @@ PATH-AND-SUFFIXES is a pair of lists, (DIRECTORIES . SUFFIXES)." | |||
| 1569 | If DIRECTION is `backward', search in the reverse direction." | 1569 | If DIRECTION is `backward', search in the reverse direction." |
| 1570 | (interactive (list (read-string | 1570 | (interactive (list (read-string |
| 1571 | (if Info-search-history | 1571 | (if Info-search-history |
| 1572 | (format "Regexp search%s (default `%s'): " | 1572 | (format "Regexp search%s (default %s): " |
| 1573 | (if case-fold-search "" " case-sensitively") | 1573 | (if case-fold-search "" " case-sensitively") |
| 1574 | (car Info-search-history)) | 1574 | (car Info-search-history)) |
| 1575 | (format "Regexp search%s: " | 1575 | (format "Regexp search%s: " |
| 1576 | (if case-fold-search "" " case-sensitively"))) | 1576 | (if case-fold-search "" " case-sensitively"))) |
| 1577 | nil 'Info-search-history))) | 1577 | nil 'Info-search-history))) |
| 1578 | (when transient-mark-mode | 1578 | (when transient-mark-mode |
| 1579 | (deactivate-mark)) | 1579 | (deactivate-mark)) |
| @@ -1757,11 +1757,11 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1757 | "Search for REGEXP in the reverse direction." | 1757 | "Search for REGEXP in the reverse direction." |
| 1758 | (interactive (list (read-string | 1758 | (interactive (list (read-string |
| 1759 | (if Info-search-history | 1759 | (if Info-search-history |
| 1760 | (format "Regexp search%s backward (default `%s'): " | 1760 | (format "Regexp search%s backward (default %s): " |
| 1761 | (if case-fold-search "" " case-sensitively") | 1761 | (if case-fold-search "" " case-sensitively") |
| 1762 | (car Info-search-history)) | 1762 | (car Info-search-history)) |
| 1763 | (format "Regexp search%s backward: " | 1763 | (format "Regexp search%s backward: " |
| 1764 | (if case-fold-search "" " case-sensitively"))) | 1764 | (if case-fold-search "" " case-sensitively"))) |
| 1765 | nil 'Info-search-history))) | 1765 | nil 'Info-search-history))) |
| 1766 | (Info-search regexp bound noerror count 'backward)) | 1766 | (Info-search regexp bound noerror count 'backward)) |
| 1767 | 1767 | ||
| @@ -2107,8 +2107,8 @@ new buffer." | |||
| 2107 | (if completions | 2107 | (if completions |
| 2108 | (let ((input (completing-read (if default | 2108 | (let ((input (completing-read (if default |
| 2109 | (concat | 2109 | (concat |
| 2110 | "Follow reference named: (default " | 2110 | "Follow reference named (default " |
| 2111 | default ") ") | 2111 | default "): ") |
| 2112 | "Follow reference named: ") | 2112 | "Follow reference named: ") |
| 2113 | completions nil t))) | 2113 | completions nil t))) |
| 2114 | (list (if (equal input "") | 2114 | (list (if (equal input "") |
diff --git a/lisp/international/code-pages.el b/lisp/international/code-pages.el index df9853147c2..a3f5ff4819f 100644 --- a/lisp/international/code-pages.el +++ b/lisp/international/code-pages.el | |||
| @@ -130,7 +130,7 @@ read/written by MS-DOS software, or for display on the MS-DOS terminal." | |||
| 130 | (interactive | 130 | (interactive |
| 131 | (let ((completion-ignore-case t) | 131 | (let ((completion-ignore-case t) |
| 132 | (candidates (cp-supported-codepages))) | 132 | (candidates (cp-supported-codepages))) |
| 133 | (list (completing-read "Setup DOS Codepage: (default 437) " candidates | 133 | (list (completing-read "Setup DOS Codepage (default 437): " candidates |
| 134 | nil t nil nil "437")))) | 134 | nil t nil nil "437")))) |
| 135 | (let ((cp (format "cp%s" codepage))) | 135 | (let ((cp (format "cp%s" codepage))) |
| 136 | (unless (coding-system-p (intern cp)) | 136 | (unless (coding-system-p (intern cp)) |
diff --git a/lisp/international/codepage.el b/lisp/international/codepage.el index 854d4673ecd..56920b968ac 100644 --- a/lisp/international/codepage.el +++ b/lisp/international/codepage.el | |||
| @@ -662,7 +662,7 @@ read/written by MS-DOS software, or for display on the MS-DOS terminal." | |||
| 662 | (interactive | 662 | (interactive |
| 663 | (let ((completion-ignore-case t) | 663 | (let ((completion-ignore-case t) |
| 664 | (candidates (cp-supported-codepages))) | 664 | (candidates (cp-supported-codepages))) |
| 665 | (list (completing-read "Setup DOS Codepage: (default 437) " candidates | 665 | (list (completing-read "Setup DOS Codepage (default 437): " candidates |
| 666 | nil t nil nil "437")))) | 666 | nil t nil nil "437")))) |
| 667 | (let* ((cp (format "cp%s" codepage)) | 667 | (let* ((cp (format "cp%s" codepage)) |
| 668 | (cp-defined (intern-soft cp))) | 668 | (cp-defined (intern-soft cp))) |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 8f491560ecc..f1c7a65a5a5 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -278,7 +278,7 @@ wrong, use this command again to toggle back to the right mode." | |||
| 278 | buffer-file-coding-system))) | 278 | buffer-file-coding-system))) |
| 279 | (list (read-coding-system | 279 | (list (read-coding-system |
| 280 | (if default | 280 | (if default |
| 281 | (format "Coding system for following command (default, %s): " default) | 281 | (format "Coding system for following command (default %s): " default) |
| 282 | "Coding system for following command: ") | 282 | "Coding system for following command: ") |
| 283 | default)))) | 283 | default)))) |
| 284 | (let* ((keyseq (read-key-sequence | 284 | (let* ((keyseq (read-key-sequence |
| @@ -616,7 +616,7 @@ or nil if all characters are encodable." | |||
| 616 | (interactive | 616 | (interactive |
| 617 | (list (let ((default (or buffer-file-coding-system 'us-ascii))) | 617 | (list (let ((default (or buffer-file-coding-system 'us-ascii))) |
| 618 | (read-coding-system | 618 | (read-coding-system |
| 619 | (format "Coding-system (default, %s): " default) | 619 | (format "Coding-system (default %s): " default) |
| 620 | default)))) | 620 | default)))) |
| 621 | (let ((pos (unencodable-char-position (point) (point-max) coding-system))) | 621 | (let ((pos (unencodable-char-position (point) (point-max) coding-system))) |
| 622 | (if pos | 622 | (if pos |
| @@ -1490,7 +1490,7 @@ which marks the variable `default-input-method' as set for Custom buffers." | |||
| 1490 | "Describe input method INPUT-METHOD." | 1490 | "Describe input method INPUT-METHOD." |
| 1491 | (interactive | 1491 | (interactive |
| 1492 | (list (read-input-method-name | 1492 | (list (read-input-method-name |
| 1493 | "Describe input method (default, current choice): "))) | 1493 | "Describe input method (default current choice): "))) |
| 1494 | (if (and input-method (symbolp input-method)) | 1494 | (if (and input-method (symbolp input-method)) |
| 1495 | (setq input-method (symbol-name input-method))) | 1495 | (setq input-method (symbol-name input-method))) |
| 1496 | (help-setup-xref (list #'describe-input-method | 1496 | (help-setup-xref (list #'describe-input-method |
| @@ -1810,7 +1810,7 @@ which is the name of a language environment. For example, \"Latin-1\" | |||
| 1810 | specifies the character set for the major languages of Western Europe." | 1810 | specifies the character set for the major languages of Western Europe." |
| 1811 | (interactive (list (read-language-name | 1811 | (interactive (list (read-language-name |
| 1812 | nil | 1812 | nil |
| 1813 | "Set language environment (default, English): "))) | 1813 | "Set language environment (default English): "))) |
| 1814 | (if language-name | 1814 | (if language-name |
| 1815 | (if (symbolp language-name) | 1815 | (if (symbolp language-name) |
| 1816 | (setq language-name (symbol-name language-name))) | 1816 | (setq language-name (symbol-name language-name))) |
| @@ -1986,7 +1986,7 @@ of `buffer-file-coding-system' set by this function." | |||
| 1986 | (interactive | 1986 | (interactive |
| 1987 | (list (read-language-name | 1987 | (list (read-language-name |
| 1988 | 'documentation | 1988 | 'documentation |
| 1989 | "Describe language environment (default, current choice): "))) | 1989 | "Describe language environment (default current choice): "))) |
| 1990 | (if (null language-name) | 1990 | (if (null language-name) |
| 1991 | (setq language-name current-language-environment)) | 1991 | (setq language-name current-language-environment)) |
| 1992 | (if (or (null language-name) | 1992 | (if (or (null language-name) |
| @@ -2014,7 +2014,7 @@ of `buffer-file-coding-system' set by this function." | |||
| 2014 | (l (copy-sequence input-method-alist))) | 2014 | (l (copy-sequence input-method-alist))) |
| 2015 | (insert "Input methods") | 2015 | (insert "Input methods") |
| 2016 | (when input-method | 2016 | (when input-method |
| 2017 | (insert " (default, " input-method ")") | 2017 | (insert " (default " input-method ")") |
| 2018 | (setq input-method (assoc input-method input-method-alist)) | 2018 | (setq input-method (assoc input-method input-method-alist)) |
| 2019 | (setq l (cons input-method (delete input-method l)))) | 2019 | (setq l (cons input-method (delete input-method l)))) |
| 2020 | (insert ":\n") | 2020 | (insert ":\n") |
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index 6e2ff809cac..0a2e5a7c325 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -598,7 +598,7 @@ PC `codepages' and other coded character sets. See `non-iso-charset-alist'." | |||
| 598 | ;;;###autoload | 598 | ;;;###autoload |
| 599 | (defun describe-coding-system (coding-system) | 599 | (defun describe-coding-system (coding-system) |
| 600 | "Display information about CODING-SYSTEM." | 600 | "Display information about CODING-SYSTEM." |
| 601 | (interactive "zDescribe coding system (default, current choices): ") | 601 | (interactive "zDescribe coding system (default current choices): ") |
| 602 | (if (null coding-system) | 602 | (if (null coding-system) |
| 603 | (describe-current-coding-system) | 603 | (describe-current-coding-system) |
| 604 | (help-setup-xref (list #'describe-coding-system coding-system) | 604 | (help-setup-xref (list #'describe-coding-system coding-system) |
| @@ -1040,7 +1040,7 @@ but still contains full information about each coding system." | |||
| 1040 | ;;;###autoload | 1040 | ;;;###autoload |
| 1041 | (defun describe-font (fontname) | 1041 | (defun describe-font (fontname) |
| 1042 | "Display information about fonts which partially match FONTNAME." | 1042 | "Display information about fonts which partially match FONTNAME." |
| 1043 | (interactive "sFontname (default, current choice for ASCII chars): ") | 1043 | (interactive "sFontname (default current choice for ASCII chars): ") |
| 1044 | (or (and window-system (fboundp 'fontset-list)) | 1044 | (or (and window-system (fboundp 'fontset-list)) |
| 1045 | (error "No fontsets being used")) | 1045 | (error "No fontsets being used")) |
| 1046 | (when (or (not fontname) (= (length fontname) 0)) | 1046 | (when (or (not fontname) (= (length fontname) 0)) |
| @@ -1137,7 +1137,7 @@ This shows which font is used for which character(s)." | |||
| 1137 | (mapcar 'cdr fontset-alias-alist))) | 1137 | (mapcar 'cdr fontset-alias-alist))) |
| 1138 | (completion-ignore-case t)) | 1138 | (completion-ignore-case t)) |
| 1139 | (list (completing-read | 1139 | (list (completing-read |
| 1140 | "Fontset (default, used by the current frame): " | 1140 | "Fontset (default used by the current frame): " |
| 1141 | fontset-list nil t))))) | 1141 | fontset-list nil t))))) |
| 1142 | (if (= (length fontset) 0) | 1142 | (if (= (length fontset) 0) |
| 1143 | (setq fontset (frame-parameter nil 'font))) | 1143 | (setq fontset (frame-parameter nil 'font))) |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 80c4fd590fe..a4a1ca76e2c 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -1159,7 +1159,7 @@ surely saves the buffer with CODING-SYSTEM. From a program, if you | |||
| 1159 | don't want to mark the buffer modified, specify t for NOMODIFY. | 1159 | don't want to mark the buffer modified, specify t for NOMODIFY. |
| 1160 | If you know exactly what coding system you want to use, | 1160 | If you know exactly what coding system you want to use, |
| 1161 | just set the variable `buffer-file-coding-system' directly." | 1161 | just set the variable `buffer-file-coding-system' directly." |
| 1162 | (interactive "zCoding system for saving file (default, nil): \nP") | 1162 | (interactive "zCoding system for saving file (default nil): \nP") |
| 1163 | (check-coding-system coding-system) | 1163 | (check-coding-system coding-system) |
| 1164 | (if (and coding-system buffer-file-coding-system (null force)) | 1164 | (if (and coding-system buffer-file-coding-system (null force)) |
| 1165 | (setq coding-system | 1165 | (setq coding-system |
| @@ -1183,7 +1183,7 @@ do. If FORCE is nil, get the unspecified aspect (or aspects) from the | |||
| 1183 | buffer's previous `buffer-file-coding-system' value (if it is | 1183 | buffer's previous `buffer-file-coding-system' value (if it is |
| 1184 | specified there). Otherwise, determine it from the file contents as | 1184 | specified there). Otherwise, determine it from the file contents as |
| 1185 | usual for visiting a file." | 1185 | usual for visiting a file." |
| 1186 | (interactive "zCoding system for visited file (default, nil): \nP") | 1186 | (interactive "zCoding system for visited file (default nil): \nP") |
| 1187 | (check-coding-system coding-system) | 1187 | (check-coding-system coding-system) |
| 1188 | (if (and coding-system buffer-file-coding-system (null force)) | 1188 | (if (and coding-system buffer-file-coding-system (null force)) |
| 1189 | (setq coding-system | 1189 | (setq coding-system |
| @@ -1195,7 +1195,7 @@ usual for visiting a file." | |||
| 1195 | "Set coding system for decoding and encoding file names to CODING-SYSTEM. | 1195 | "Set coding system for decoding and encoding file names to CODING-SYSTEM. |
| 1196 | It actually just set the variable `file-name-coding-system' (which | 1196 | It actually just set the variable `file-name-coding-system' (which |
| 1197 | see) to CODING-SYSTEM." | 1197 | see) to CODING-SYSTEM." |
| 1198 | (interactive "zCoding system for file names (default, nil): ") | 1198 | (interactive "zCoding system for file names (default nil): ") |
| 1199 | (check-coding-system coding-system) | 1199 | (check-coding-system coding-system) |
| 1200 | (if (and coding-system | 1200 | (if (and coding-system |
| 1201 | (coding-system-get coding-system 'ascii-incompatible)) | 1201 | (coding-system-get coding-system 'ascii-incompatible)) |
| @@ -1219,7 +1219,7 @@ or by the previous use of this command." | |||
| 1219 | default-terminal-coding-system) | 1219 | default-terminal-coding-system) |
| 1220 | default-terminal-coding-system))) | 1220 | default-terminal-coding-system))) |
| 1221 | (read-coding-system | 1221 | (read-coding-system |
| 1222 | (format "Coding system for terminal display (default, %s): " | 1222 | (format "Coding system for terminal display (default %s): " |
| 1223 | default) | 1223 | default) |
| 1224 | default)))) | 1224 | default)))) |
| 1225 | (if (and (not coding-system) | 1225 | (if (and (not coding-system) |
| @@ -1248,7 +1248,7 @@ or by the previous use of this command." | |||
| 1248 | default-keyboard-coding-system) | 1248 | default-keyboard-coding-system) |
| 1249 | default-keyboard-coding-system))) | 1249 | default-keyboard-coding-system))) |
| 1250 | (read-coding-system | 1250 | (read-coding-system |
| 1251 | (format "Coding system for keyboard input (default, %s): " | 1251 | (format "Coding system for keyboard input (default %s): " |
| 1252 | default) | 1252 | default) |
| 1253 | default)))) | 1253 | default)))) |
| 1254 | (if (and (not coding-system) | 1254 | (if (and (not coding-system) |
| @@ -1321,7 +1321,7 @@ This setting is effective for the next communication only." | |||
| 1321 | (interactive | 1321 | (interactive |
| 1322 | (list (read-coding-system | 1322 | (list (read-coding-system |
| 1323 | (if last-next-selection-coding-system | 1323 | (if last-next-selection-coding-system |
| 1324 | (format "Coding system for the next X selection (default, %S): " | 1324 | (format "Coding system for the next X selection (default %S): " |
| 1325 | last-next-selection-coding-system) | 1325 | last-next-selection-coding-system) |
| 1326 | "Coding system for the next X selection: ") | 1326 | "Coding system for the next X selection: ") |
| 1327 | last-next-selection-coding-system))) | 1327 | last-next-selection-coding-system))) |
diff --git a/lisp/international/quail.el b/lisp/international/quail.el index 1bc02863ffb..0f9cc8f231d 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el | |||
| @@ -897,7 +897,7 @@ The format of KBD-LAYOUT is the same as `quail-keyboard-layout'." | |||
| 897 | The variable `quail-keyboard-layout-type' holds the currently selected | 897 | The variable `quail-keyboard-layout-type' holds the currently selected |
| 898 | keyboard type." | 898 | keyboard type." |
| 899 | (interactive | 899 | (interactive |
| 900 | (list (completing-read "Keyboard type (default, current choice): " | 900 | (list (completing-read "Keyboard type (default current choice): " |
| 901 | quail-keyboard-layout-alist | 901 | quail-keyboard-layout-alist |
| 902 | nil t))) | 902 | nil t))) |
| 903 | (or (and keyboard-type (> (length keyboard-type) 0)) | 903 | (or (and keyboard-type (> (length keyboard-type) 0)) |
diff --git a/lisp/locate.el b/lisp/locate.el index cbf2e4866ab..390e0ec72b3 100644 --- a/lisp/locate.el +++ b/lisp/locate.el | |||
| @@ -209,7 +209,7 @@ With prefix arg, prompt for the locate command to run." | |||
| 209 | (input | 209 | (input |
| 210 | (read-from-minibuffer | 210 | (read-from-minibuffer |
| 211 | (if (> (length default) 0) | 211 | (if (> (length default) 0) |
| 212 | (format "Locate (default `%s'): " default) | 212 | (format "Locate (default %s): " default) |
| 213 | (format "Locate: ")) | 213 | (format "Locate: ")) |
| 214 | nil nil nil 'locate-history-list default t))) | 214 | nil nil nil 'locate-history-list default t))) |
| 215 | (and (equal input "") default | 215 | (and (equal input "") default |
diff --git a/lisp/mail/mailabbrev.el b/lisp/mail/mailabbrev.el index 270d2cd6385..06af543b4da 100644 --- a/lisp/mail/mailabbrev.el +++ b/lisp/mail/mailabbrev.el | |||
| @@ -528,7 +528,7 @@ of a mail alias. The value is set up, buffer-local, when first needed.") | |||
| 528 | (default-directory (expand-file-name "~/")) | 528 | (default-directory (expand-file-name "~/")) |
| 529 | (def mail-personal-alias-file)) | 529 | (def mail-personal-alias-file)) |
| 530 | (read-file-name | 530 | (read-file-name |
| 531 | (format "Read additional aliases from file: (default %s) " | 531 | (format "Read additional aliases from file (default %s): " |
| 532 | def) | 532 | def) |
| 533 | default-directory | 533 | default-directory |
| 534 | (expand-file-name def default-directory) | 534 | (expand-file-name def default-directory) |
| @@ -542,7 +542,7 @@ of a mail alias. The value is set up, buffer-local, when first needed.") | |||
| 542 | (default-directory (expand-file-name "~/")) | 542 | (default-directory (expand-file-name "~/")) |
| 543 | (def mail-personal-alias-file)) | 543 | (def mail-personal-alias-file)) |
| 544 | (read-file-name | 544 | (read-file-name |
| 545 | (format "Read mail aliases from file: (default %s) " def) | 545 | (format "Read mail aliases from file (default %s): " def) |
| 546 | default-directory | 546 | default-directory |
| 547 | (expand-file-name def default-directory) | 547 | (expand-file-name def default-directory) |
| 548 | t)))) | 548 | t)))) |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index b84ea1f34d1..0decf2813aa 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -3038,13 +3038,14 @@ Interactively, empty argument means use same regexp used last time." | |||
| 3038 | (interactive | 3038 | (interactive |
| 3039 | (let* ((reversep (< (prefix-numeric-value current-prefix-arg) 0)) | 3039 | (let* ((reversep (< (prefix-numeric-value current-prefix-arg) 0)) |
| 3040 | (prompt | 3040 | (prompt |
| 3041 | (concat (if reversep "Reverse " "") "Rmail search (regexp): ")) | 3041 | (concat (if reversep "Reverse " "") "Rmail search (regexp")) |
| 3042 | regexp) | 3042 | regexp) |
| 3043 | (if rmail-search-last-regexp | 3043 | (setq prompt |
| 3044 | (setq prompt (concat prompt | 3044 | (concat prompt |
| 3045 | "(default " | 3045 | (if rmail-search-last-regexp |
| 3046 | rmail-search-last-regexp | 3046 | (concat ", default " |
| 3047 | ") "))) | 3047 | rmail-search-last-regexp "): ") |
| 3048 | "): "))) | ||
| 3048 | (setq regexp (read-string prompt)) | 3049 | (setq regexp (read-string prompt)) |
| 3049 | (cond ((not (equal regexp "")) | 3050 | (cond ((not (equal regexp "")) |
| 3050 | (setq rmail-search-last-regexp regexp)) | 3051 | (setq rmail-search-last-regexp regexp)) |
| @@ -3109,13 +3110,14 @@ Interactively, empty argument means use same regexp used last time." | |||
| 3109 | (interactive | 3110 | (interactive |
| 3110 | (let* ((reversep (>= (prefix-numeric-value current-prefix-arg) 0)) | 3111 | (let* ((reversep (>= (prefix-numeric-value current-prefix-arg) 0)) |
| 3111 | (prompt | 3112 | (prompt |
| 3112 | (concat (if reversep "Reverse " "") "Rmail search (regexp): ")) | 3113 | (concat (if reversep "Reverse " "") "Rmail search (regexp")) |
| 3113 | regexp) | 3114 | regexp) |
| 3114 | (if rmail-search-last-regexp | 3115 | (setq prompt |
| 3115 | (setq prompt (concat prompt | 3116 | (concat prompt |
| 3116 | "(default " | 3117 | (if rmail-search-last-regexp |
| 3117 | rmail-search-last-regexp | 3118 | (concat ", default " |
| 3118 | ") "))) | 3119 | rmail-search-last-regexp "): ") |
| 3120 | "): "))) | ||
| 3119 | (setq regexp (read-string prompt)) | 3121 | (setq regexp (read-string prompt)) |
| 3120 | (cond ((not (equal regexp "")) | 3122 | (cond ((not (equal regexp "")) |
| 3121 | (setq rmail-search-last-regexp regexp)) | 3123 | (setq rmail-search-last-regexp regexp)) |
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index a3b46ddaedf..d97c181eb81 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -63,9 +63,9 @@ Set `rmail-default-rmail-file' to this name as well as returning it." | |||
| 63 | (let ((read-file | 63 | (let ((read-file |
| 64 | (expand-file-name | 64 | (expand-file-name |
| 65 | (read-file-name | 65 | (read-file-name |
| 66 | (concat "Output message to Rmail file: (default " | 66 | (concat "Output message to Rmail file (default " |
| 67 | (file-name-nondirectory default-file) | 67 | (file-name-nondirectory default-file) |
| 68 | ") ") | 68 | "): ") |
| 69 | (file-name-directory default-file) | 69 | (file-name-directory default-file) |
| 70 | (abbreviate-file-name default-file)) | 70 | (abbreviate-file-name default-file)) |
| 71 | (file-name-directory default-file)))) | 71 | (file-name-directory default-file)))) |
| @@ -95,9 +95,9 @@ Set `rmail-default-file' to this name as well as returning it." | |||
| 95 | (let ((read-file | 95 | (let ((read-file |
| 96 | (expand-file-name | 96 | (expand-file-name |
| 97 | (read-file-name | 97 | (read-file-name |
| 98 | (concat "Output message to Unix mail file: (default " | 98 | (concat "Output message to Unix mail file (default " |
| 99 | (file-name-nondirectory default-file) | 99 | (file-name-nondirectory default-file) |
| 100 | ") ") | 100 | "): ") |
| 101 | (file-name-directory default-file) | 101 | (file-name-directory default-file) |
| 102 | (abbreviate-file-name default-file)) | 102 | (abbreviate-file-name default-file)) |
| 103 | (file-name-directory default-file)))) | 103 | (file-name-directory default-file)))) |
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index ad2c275a679..497f2f75301 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -1346,13 +1346,14 @@ Interactively, empty argument means use same regexp used last time." | |||
| 1346 | (interactive | 1346 | (interactive |
| 1347 | (let* ((reversep (>= (prefix-numeric-value current-prefix-arg) 0)) | 1347 | (let* ((reversep (>= (prefix-numeric-value current-prefix-arg) 0)) |
| 1348 | (prompt | 1348 | (prompt |
| 1349 | (concat (if reversep "Reverse " "") "Rmail search (regexp): ")) | 1349 | (concat (if reversep "Reverse " "") "Rmail search (regexp")) |
| 1350 | regexp) | 1350 | regexp) |
| 1351 | (if rmail-search-last-regexp | 1351 | (setq prompt |
| 1352 | (setq prompt (concat prompt | 1352 | (concat prompt |
| 1353 | "(default " | 1353 | (if rmail-search-last-regexp |
| 1354 | rmail-search-last-regexp | 1354 | (concat ", default " |
| 1355 | ") "))) | 1355 | rmail-search-last-regexp "): ") |
| 1356 | "): "))) | ||
| 1356 | (setq regexp (read-string prompt)) | 1357 | (setq regexp (read-string prompt)) |
| 1357 | (cond ((not (equal regexp "")) | 1358 | (cond ((not (equal regexp "")) |
| 1358 | (setq rmail-search-last-regexp regexp)) | 1359 | (setq rmail-search-last-regexp regexp)) |
| @@ -1377,13 +1378,14 @@ Interactively, empty argument means use same regexp used last time." | |||
| 1377 | (interactive | 1378 | (interactive |
| 1378 | (let* ((reversep (< (prefix-numeric-value current-prefix-arg) 0)) | 1379 | (let* ((reversep (< (prefix-numeric-value current-prefix-arg) 0)) |
| 1379 | (prompt | 1380 | (prompt |
| 1380 | (concat (if reversep "Reverse " "") "Rmail search (regexp): ")) | 1381 | (concat (if reversep "Reverse " "") "Rmail search (regexp")) |
| 1381 | regexp) | 1382 | regexp) |
| 1382 | (if rmail-search-last-regexp | 1383 | (setq prompt |
| 1383 | (setq prompt (concat prompt | 1384 | (concat prompt |
| 1384 | "(default " | 1385 | (if rmail-search-last-regexp |
| 1385 | rmail-search-last-regexp | 1386 | (concat ", default " |
| 1386 | ") "))) | 1387 | rmail-search-last-regexp "): ") |
| 1388 | "): "))) | ||
| 1387 | (setq regexp (read-string prompt)) | 1389 | (setq regexp (read-string prompt)) |
| 1388 | (cond ((not (equal regexp "")) | 1390 | (cond ((not (equal regexp "")) |
| 1389 | (setq rmail-search-last-regexp regexp)) | 1391 | (setq rmail-search-last-regexp regexp)) |
diff --git a/lisp/man.el b/lisp/man.el index 60fc7c009e1..6c8a5a18b44 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -663,10 +663,10 @@ all sections related to a subject, put something appropriate into the | |||
| 663 | (interactive | 663 | (interactive |
| 664 | (list (let* ((default-entry (Man-default-man-entry)) | 664 | (list (let* ((default-entry (Man-default-man-entry)) |
| 665 | (input (read-string | 665 | (input (read-string |
| 666 | (format "Manual entry%s: " | 666 | (format "Manual entry%s" |
| 667 | (if (string= default-entry "") | 667 | (if (string= default-entry "") |
| 668 | "" | 668 | ": " |
| 669 | (format " (default %s)" default-entry))) | 669 | (format " (default %s): " default-entry))) |
| 670 | nil nil default-entry))) | 670 | nil nil default-entry))) |
| 671 | (if (string= input "") | 671 | (if (string= input "") |
| 672 | (error "No man args given") | 672 | (error "No man args given") |
| @@ -1273,7 +1273,7 @@ Returns t if section is found, nil otherwise." | |||
| 1273 | (let* ((default (aheadsym Man-sections-alist)) | 1273 | (let* ((default (aheadsym Man-sections-alist)) |
| 1274 | (completion-ignore-case t) | 1274 | (completion-ignore-case t) |
| 1275 | chosen | 1275 | chosen |
| 1276 | (prompt (concat "Go to section: (default " default ") "))) | 1276 | (prompt (concat "Go to section (default " default "): "))) |
| 1277 | (setq chosen (completing-read prompt Man-sections-alist)) | 1277 | (setq chosen (completing-read prompt Man-sections-alist)) |
| 1278 | (if (or (not chosen) | 1278 | (if (or (not chosen) |
| 1279 | (string= chosen "")) | 1279 | (string= chosen "")) |
| @@ -1328,7 +1328,7 @@ Specify which REFERENCE to use; default is based on word at point." | |||
| 1328 | Man-refpages-alist)) | 1328 | Man-refpages-alist)) |
| 1329 | (aheadsym Man-refpages-alist))) | 1329 | (aheadsym Man-refpages-alist))) |
| 1330 | chosen | 1330 | chosen |
| 1331 | (prompt (concat "Refer to: (default " default ") "))) | 1331 | (prompt (concat "Refer to (default " default "): "))) |
| 1332 | (setq chosen (completing-read prompt Man-refpages-alist)) | 1332 | (setq chosen (completing-read prompt Man-refpages-alist)) |
| 1333 | (if (or (not chosen) | 1333 | (if (or (not chosen) |
| 1334 | (string= chosen "")) | 1334 | (string= chosen "")) |
diff --git a/lisp/net/rcompile.el b/lisp/net/rcompile.el index 47ee84d42b8..c643d72da97 100644 --- a/lisp/net/rcompile.el +++ b/lisp/net/rcompile.el | |||
| @@ -138,7 +138,7 @@ See \\[compile]." | |||
| 138 | remote-compile-host) | 138 | remote-compile-host) |
| 139 | user (if remote-compile-prompt-for-user | 139 | user (if remote-compile-prompt-for-user |
| 140 | (read-from-minibuffer (format | 140 | (read-from-minibuffer (format |
| 141 | "Compile by user (default %s)" | 141 | "Compile by user (default %s): " |
| 142 | (or remote-compile-user | 142 | (or remote-compile-user |
| 143 | (user-login-name))) | 143 | (user-login-name))) |
| 144 | "" nil nil | 144 | "" nil nil |
diff --git a/lisp/play/animate.el b/lisp/play/animate.el index 662adf119b7..47f08a8b098 100644 --- a/lisp/play/animate.el +++ b/lisp/play/animate.el | |||
| @@ -156,7 +156,7 @@ Strings will be separated from each other by SPACE lines." | |||
| 156 | (defun animate-birthday-present (&optional name) | 156 | (defun animate-birthday-present (&optional name) |
| 157 | "Display one's birthday present in a new buffer. | 157 | "Display one's birthday present in a new buffer. |
| 158 | You can specify the one's name by NAME; the default value is \"Sarah\"." | 158 | You can specify the one's name by NAME; the default value is \"Sarah\"." |
| 159 | (interactive (list (read-string "Name (default \"Sarah\"): " | 159 | (interactive (list (read-string "Name (default Sarah): " |
| 160 | nil nil "Sarah"))) | 160 | nil nil "Sarah"))) |
| 161 | ;; Make a suitable buffer to display the birthday present in. | 161 | ;; Make a suitable buffer to display the birthday present in. |
| 162 | (switch-to-buffer (get-buffer-create (format "*%s*" name))) | 162 | (switch-to-buffer (get-buffer-create (format "*%s*" name))) |
diff --git a/lisp/printing.el b/lisp/printing.el index ec2c8a3cfda..3771871c9c8 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -5704,7 +5704,7 @@ If menu binding was not done, calls `pr-menu-bind'." | |||
| 5704 | (defun pr-interactive-n-up (mess) | 5704 | (defun pr-interactive-n-up (mess) |
| 5705 | (or (stringp mess) (setq mess "*")) | 5705 | (or (stringp mess) (setq mess "*")) |
| 5706 | (save-match-data | 5706 | (save-match-data |
| 5707 | (let* ((fmt-prompt "%s[%s] N-up printing: (default 1) ") | 5707 | (let* ((fmt-prompt "%s[%s] N-up printing (default 1): ") |
| 5708 | (prompt "") | 5708 | (prompt "") |
| 5709 | (str (pr-f-read-string (format fmt-prompt prompt mess) "1" nil "1")) | 5709 | (str (pr-f-read-string (format fmt-prompt prompt mess) "1" nil "1")) |
| 5710 | int) | 5710 | int) |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f29051ab0b0..5ff256e5f8f 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -1778,7 +1778,7 @@ Pop up the buffer containing MARKER and scroll to MARKER if we ask the user." | |||
| 1778 | marker) | 1778 | marker) |
| 1779 | (let ((name (expand-file-name | 1779 | (let ((name (expand-file-name |
| 1780 | (read-file-name | 1780 | (read-file-name |
| 1781 | (format "Find this %s in: (default %s) " | 1781 | (format "Find this %s in (default %s): " |
| 1782 | compilation-error filename) | 1782 | compilation-error filename) |
| 1783 | spec-dir filename t)))) | 1783 | spec-dir filename t)))) |
| 1784 | (if (file-directory-p name) | 1784 | (if (file-directory-p name) |
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index 54b4cda9d18..ea87dce591f 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -284,7 +284,7 @@ With a prefix arg, set the buffer-local value instead. | |||
| 284 | When you find a tag with \\[find-tag], the buffer it finds the tag | 284 | When you find a tag with \\[find-tag], the buffer it finds the tag |
| 285 | in is given a local value of this variable which is the name of the tags | 285 | in is given a local value of this variable which is the name of the tags |
| 286 | file the tag was in." | 286 | file the tag was in." |
| 287 | (interactive (list (read-file-name "Visit tags table: (default TAGS) " | 287 | (interactive (list (read-file-name "Visit tags table (default TAGS): " |
| 288 | default-directory | 288 | default-directory |
| 289 | (expand-file-name "TAGS" | 289 | (expand-file-name "TAGS" |
| 290 | default-directory) | 290 | default-directory) |
| @@ -590,7 +590,7 @@ Returns t if it visits a tags table, or nil if there are no more in the list." | |||
| 590 | (car list)) | 590 | (car list)) |
| 591 | ;; Finally, prompt the user for a file name. | 591 | ;; Finally, prompt the user for a file name. |
| 592 | (expand-file-name | 592 | (expand-file-name |
| 593 | (read-file-name "Visit tags table: (default TAGS) " | 593 | (read-file-name "Visit tags table (default TAGS): " |
| 594 | default-directory | 594 | default-directory |
| 595 | "TAGS" | 595 | "TAGS" |
| 596 | t)))))) | 596 | t)))))) |
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el index 47b36db6539..b84fa87a0de 100644 --- a/lisp/progmodes/pascal.el +++ b/lisp/progmodes/pascal.el | |||
| @@ -1470,7 +1470,7 @@ The default is a name found in the buffer around point." | |||
| 1470 | default "")) | 1470 | default "")) |
| 1471 | (label (if (not (string= default "")) | 1471 | (label (if (not (string= default "")) |
| 1472 | ;; Do completion with default | 1472 | ;; Do completion with default |
| 1473 | (completing-read (concat "Label: (default " default ") ") | 1473 | (completing-read (concat "Label (default " default "): ") |
| 1474 | 'pascal-comp-defun nil t "") | 1474 | 'pascal-comp-defun nil t "") |
| 1475 | ;; There is no default value. Complete without it | 1475 | ;; There is no default value. Complete without it |
| 1476 | (completing-read "Label: " | 1476 | (completing-read "Label: " |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index 94f1f5839a2..fc91e55a746 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -4663,7 +4663,7 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th | |||
| 4663 | (let* ((name (concat (file-name-nondirectory (or (buffer-file-name) | 4663 | (let* ((name (concat (file-name-nondirectory (or (buffer-file-name) |
| 4664 | (buffer-name))) | 4664 | (buffer-name))) |
| 4665 | ".ps")) | 4665 | ".ps")) |
| 4666 | (prompt (format "Save PostScript to file: (default %s) " name)) | 4666 | (prompt (format "Save PostScript to file (default %s): " name)) |
| 4667 | (res (read-file-name prompt default-directory name nil))) | 4667 | (res (read-file-name prompt default-directory name nil))) |
| 4668 | (while (cond ((file-directory-p res) | 4668 | (while (cond ((file-directory-p res) |
| 4669 | (ding) | 4669 | (ding) |
diff --git a/lisp/rect.el b/lisp/rect.el index d7ae6592f74..a7a863e204b 100644 --- a/lisp/rect.el +++ b/lisp/rect.el | |||
| @@ -332,7 +332,7 @@ Called from a program, takes three args; START, END and STRING." | |||
| 332 | (list | 332 | (list |
| 333 | (region-beginning) | 333 | (region-beginning) |
| 334 | (region-end) | 334 | (region-end) |
| 335 | (read-string (format "String rectangle (default `%s'): " | 335 | (read-string (format "String rectangle (default %s): " |
| 336 | (or (car string-rectangle-history) "")) | 336 | (or (car string-rectangle-history) "")) |
| 337 | nil 'string-rectangle-history | 337 | nil 'string-rectangle-history |
| 338 | (car string-rectangle-history))))) | 338 | (car string-rectangle-history))))) |
| @@ -353,7 +353,7 @@ This command does not delete or overwrite any existing text." | |||
| 353 | (list | 353 | (list |
| 354 | (region-beginning) | 354 | (region-beginning) |
| 355 | (region-end) | 355 | (region-end) |
| 356 | (read-string (format "String insert rectangle (default `%s'): " | 356 | (read-string (format "String insert rectangle (default %s): " |
| 357 | (or (car string-rectangle-history) "")) | 357 | (or (car string-rectangle-history) "")) |
| 358 | nil 'string-rectangle-history | 358 | nil 'string-rectangle-history |
| 359 | (car string-rectangle-history))))) | 359 | (car string-rectangle-history))))) |
diff --git a/lisp/replace.el b/lisp/replace.el index 33162b02d3c..e2562ed3469 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -907,7 +907,7 @@ If the value is nil, don't highlight the buffer names specially." | |||
| 907 | (input | 907 | (input |
| 908 | (read-from-minibuffer | 908 | (read-from-minibuffer |
| 909 | (if default | 909 | (if default |
| 910 | (format "List lines matching regexp (default `%s'): " | 910 | (format "List lines matching regexp (default %s): " |
| 911 | (query-replace-descr default)) | 911 | (query-replace-descr default)) |
| 912 | "List lines matching regexp: ") | 912 | "List lines matching regexp: ") |
| 913 | nil | 913 | nil |
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el index 990049afff1..8dd5f375daa 100644 --- a/lisp/shadowfile.el +++ b/lisp/shadowfile.el | |||
| @@ -438,7 +438,7 @@ in the cluster." | |||
| 438 | (sit-for 2)) | 438 | (sit-for 2)) |
| 439 | try-regexp)) | 439 | try-regexp)) |
| 440 | ; (username (read-no-blanks-input | 440 | ; (username (read-no-blanks-input |
| 441 | ; (format "Username [default: %s]: " | 441 | ; (format "Username (default %s): " |
| 442 | ; (shadow-get-user primary)) | 442 | ; (shadow-get-user primary)) |
| 443 | ; (if old (or (shadow-cluster-username old) "") | 443 | ; (if old (or (shadow-cluster-username old) "") |
| 444 | ; (user-login-name)))) | 444 | ; (user-login-name)))) |
| @@ -458,7 +458,7 @@ specific hostnames, or names of clusters \(see `shadow-define-cluster')." | |||
| 458 | (name (nth 2 hup)) | 458 | (name (nth 2 hup)) |
| 459 | user site group) | 459 | user site group) |
| 460 | (while (setq site (shadow-read-site)) | 460 | (while (setq site (shadow-read-site)) |
| 461 | (setq user (read-string (format "Username [default %s]: " | 461 | (setq user (read-string (format "Username (default %s): " |
| 462 | (shadow-get-user site))) | 462 | (shadow-get-user site))) |
| 463 | name (read-string "Filename: " name)) | 463 | name (read-string "Filename: " name)) |
| 464 | (setq group (cons (shadow-make-fullname site | 464 | (setq group (cons (shadow-make-fullname site |
diff --git a/lisp/terminal.el b/lisp/terminal.el index 75d0c7acbd7..645d7a6bd6a 100644 --- a/lisp/terminal.el +++ b/lisp/terminal.el | |||
| @@ -1115,7 +1115,7 @@ subprocess started." | |||
| 1115 | (getenv "SHELL") | 1115 | (getenv "SHELL") |
| 1116 | "/bin/sh")) | 1116 | "/bin/sh")) |
| 1117 | (s (read-string | 1117 | (s (read-string |
| 1118 | (format "Run program in emulator: (default %s) " | 1118 | (format "Run program in emulator (default %s): " |
| 1119 | default-s)))) | 1119 | default-s)))) |
| 1120 | (if (equal s "") | 1120 | (if (equal s "") |
| 1121 | (list default-s '()) | 1121 | (list default-s '()) |
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index c3340d6fd37..c9fcd01d018 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el | |||
| @@ -2863,9 +2863,9 @@ Returns a list of strings." | |||
| 2863 | "Read any extra arguments for figlet." | 2863 | "Read any extra arguments for figlet." |
| 2864 | (interactive) | 2864 | (interactive) |
| 2865 | (let* ((avail-fonts (artist-figlet-get-font-list)) | 2865 | (let* ((avail-fonts (artist-figlet-get-font-list)) |
| 2866 | (font (completing-read (concat "Select font: (default " | 2866 | (font (completing-read (concat "Select font (default " |
| 2867 | artist-figlet-default-font | 2867 | artist-figlet-default-font |
| 2868 | ") ") | 2868 | "): ") |
| 2869 | (mapcar | 2869 | (mapcar |
| 2870 | (lambda (font) (cons font font)) | 2870 | (lambda (font) (cons font font)) |
| 2871 | avail-fonts)))) | 2871 | avail-fonts)))) |
diff --git a/lisp/textmodes/refer.el b/lisp/textmodes/refer.el index 82f06576c1a..9fa0afe2046 100644 --- a/lisp/textmodes/refer.el +++ b/lisp/textmodes/refer.el | |||
| @@ -339,7 +339,7 @@ found on the last refer-find-entry or refer-find-next-entry." | |||
| 339 | (list (expand-file-name | 339 | (list (expand-file-name |
| 340 | (if (eq major-mode 'bibtex-mode) | 340 | (if (eq major-mode 'bibtex-mode) |
| 341 | (read-file-name | 341 | (read-file-name |
| 342 | (format ".bib file: (default %s) " | 342 | (format ".bib file (default %s): " |
| 343 | (file-name-nondirectory | 343 | (file-name-nondirectory |
| 344 | (buffer-file-name))) | 344 | (buffer-file-name))) |
| 345 | (file-name-directory (buffer-file-name)) | 345 | (file-name-directory (buffer-file-name)) |
diff --git a/lisp/textmodes/reftex-auc.el b/lisp/textmodes/reftex-auc.el index 855bab7721c..65815dd2885 100644 --- a/lisp/textmodes/reftex-auc.el +++ b/lisp/textmodes/reftex-auc.el | |||
| @@ -67,8 +67,8 @@ What is being used depends upon `reftex-plug-into-AUCTeX'." | |||
| 67 | (setq items (list (or (reftex-citation t) "")))) | 67 | (setq items (list (or (reftex-citation t) "")))) |
| 68 | (t | 68 | (t |
| 69 | (setq prompt (concat (if optional "(Optional) " "") | 69 | (setq prompt (concat (if optional "(Optional) " "") |
| 70 | (if prompt prompt "Add key") | 70 | (if prompt prompt "Add key") |
| 71 | ": (default none) ")) | 71 | " (default none): ")) |
| 72 | (setq items (multi-prompt "," t prompt (LaTeX-bibitem-list))))) | 72 | (setq items (multi-prompt "," t prompt (LaTeX-bibitem-list))))) |
| 73 | (apply 'LaTeX-add-bibitems items) | 73 | (apply 'LaTeX-add-bibitems items) |
| 74 | (TeX-argument-insert (mapconcat 'identity items ",") optional))) | 74 | (TeX-argument-insert (mapconcat 'identity items ",") optional))) |
| @@ -79,8 +79,8 @@ What is being used depends upon `reftex-plug-into-AUCTeX'." | |||
| 79 | This is the name of an index, not the entry." | 79 | This is the name of an index, not the entry." |
| 80 | (let (tag taglist) | 80 | (let (tag taglist) |
| 81 | (setq prompt (concat (if optional "(Optional) " "") | 81 | (setq prompt (concat (if optional "(Optional) " "") |
| 82 | (if prompt prompt "Index tag") | 82 | (if prompt prompt "Index tag") |
| 83 | ": (default none) ")) | 83 | " (default none): ")) |
| 84 | (if (and reftex-support-index (reftex-plug-flag 4)) | 84 | (if (and reftex-support-index (reftex-plug-flag 4)) |
| 85 | ;; Use RefTeX completion | 85 | ;; Use RefTeX completion |
| 86 | (progn | 86 | (progn |
diff --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el index fc4b0495033..c987ed830b8 100644 --- a/lisp/textmodes/reftex-index.el +++ b/lisp/textmodes/reftex-index.el | |||
| @@ -166,13 +166,20 @@ will prompt for other arguments." | |||
| 166 | ;; OPT-ARGS is a list of optional argument indices, as given by | 166 | ;; OPT-ARGS is a list of optional argument indices, as given by |
| 167 | ;; `reftex-parse-args'. | 167 | ;; `reftex-parse-args'. |
| 168 | (let* ((opt (and (integerp itag) (member itag opt-args))) | 168 | (let* ((opt (and (integerp itag) (member itag opt-args))) |
| 169 | (index-tags (cdr (assq 'index-tags | 169 | (index-tags (cdr (assq 'index-tags |
| 170 | (symbol-value reftex-docstruct-symbol)))) | 170 | (symbol-value reftex-docstruct-symbol)))) |
| 171 | (default (reftex-default-index)) | 171 | (default (reftex-default-index)) |
| 172 | (prompt (concat "Index tag" | 172 | (prompt (concat "Index tag" |
| 173 | (if default (format " (default: %s)" default) "") | 173 | (if (or opt default) |
| 174 | (if opt " (optional)" "") ": ")) | 174 | (format " (%s): " |
| 175 | (tag (completing-read prompt (mapcar 'list index-tags)))) | 175 | (concat |
| 176 | (if opt "optional" "") | ||
| 177 | (if default | ||
| 178 | (concat (if opt ", " "") | ||
| 179 | (format "default %s" default)) | ||
| 180 | ""))) | ||
| 181 | ": "))) | ||
| 182 | (tag (completing-read prompt (mapcar 'list index-tags)))) | ||
| 176 | (if (and default (equal tag "")) (setq tag default)) | 183 | (if (and default (equal tag "")) (setq tag default)) |
| 177 | (reftex-update-default-index tag) | 184 | (reftex-update-default-index tag) |
| 178 | tag)) | 185 | tag)) |
diff --git a/lisp/vc-mcvs.el b/lisp/vc-mcvs.el index 271cd01cbfb..b52bc797dda 100644 --- a/lisp/vc-mcvs.el +++ b/lisp/vc-mcvs.el | |||
| @@ -225,7 +225,7 @@ the Meta-CVS command (in that order)." | |||
| 225 | ;; Make sure the `mcvs add' will not fire up the CVSEDITOR | 225 | ;; Make sure the `mcvs add' will not fire up the CVSEDITOR |
| 226 | ;; to add a rule for the given file's extension. | 226 | ;; to add a rule for the given file's extension. |
| 227 | (when (and ext (not (assoc ext types))) | 227 | (when (and ext (not (assoc ext types))) |
| 228 | (let ((type (completing-read "Type to use [default]: " | 228 | (let ((type (completing-read "Type to use (default): " |
| 229 | '("default" "name-only" "keep-old" | 229 | '("default" "name-only" "keep-old" |
| 230 | "binary" "value-only") | 230 | "binary" "value-only") |
| 231 | nil t nil nil "default"))) | 231 | nil t nil nil "default"))) |
diff --git a/lisp/vc.el b/lisp/vc.el index 665bb3d31e7..a1b446ab368 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1707,7 +1707,7 @@ versions of all registered files in or below it." | |||
| 1707 | (interactive | 1707 | (interactive |
| 1708 | (let ((file (expand-file-name | 1708 | (let ((file (expand-file-name |
| 1709 | (read-file-name (if buffer-file-name | 1709 | (read-file-name (if buffer-file-name |
| 1710 | "File or dir to diff: (default visited file) " | 1710 | "File or dir to diff (default visited file): " |
| 1711 | "File or dir to diff: ") | 1711 | "File or dir to diff: ") |
| 1712 | default-directory buffer-file-name t))) | 1712 | default-directory buffer-file-name t))) |
| 1713 | (rev1-default nil) (rev2-default nil)) | 1713 | (rev1-default nil) (rev2-default nil)) |
| @@ -1728,14 +1728,14 @@ versions of all registered files in or below it." | |||
| 1728 | ;; construct argument list | 1728 | ;; construct argument list |
| 1729 | (list file | 1729 | (list file |
| 1730 | (read-string (if rev1-default | 1730 | (read-string (if rev1-default |
| 1731 | (concat "Older version: (default " | 1731 | (concat "Older version (default " |
| 1732 | rev1-default ") ") | 1732 | rev1-default "): ") |
| 1733 | "Older version: ") | 1733 | "Older version: ") |
| 1734 | nil nil rev1-default) | 1734 | nil nil rev1-default) |
| 1735 | (read-string (if rev2-default | 1735 | (read-string (if rev2-default |
| 1736 | (concat "Newer version: (default " | 1736 | (concat "Newer version (default " |
| 1737 | rev2-default ") ") | 1737 | rev2-default "): ") |
| 1738 | "Newer version (default: current source): ") | 1738 | "Newer version (default current source): ") |
| 1739 | nil nil rev2-default)))) | 1739 | nil nil rev2-default)))) |
| 1740 | (if (file-directory-p file) | 1740 | (if (file-directory-p file) |
| 1741 | ;; recursive directory diff | 1741 | ;; recursive directory diff |
| @@ -1998,7 +1998,7 @@ See Info node `Merging'." | |||
| 1998 | (error "Merge aborted")))) | 1998 | (error "Merge aborted")))) |
| 1999 | (setq first-version | 1999 | (setq first-version |
| 2000 | (read-string (concat "Branch or version to merge from " | 2000 | (read-string (concat "Branch or version to merge from " |
| 2001 | "(default: news on current branch): "))) | 2001 | "(default news on current branch): "))) |
| 2002 | (if (string= first-version "") | 2002 | (if (string= first-version "") |
| 2003 | (if (not (vc-find-backend-function backend 'merge-news)) | 2003 | (if (not (vc-find-backend-function backend 'merge-news)) |
| 2004 | (error "Sorry, merging news is not implemented for %s" backend) | 2004 | (error "Sorry, merging news is not implemented for %s" backend) |
| @@ -3080,7 +3080,7 @@ colors. `vc-annotate-background' specifies the background color." | |||
| 3080 | (bfn buffer-file-name) | 3080 | (bfn buffer-file-name) |
| 3081 | (vc-annotate-version | 3081 | (vc-annotate-version |
| 3082 | (if prefix (read-string | 3082 | (if prefix (read-string |
| 3083 | (format "Annotate from version: (default %s) " rev) | 3083 | (format "Annotate from version (default %s): " rev) |
| 3084 | nil nil rev) | 3084 | nil nil rev) |
| 3085 | rev))) | 3085 | rev))) |
| 3086 | (if display-mode | 3086 | (if display-mode |
| @@ -3088,7 +3088,7 @@ colors. `vc-annotate-background' specifies the background color." | |||
| 3088 | (if prefix | 3088 | (if prefix |
| 3089 | (setq vc-annotate-display-mode | 3089 | (setq vc-annotate-display-mode |
| 3090 | (float (string-to-number | 3090 | (float (string-to-number |
| 3091 | (read-string "Annotate span days: (default 20) " | 3091 | (read-string "Annotate span days (default 20): " |
| 3092 | nil nil "20")))))) | 3092 | nil nil "20")))))) |
| 3093 | (setq temp-buffer-name (format "*Annotate %s (rev %s)*" | 3093 | (setq temp-buffer-name (format "*Annotate %s (rev %s)*" |
| 3094 | (buffer-name) vc-annotate-version)) | 3094 | (buffer-name) vc-annotate-version)) |
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el index 5b801e29831..e87cf288674 100644 --- a/lisp/w32-fns.el +++ b/lisp/w32-fns.el | |||
| @@ -283,7 +283,7 @@ This function is provided for backward compatibility, since | |||
| 283 | (interactive | 283 | (interactive |
| 284 | (list (let ((default locale-coding-system)) | 284 | (list (let ((default locale-coding-system)) |
| 285 | (read-coding-system | 285 | (read-coding-system |
| 286 | (format "Coding system for system calls (default, %s): " | 286 | (format "Coding system for system calls (default %s): " |
| 287 | default) | 287 | default) |
| 288 | default)))) | 288 | default)))) |
| 289 | (check-coding-system coding-system) | 289 | (check-coding-system coding-system) |
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 9c391ab1176..55e50b7faec 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -3018,7 +3018,7 @@ It will read a file name from the minibuffer when invoked." | |||
| 3018 | (abbreviate-file-name | 3018 | (abbreviate-file-name |
| 3019 | (if unbound | 3019 | (if unbound |
| 3020 | (read-file-name prompt) | 3020 | (read-file-name prompt) |
| 3021 | (let ((prompt2 (format "%s (default %s) " prompt value)) | 3021 | (let ((prompt2 (format "%s (default %s): " prompt value)) |
| 3022 | (dir (file-name-directory value)) | 3022 | (dir (file-name-directory value)) |
| 3023 | (file (file-name-nondirectory value)) | 3023 | (file (file-name-nondirectory value)) |
| 3024 | (must-match (widget-get widget :must-match))) | 3024 | (must-match (widget-get widget :must-match))) |
| @@ -3031,7 +3031,7 @@ It will read a file name from the minibuffer when invoked." | |||
| 3031 | ;;; (file (file-name-nondirectory value)) | 3031 | ;;; (file (file-name-nondirectory value)) |
| 3032 | ;;; (menu-tag (widget-apply widget :menu-tag-get)) | 3032 | ;;; (menu-tag (widget-apply widget :menu-tag-get)) |
| 3033 | ;;; (must-match (widget-get widget :must-match)) | 3033 | ;;; (must-match (widget-get widget :must-match)) |
| 3034 | ;;; (answer (read-file-name (concat menu-tag ": (default `" value "') ") | 3034 | ;;; (answer (read-file-name (concat menu-tag " (default " value "): ") |
| 3035 | ;;; dir nil must-match file))) | 3035 | ;;; dir nil must-match file))) |
| 3036 | ;;; (widget-value-set widget (abbreviate-file-name answer)) | 3036 | ;;; (widget-value-set widget (abbreviate-file-name answer)) |
| 3037 | ;;; (widget-setup) | 3037 | ;;; (widget-setup) |
| @@ -3135,10 +3135,10 @@ It will read a directory name from the minibuffer when invoked." | |||
| 3135 | "Read coding-system from minibuffer." | 3135 | "Read coding-system from minibuffer." |
| 3136 | (if (widget-get widget :base-only) | 3136 | (if (widget-get widget :base-only) |
| 3137 | (intern | 3137 | (intern |
| 3138 | (completing-read (format "%s (default %s) " prompt value) | 3138 | (completing-read (format "%s (default %s): " prompt value) |
| 3139 | (mapcar #'list (coding-system-list t)) nil nil nil | 3139 | (mapcar #'list (coding-system-list t)) nil nil nil |
| 3140 | coding-system-history)) | 3140 | coding-system-history)) |
| 3141 | (read-coding-system (format "%s (default %s) " prompt value) value))) | 3141 | (read-coding-system (format "%s (default %s): " prompt value) value))) |
| 3142 | 3142 | ||
| 3143 | (defun widget-coding-system-action (widget &optional event) | 3143 | (defun widget-coding-system-action (widget &optional event) |
| 3144 | (let ((answer | 3144 | (let ((answer |
diff --git a/lisp/woman.el b/lisp/woman.el index 315a0a3bbe5..bc7ec86e4a7 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -1229,7 +1229,7 @@ cache to be re-read." | |||
| 1229 | word-at-point))) | 1229 | word-at-point))) |
| 1230 | (completing-read | 1230 | (completing-read |
| 1231 | (if default | 1231 | (if default |
| 1232 | (format "Manual entry [default: %s]: " default) | 1232 | (format "Manual entry (default %s): " default) |
| 1233 | "Manual entry: ") | 1233 | "Manual entry: ") |
| 1234 | woman-topic-all-completions nil 1 | 1234 | woman-topic-all-completions nil 1 |
| 1235 | nil | 1235 | nil |