aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-03-22 04:43:17 +0000
committerLuc Teirlinck2004-03-22 04:43:17 +0000
commit19e580b4e9e40d3bce53fc39eddfe49a27a995f9 (patch)
tree80914bc94397364f18eac4abe441f20619847408
parent091ec19209584a1e69acfb36410ed71284f574cf (diff)
downloademacs-19e580b4e9e40d3bce53fc39eddfe49a27a995f9.tar.gz
emacs-19e580b4e9e40d3bce53fc39eddfe49a27a995f9.zip
(format-insert-file): Always return a list of two elements,
like insert-file-contents does.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/format.el4
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 68faae1073a..ad5a98af8cb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12004-03-21 Luc Teirlinck <teirllm@auburn.edu>
2
3 * format.el (format-insert-file): Always return a list of two
4 elements, like insert-file-contents does.
5
12004-03-21 Andre Spiegel <spiegel@gnu.org> 62004-03-21 Andre Spiegel <spiegel@gnu.org>
2 7
3 * vc.el Add new optional BUFFER argument to vc-BACKEND-print-log 8 * vc.el Add new optional BUFFER argument to vc-BACKEND-print-log
@@ -7,7 +12,7 @@
7 (vc-version-diff, vc-diff-internal): Doc fixes. 12 (vc-version-diff, vc-diff-internal): Doc fixes.
8 13
9 * vc-hooks.el (vc-default-workfile-unchanged-p): If the 14 * vc-hooks.el (vc-default-workfile-unchanged-p): If the
10 implementation supports it, let diff output go to *vc*, 15 implementation supports it, let diff output go to *vc*,
11 not *vc-diff*, since this is an internal call. 16 not *vc-diff*, since this is an internal call.
12 17
13 * vc-cvs.el (vc-cvs-print-log, vc-cvs-diff): Add optional BUFFER 18 * vc-cvs.el (vc-cvs-print-log, vc-cvs-diff): Add optional BUFFER
@@ -16,7 +21,7 @@
16 * vc-rcs.el (vc-rcs-print-log, vc-rcs-diff): Likewise. 21 * vc-rcs.el (vc-rcs-print-log, vc-rcs-diff): Likewise.
17 22
18 * vc-sccs.el (vc-sccs-print-log, vc-sccs-diff): Likewise. 23 * vc-sccs.el (vc-sccs-print-log, vc-sccs-diff): Likewise.
19 24
202004-03-21 Dave Love <fx@gnu.org> 252004-03-21 Dave Love <fx@gnu.org>
21 26
22 * progmodes/cfengine.el (cfengine-mode): Set 27 * progmodes/cfengine.el (cfengine-mode): Set
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)