]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/lread.c (Fload): Fix for manual eln load.
authorAndrea Corallo <akrl@sdf.org>
Mon, 31 Aug 2020 20:21:22 +0000 (22:21 +0200)
committerAndrea Corallo <akrl@sdf.org>
Mon, 31 Aug 2020 20:40:47 +0000 (22:40 +0200)
src/lread.c

index ac5b2838eef888817f9a00d7398893b26960b132..80d36f571c238a81fb29f7e406c1c05c77d11561 100644 (file)
@@ -1328,9 +1328,15 @@ Return t if the file exists and loads successfully.  */)
       /* Reconstruct the .elc filename.  */
       Lisp_Object src_name = Fgethash (Ffile_name_nondirectory (found),
                                       Vcomp_eln_to_el_h, Qnil);
-      if (suffix_p (src_name, "el.gz"))
-       src_name = Fsubstring (src_name, make_fixnum (0), make_fixnum (-3));
-      found_for_hist = concat2 (src_name, build_string ("c"));
+      if (NILP (src_name))
+       /* Manual eln load.  */
+       found_for_hist = found;
+      else
+       {
+         if (suffix_p (src_name, "el.gz"))
+           src_name = Fsubstring (src_name, make_fixnum (0), make_fixnum (-3));
+         found_for_hist = concat2 (src_name, build_string ("c"));
+       }
     }
   else
     found_for_hist = found;