aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Corallo2021-12-28 12:12:16 +0100
committerAndrea Corallo2022-01-17 11:54:52 +0100
commit9e64aeff40872e5080fa04015234103cb9bcf3bf (patch)
treef87cdd9de18785d34537a962eda38e20f3269ae7
parente488601849627c53b1638fbab1d115518e0ee794 (diff)
downloademacs-9e64aeff40872e5080fa04015234103cb9bcf3bf.tar.gz
emacs-9e64aeff40872e5080fa04015234103cb9bcf3bf.zip
* Fix native comp for non trivial function names (bug#52833)
* lisp/emacs-lisp/comp.el (comp-c-func-name): Fix native compilation for functions with function names containing non trivial characters (bug#52833). This commit is the backport of e7699bf290. Do not merge to master
-rw-r--r--lisp/emacs-lisp/comp.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 2ced6277add..a363bed3642 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -1181,7 +1181,9 @@ clashes."
1181 for i across orig-name 1181 for i across orig-name
1182 for byte = (format "%x" i) 1182 for byte = (format "%x" i)
1183 do (aset str j (aref byte 0)) 1183 do (aset str j (aref byte 0))
1184 (aset str (1+ j) (aref byte 1)) 1184 (aset str (1+ j) (if (length> byte 1)
1185 (aref byte 1)
1186 ?\_))
1185 finally return str)) 1187 finally return str))
1186 (human-readable (string-replace 1188 (human-readable (string-replace
1187 "-" "_" orig-name)) 1189 "-" "_" orig-name))