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:
parent
8ee8f447ce
commit
ca3df2d557
1 changed files with 11 additions and 0 deletions
11
src/emacs.c
11
src/emacs.c
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue