summaryrefslogtreecommitdiff
path: root/src/lread.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-04-08 17:11:00 +0000
committerRichard M. Stallman <rms@gnu.org>2003-04-08 17:11:00 +0000
commit4773b8ca2017459333c099838aef1635c4e32fa6 (patch)
tree4702a062d87a89f04b644e5f57c3637dc82d712f /src/lread.c
parentcf6d23577d6fdfade2979f953745733b70c4a0bd (diff)
downloademacs-4773b8ca2017459333c099838aef1635c4e32fa6.tar.gz
emacs-4773b8ca2017459333c099838aef1635c4e32fa6.tar.bz2
emacs-4773b8ca2017459333c099838aef1635c4e32fa6.zip
(openp): Get the Qfile_exists_p handler for STRING, not FN.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c
index dfbbfeaad1e..e4663e0eb89 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -1121,8 +1121,8 @@ openp (path, str, suffixes, storeptr, predicate)
handler = Ffind_file_name_handler (filename, Qfile_exists_p);
It's not clear why that was the case and it breaks things like
(load "/bar.el") where the file is actually "/bar.el.gz". */
- handler = Ffind_file_name_handler (filename, Qfile_exists_p);
string = build_string (fn);
+ handler = Ffind_file_name_handler (string, Qfile_exists_p);
if ((!NILP (handler) || !NILP (predicate)) && !NATNUMP (predicate))
{
if (NILP (predicate))