aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-08-24 03:15:22 +0000
committerRichard M. Stallman2002-08-24 03:15:22 +0000
commitca3df2d557f9498f0755abecb5a7b9393bb4338f (patch)
treed640374a1062436b2ac41b75f255f7db1f9f0b61 /src
parent8ee8f447ce806ee96763752c351216a0661599d8 (diff)
downloademacs-ca3df2d557f9498f0755abecb5a7b9393bb4338f.tar.gz
emacs-ca3df2d557f9498f0755abecb5a7b9393bb4338f.zip
(decode_env_path): Don't add /: if file name handler
has a `safe-magic' property.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 5d4f24d314b..63a94306e4e 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2226,6 +2226,17 @@ decode_env_path (evarname, defalt)
2226 /* Add /: to the front of the name 2226 /* Add /: to the front of the name
2227 if it would otherwise be treated as magic. */ 2227 if it would otherwise be treated as magic. */
2228 tem = Ffind_file_name_handler (element, Qt); 2228 tem = Ffind_file_name_handler (element, Qt);
2229
2230 /* However, if the handler says "I'm safe",
2231 don't bother adding /:. */
2232 if (SYMBOLP (tem))
2233 {
2234 Lisp_Object prop;
2235 prop = Fget (tem, intern ("safe-magic"));
2236 if (! NILP (prop))
2237 tem = Qnil;
2238 }
2239
2229 if (! NILP (tem)) 2240 if (! NILP (tem))
2230 element = concat2 (build_string ("/:"), element); 2241 element = concat2 (build_string ("/:"), element);
2231 2242