Mercurial > emacs
changeset 47019:8ec5fd232f26
(decode_env_path): Don't add /: if file name handler
has a `safe-magic' property.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 24 Aug 2002 03:15:22 +0000 |
parents | 101eb25eab6d |
children | de9a20871faa |
files | src/emacs.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/emacs.c Sat Aug 24 03:14:32 2002 +0000 +++ b/src/emacs.c Sat Aug 24 03:15:22 2002 +0000 @@ -2226,6 +2226,17 @@ /* Add /: to the front of the name if it would otherwise be treated as magic. */ tem = Ffind_file_name_handler (element, Qt); + + /* However, if the handler says "I'm safe", + don't bother adding /:. */ + if (SYMBOLP (tem)) + { + Lisp_Object prop; + prop = Fget (tem, intern ("safe-magic")); + if (! NILP (prop)) + tem = Qnil; + } + if (! NILP (tem)) element = concat2 (build_string ("/:"), element);