diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 11 |
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 | ||