diff options
Diffstat (limited to 'lisp/faces.el')
-rw-r--r-- | lisp/faces.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 089cb889090..47f7f3f0f37 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -2289,7 +2289,9 @@ If you set `term-file-prefix' to nil, this function does nothing." (let ((file (locate-library (concat term-file-prefix type)))) (and file (or (assoc file load-history) - (load (file-name-sans-extension file) + (load (replace-regexp-in-string + "\\.el\\(\\.gz\\)?\\'" "" + file) t t))))) type) ;; Next, try to find a matching initialization function, and call it. |