1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(decode_env_path): Don't add /: if file name handler

has a `safe-magic' property.
This commit is contained in:
Richard M. Stallman 2002-08-24 03:15:22 +00:00
parent 8ee8f447ce
commit ca3df2d557

View file

@ -2226,6 +2226,17 @@ decode_env_path (evarname, defalt)
/* 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);