Add with-file-modes macro, and use it
authorGlenn Morris <rgm@gnu.org>
Wed, 14 May 2014 17:15:15 +0000 (10:15 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 14 May 2014 17:15:15 +0000 (10:15 -0700)
commitd63d883a97e385392a12a5155201417dea7437ec
tree7141dda616156ada1c5935d49dfc9e6915a5857b
parentabad7b05fa544e5dfccf240180c37157dd92ac54
Add with-file-modes macro, and use it

* lisp/subr.el (with-file-modes): New macro.

* lisp/printing.el (pr-save-file-modes):
* lisp/eshell/esh-util.el (eshell-with-file-modes): Make obsolete.

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2):
Add with-file-modes.

* lisp/doc-view.el (doc-view-make-safe-dir):
* lisp/epg.el (epg--start):
* lisp/files.el (locate-user-emacs-file, make-temp-file)
(backup-buffer-copy, move-file-to-trash):
* printing.el (pr-despool-print, pr-call-process, pr-text2ps):
* eshell/esh-util.el (eshell-with-private-file-modes)
(eshell-make-private-directory):
* lisp/net/browse-url.el (browse-url-mosaic):
* lisp/obsolete/mailpost.el (post-mail-send-it):
* lisp/obsolete/pgg-pgp.el (pgg-pgp-verify-region):
* lisp/obsolete/pgg-pgp5.el (pgg-pgp5-verify-region):
* lisp/url/url-util.el (url-make-private-file):
Use with-file-modes.

* doc/lispref/files.texi (Changing Files): Mention with-file-modes.

* etc/NEWS: Mention this.
17 files changed:
doc/lispref/ChangeLog
doc/lispref/files.texi
etc/NEWS
lisp/ChangeLog
lisp/doc-view.el
lisp/emacs-lisp/lisp-mode.el
lisp/epg.el
lisp/eshell/esh-util.el
lisp/files.el
lisp/net/browse-url.el
lisp/obsolete/mailpost.el
lisp/obsolete/pgg-pgp.el
lisp/obsolete/pgg-pgp5.el
lisp/printing.el
lisp/subr.el
lisp/url/ChangeLog
lisp/url/url-util.el