diff options
| author | Andrea Corallo | 2021-12-28 12:12:16 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2022-01-17 11:54:52 +0100 |
| commit | 9e64aeff40872e5080fa04015234103cb9bcf3bf (patch) | |
| tree | f87cdd9de18785d34537a962eda38e20f3269ae7 | |
| parent | e488601849627c53b1638fbab1d115518e0ee794 (diff) | |
| download | emacs-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.el | 4 |
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)) |