summaryrefslogtreecommitdiff
path: root/lisp/format.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/format.el')
-rw-r--r--lisp/format.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/format.el b/lisp/format.el
index 39aa5c5457d..2c368b8f9c7 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -139,6 +139,7 @@ MODE-FN, if specified, is called when visiting a file with that format.
PRESERVE, if non-nil, means that `format-write-file' should not remove
this format from `buffer-file-format'.")
+;; Autoload if this file no longer dumped.
;;;###autoload
(put 'format-alist 'risky-local-variable t)
@@ -320,7 +321,7 @@ If the format is not specified, attempt a regexp-based guess.
Set `buffer-file-format' to the format used, and call any
format-specific mode functions."
(interactive
- (list (format-read "Translate buffer from format (default guess): ")))
+ (list (format-read (format-prompt "Translate buffer from format" "guess"))))
(save-excursion
(goto-char (point-min))
(format-decode format (buffer-size) t)))
@@ -331,7 +332,7 @@ Arg FORMAT is optional; if omitted the format will be determined by looking
for identifying regular expressions at the beginning of the region."
(interactive
(list (region-beginning) (region-end)
- (format-read "Translate region from format (default guess): ")))
+ (format-read (format-prompt "Translate region from format" "guess"))))
(save-excursion
(goto-char from)
(format-decode format (- to from) nil)))