aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Albinus2014-11-05 12:23:10 +0100
committerMichael Albinus2014-11-05 12:23:10 +0100
commit076582fde300472131422818d72e814e516c91ed (patch)
treef5beda90d4c1b59d5339ef177f0477c266514e4f /src
parent58064b4da2835acb24d0f68021c84102e0fb1c0f (diff)
downloademacs-076582fde300472131422818d72e814e516c91ed.tar.gz
emacs-076582fde300472131422818d72e814e516c91ed.zip
* dired.c (Ffile_attributes): Return Qnil, if Fexpand_file_name
raises an error. Fixes: debbugs:18891
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/dired.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f30cad15f02..f7088fce563 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-11-05 Michael Albinus <michael.albinus@gmx.de>
2
3 * dired.c (Ffile_attributes): Return Qnil, if Fexpand_file_name
4 raises an error. (Bug#18891)
5
12014-11-03 Eli Zaretskii <eliz@gnu.org> 62014-11-03 Eli Zaretskii <eliz@gnu.org>
2 7
3 * xdisp.c (Fdump_glyph_matrix, Fdump_frame_glyph_matrix): Doc fix. 8 * xdisp.c (Fdump_glyph_matrix, Fdump_frame_glyph_matrix): Doc fix.
diff --git a/src/dired.c b/src/dired.c
index c2db1f02782..fb536b8a91a 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -909,7 +909,10 @@ so last access time will always be midnight of that day. */)
909 Lisp_Object encoded; 909 Lisp_Object encoded;
910 Lisp_Object handler; 910 Lisp_Object handler;
911 911
912 filename = Fexpand_file_name (filename, Qnil); 912 filename = internal_condition_case_2 (Fexpand_file_name, filename, Qnil,
913 Qt, Fidentity);
914 if (!STRINGP (filename))
915 return Qnil;
913 916
914 /* If the file name has special constructs in it, 917 /* If the file name has special constructs in it,
915 call the corresponding file handler. */ 918 call the corresponding file handler. */