diff options
| author | Andrea Corallo | 2020-04-06 20:03:34 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-04-06 20:03:34 +0100 |
| commit | 32a079aef290fdc8913c1ce4e8910e63e6ff6dcc (patch) | |
| tree | 0b3bed0e13b961eaad2960ed9987633c281d9df0 | |
| parent | a04c960a358811b598434c62528d2cac8a2a1cb7 (diff) | |
| download | emacs-32a079aef290fdc8913c1ce4e8910e63e6ff6dcc.tar.gz emacs-32a079aef290fdc8913c1ce4e8910e63e6ff6dcc.zip | |
* lisp/emacs-lisp/comp.el (comp-c-func-name): Fix for M-x disassemble
| -rw-r--r-- | lisp/emacs-lisp/comp.el | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 3f4dba6b1ff..9dc775bb6ac 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el | |||
| @@ -474,14 +474,18 @@ Put PREFIX in front of it." | |||
| 474 | "-" "_" orig-name)) | 474 | "-" "_" orig-name)) |
| 475 | (human-readable (replace-regexp-in-string | 475 | (human-readable (replace-regexp-in-string |
| 476 | (rx (not (any "0-9a-z_"))) "" human-readable))) | 476 | (rx (not (any "0-9a-z_"))) "" human-readable))) |
| 477 | ;; Prevent C namespace conflicts. | 477 | (if comp-ctxt |
| 478 | (cl-loop | 478 | ;; Prevent C namespace conflicts. |
| 479 | with h = (comp-ctxt-funcs-h comp-ctxt) | 479 | (cl-loop |
| 480 | for i from 0 | 480 | with h = (comp-ctxt-funcs-h comp-ctxt) |
| 481 | for c-sym = (concat prefix crypted "_" human-readable "_" | 481 | for i from 0 |
| 482 | (number-to-string i)) | 482 | for c-sym = (concat prefix crypted "_" human-readable "_" |
| 483 | unless (gethash c-sym h) | 483 | (number-to-string i)) |
| 484 | return c-sym))) | 484 | unless (gethash c-sym h) |
| 485 | return c-sym) | ||
| 486 | ;; When called out of a compilation context (ex disassembling) | ||
| 487 | ;; pick the first one. | ||
| 488 | (concat prefix crypted "_" human-readable "_0")))) | ||
| 485 | 489 | ||
| 486 | (defun comp-decrypt-arg-list (x function-name) | 490 | (defun comp-decrypt-arg-list (x function-name) |
| 487 | "Decript argument list X for FUNCTION-NAME." | 491 | "Decript argument list X for FUNCTION-NAME." |