(if (or (eq visit t)
(eq visit nil)
(stringp visit))
- (message "Wrote %d characters to `%s'"
+ (message "Wrote `%s' (%d characters)" buffer-file-name
(cond ((null start) (buffer-size))
((stringp start) (length start))
- (t (- end start)))
- buffer-file-name))))
+ (t (- end start)))))))
(put 'write-region 'epa-file 'epa-file-write-region)
(defun epa-file-select-keys ()
inhibit-file-name-handlers)
inhibit-file-name-handlers)))
(write-region start end filename t 'no-message)
- (message "Appended %d characters to `%s'" (- end start) filename)))
+ (message "Appended to `%s' (%d characters)" filename (- end start))))
(defun mm-write-region (start end filename &optional append visit lockname
coding-system inhibit)
(and (or (eq visit t)
(eq visit nil)
(stringp visit))
- (message "Wrote %d characters to `%s'"
+ (message "Wrote `%s' (%d characters)" visit-file
(cond ((null start) (buffer-size))
((stringp start) (length start))
- (t (- end start)))
- visit-file))
+ (t (- end start)))))
;; ensure `last-coding-system-used' has an appropriate value
(setq last-coding-system-used coding-system-used)
(set-buffer-modified-p nil)))
;; ensure `last-coding-system-used' has an appropriate value
(setq last-coding-system-used coding-system-used)
- (ange-ftp-message "Wrote %d characters to `%s'"
+ (ange-ftp-message "Wrote `%s' (%d characters)" abbr
(cond ((null start) (buffer-size))
((stringp start) (length start))
- (t (- end start)))
- abbr)
+ (t (- end start))))
(ange-ftp-add-file-entry filename))
(ange-ftp-real-write-region start end filename append visit))))
;; The end.
(when (or (eq visit t) (null visit) (stringp visit))
- (tramp-message v 0 "Wrote %d characters to `%s'"
+ (tramp-message v 0 "Wrote `%s' (%d characters)" filename
(cond ((null start) (buffer-size))
((stringp start) (length start))
- (t (- end start)))
- filename))
+ (t (- end start)))))
(run-hooks 'tramp-handle-write-region-hook)))
\f
(when need-chown
(tramp-set-file-uid-gid filename uid gid))
(when (or (eq visit t) (null visit) (stringp visit))
- (tramp-message v 0 "Wrote %d characters to `%s'"
+ (tramp-message v 0 "Wrote `%s' (%d characters)" filename
(cond ((null start) (buffer-size))
((stringp start) (length start))
- (t (- end start)))
- filename))
+ (t (- end start)))))
(run-hooks 'tramp-handle-write-region-hook)))))
(defvar tramp-vc-registered-file-names nil
if (!auto_saving && !noninteractive)
{
AUTO_STRING (format, NUMBERP (append)
- ? "Updated %d characters of `%s'"
+ ? "Updated `%s' (%d characters)"
: ! NILP (append)
- ? "Added %d characters to `%s'"
- : "Wrote %d characters to `%s'");
- CALLN (Fmessage, format,
+ ? "Added to `%s' (%d characters)"
+ : "Wrote `%s' (%d characters)");
+ CALLN (Fmessage, format, visit_file,
(STRINGP (start) ? Flength (start)
- : make_number (XINT (end) - XINT (start))),
- visit_file);
+ : make_number (XINT (end) - XINT (start))));
}
return Qnil;
}