Mercurial > emacs
changeset 104592:2e9b68642e06
* simple.el (process-file-side-effects): New defvar.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Tue, 25 Aug 2009 08:45:41 +0000 |
parents | ccbbe2522df6 |
children | c6b5e95a3a8d |
files | lisp/simple.el |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/simple.el Tue Aug 25 08:42:25 2009 +0000 +++ b/lisp/simple.el Tue Aug 25 08:45:41 2009 +0000 @@ -2513,6 +2513,17 @@ (when stderr-file (delete-file stderr-file)) (when lc (delete-file lc))))) +(defvar process-file-side-effects t + "Whether a call of `process-file' changes remote files. + +Per default, this variable is always set to `t', meaning that a +call of `process-file' could potentially change any file on a +remote host. When set to `nil', a file handler could optimize +its behaviour with respect to remote file attributes caching. + +This variable should never be changed by `setq'. Instead of, it +shall be set only by let-binding.") + (defun start-file-process (name buffer program &rest program-args) "Start a program in a subprocess. Return the process object for it.