aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/format.el
diff options
context:
space:
mode:
authorLuc Teirlinck2004-03-22 04:43:17 +0000
committerLuc Teirlinck2004-03-22 04:43:17 +0000
commit19e580b4e9e40d3bce53fc39eddfe49a27a995f9 (patch)
tree80914bc94397364f18eac4abe441f20619847408 /lisp/format.el
parent091ec19209584a1e69acfb36410ed71284f574cf (diff)
downloademacs-19e580b4e9e40d3bce53fc39eddfe49a27a995f9.tar.gz
emacs-19e580b4e9e40d3bce53fc39eddfe49a27a995f9.zip
(format-insert-file): Always return a list of two elements,
like insert-file-contents does.
Diffstat (limited to 'lisp/format.el')
-rw-r--r--lisp/format.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/format.el b/lisp/format.el
index 90047e98a6c..09d3e5fa715 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -416,7 +416,7 @@ The optional third and fourth arguments BEG and END specify
416the part of the file to read. 416the part of the file to read.
417 417
418The return value is like the value of `insert-file-contents': 418The return value is like the value of `insert-file-contents':
419a list (ABSOLUTE-FILE-NAME . SIZE)." 419a list (ABSOLUTE-FILE-NAME SIZE)."
420 (interactive 420 (interactive
421 ;; Same interactive spec as write-file, plus format question. 421 ;; Same interactive spec as write-file, plus format question.
422 (let* ((file (read-file-name "Find file: ")) 422 (let* ((file (read-file-name "Find file: "))
@@ -429,7 +429,7 @@ a list (ABSOLUTE-FILE-NAME . SIZE)."
429 (setq size (nth 1 value))) 429 (setq size (nth 1 value)))
430 (if format 430 (if format
431 (setq size (format-decode format size) 431 (setq size (format-decode format size)
432 value (cons (car value) size))) 432 value (list (car value) size)))
433 value)) 433 value))
434 434
435(defun format-read (&optional prompt) 435(defun format-read (&optional prompt)