diff options
| author | Luc Teirlinck | 2004-03-22 04:43:17 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-03-22 04:43:17 +0000 |
| commit | 19e580b4e9e40d3bce53fc39eddfe49a27a995f9 (patch) | |
| tree | 80914bc94397364f18eac4abe441f20619847408 /lisp/format.el | |
| parent | 091ec19209584a1e69acfb36410ed71284f574cf (diff) | |
| download | emacs-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.el | 4 |
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 | |||
| 416 | the part of the file to read. | 416 | the part of the file to read. |
| 417 | 417 | ||
| 418 | The return value is like the value of `insert-file-contents': | 418 | The return value is like the value of `insert-file-contents': |
| 419 | a list (ABSOLUTE-FILE-NAME . SIZE)." | 419 | a 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) |