[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/files.el,v
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/files.el,v |
Date: |
Wed, 28 May 2008 12:36:17 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Stefan Monnier <monnier> 08/05/28 12:36:15
Index: lisp/files.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/files.el,v
retrieving revision 1.981
retrieving revision 1.982
diff -u -b -r1.981 -r1.982
--- lisp/files.el 22 May 2008 03:09:34 -0000 1.981
+++ lisp/files.el 28 May 2008 12:36:14 -0000 1.982
@@ -4085,7 +4085,10 @@
(setq tempname
(make-temp-name
(expand-file-name "tmp" dir)))
- (write-region (point-min) (point-max)
+ ;; Pass in nil&nil rather than point-min&max
+ ;; cause we're saving the whole buffer.
+ ;; write-region-annotate-functions may use it.
+ (write-region nil nil
tempname nil realname
buffer-file-truename 'excl)
nil)
@@ -4119,7 +4122,10 @@
(let (success)
(unwind-protect
(progn
- (write-region (point-min) (point-max)
+ ;; Pass in nil&nil rather than point-min&max to indicate
+ ;; we're saving the buffer rather than just a region.
+ ;; write-region-annotate-functions may make us of it.
+ (write-region nil nil
buffer-file-name nil t buffer-file-truename)
(setq success t))
;; If we get an error writing the new file, and we made
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Stefan Monnier, 2008/05/02
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Glenn Morris, 2008/05/06
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Michael W. Olson, 2008/05/19
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Michael W. Olson, 2008/05/19
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Michael W. Olson, 2008/05/19
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Glenn Morris, 2008/05/20
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Stefan Monnier, 2008/05/21
- [Emacs-diffs] Changes to emacs/lisp/files.el,v,
Stefan Monnier <=
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Stefan Monnier, 2008/05/28
- [Emacs-diffs] Changes to emacs/lisp/files.el,v, Stefan Monnier, 2008/05/28