summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp.el
diff options
context:
space:
mode:
authorAndrew Whatson <whatson@gmail.com>2020-10-10 10:13:26 +0200
committerAndrea Corallo <akrl@sdf.org>2020-10-10 10:29:14 +0200
commit85450f03be6cbb3e09964ce62e1f63875f0848a3 (patch)
tree4ef0649511dfc9077a6275a1b9bc60c4b743793e /lisp/emacs-lisp/comp.el
parentc3bc348f5edefa4231d38b6d3967f0c8f0bb5e6d (diff)
downloademacs-85450f03be6cbb3e09964ce62e1f63875f0848a3.tar.gz
emacs-85450f03be6cbb3e09964ce62e1f63875f0848a3.tar.bz2
emacs-85450f03be6cbb3e09964ce62e1f63875f0848a3.zip
* Fix typo name plus make error homogeneous in `comp-trampoline-compile'
* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix typo renaming `comp-tampoline-compile' -> `comp-trampoline-compile'. Change error to be consistent. (comp-subr-trampoline-install): Use `comp-trampoline-compile'.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r--lisp/emacs-lisp/comp.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 763d44a23e1..0445fc085e1 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2580,7 +2580,7 @@ Return the its filename if found or nil otherwise."
when (file-exists-p filename)
do (cl-return filename)))
-(defun comp-tampoline-compile (subr-name)
+(defun comp-trampoline-compile (subr-name)
"Synthesize and compile a trampoline for SUBR-NAME and return its filename."
(let ((trampoline-sym (comp-trampoline-sym subr-name))
(lambda-list (comp-make-lambda-list-from-subr
@@ -2610,7 +2610,7 @@ Return the its filename if found or nil otherwise."
comp-native-version-dir))
when (file-writable-p f)
do (cl-return f)
- finally (error "Can't find a writable directory in \
+ finally (error "Cannot find suitable directory for output in \
`comp-eln-load-path'")))))
;;;###autoload
@@ -2621,7 +2621,7 @@ Return the its filename if found or nil otherwise."
(let ((trampoline-sym (comp-trampoline-sym subr-name)))
(cl-assert (subr-primitive-p (symbol-function subr-name)))
(load (or (comp-search-trampoline subr-name)
- (comp-tampoline-compile subr-name))
+ (comp-trampoline-compile subr-name))
nil t)
(cl-assert
(subr-native-elisp-p (symbol-function trampoline-sym)))