* Fix native disassemble on Windows platforms (bug#65455)
* lisp/emacs-lisp/disass.el (disassemble-internal): Improve regexp.
This commit is contained in:
parent
91d2d8439b
commit
ea5fd6c96b
1 changed files with 4 additions and 7 deletions
|
@ -94,14 +94,11 @@ redefine OBJECT if it is a symbol."
|
||||||
(call-process "objdump" nil (current-buffer) t "-S" eln)
|
(call-process "objdump" nil (current-buffer) t "-S" eln)
|
||||||
(error "Missing eln file for #<subr %s>" name)))
|
(error "Missing eln file for #<subr %s>" name)))
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(re-search-forward (concat "^.*"
|
(re-search-forward (concat "^.*<_?"
|
||||||
(regexp-quote
|
(regexp-quote
|
||||||
(concat "<"
|
(comp-c-func-name
|
||||||
(when (eq system-type 'darwin)
|
(subr-name obj) "F" t))
|
||||||
"_")
|
">:"))
|
||||||
(comp-c-func-name
|
|
||||||
(subr-name obj) "F" t)
|
|
||||||
">:"))))
|
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
||||||
(delete-region (point-min) (point))
|
(delete-region (point-min) (point))
|
||||||
(when (re-search-forward "^.*<.*>:" nil t 2)
|
(when (re-search-forward "^.*<.*>:" nil t 2)
|
||||||
|
|
Loading…
Add table
Reference in a new issue