mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
Add inhibit-remote-files and without-remote-files
* doc/emacs/files.texi (Remote Files): Do not document tramp-mode any longer. Describe inhibit-remote-files instead. * doc/lispref/files.texi (Magic File Names): Add without-remote-files. * doc/misc/tramp.texi (Frequently Asked Questions): Do not document tramp-mode any longer. Describe inhibit-remote-files and without-remote-files instead. * etc/NEWS: Add inhibit-remote-files and without-remote-files. Fix typos. * lisp/net/tramp.el (inhibit-remote-files): New defun. (without-remote-files): New defmacro. * test/lisp/net/tramp-archive-tests.el (tramp-archive-test49-without-remote-files): * test/lisp/net/tramp-tests.el (tramp-test49-without-remote-files): New tests. (tramp-test50-unload): Rename.
This commit is contained in:
parent
b6207ee4dc
commit
9069699795
7 changed files with 109 additions and 19 deletions
|
|
@ -3698,6 +3698,17 @@ between consecutive checks. For example:
|
|||
@end example
|
||||
@end defopt
|
||||
|
||||
@defmac without-remote-files body@dots{}
|
||||
The @code{without-remote-files} macro evaluates the @var{body} forms
|
||||
with deactivated file name handlers for remote files. Those file
|
||||
names would be handled literally.
|
||||
|
||||
The macro should be used only in forms where it is obvious, that
|
||||
remote files cannot appear or where it is intended not to handle
|
||||
remote file names. It also reduces checks with
|
||||
@code{file-name-handler-alist}, resulting in more performant code.
|
||||
@end defmac
|
||||
|
||||
@node Format Conversion
|
||||
@section File Format Conversion
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue