projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e31facd
)
* Fix native comp for non trivial function names (bug#52833)
author
Andrea Corallo
<akrl@sdf.org>
Tue, 28 Dec 2021 11:12:16 +0000
(12:12 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Tue, 28 Dec 2021 14:59:32 +0000
(15:59 +0100)
* lisp/emacs-lisp/comp.el (comp-c-func-name): Fix native compilation
for functions with function names containing non trivial
characters (bug#52833).
lisp/emacs-lisp/comp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/comp.el
b/lisp/emacs-lisp/comp.el
index b51224088f1afefa5b5da382a4ffeef76c8c9a27..ea52aba5d32f45820904fe29fce2cea1cd402766 100644
(file)
--- a/
lisp/emacs-lisp/comp.el
+++ b/
lisp/emacs-lisp/comp.el
@@
-1181,7
+1181,9
@@
clashes."
for i across orig-name
for byte = (format "%x" i)
do (aset str j (aref byte 0))
- (aset str (1+ j) (aref byte 1))
+ (aset str (1+ j) (if (length> byte 1)
+ (aref byte 1)
+ ?\_))
finally return str))
(human-readable (string-replace
"-" "_" orig-name))