Use the elisp xref backend in profiler buffers
* lisp/profiler.el (profiler--xref-backend): New function (bug#23455). (profiler-report-mode): Use it to use the elisp xref handler when hitting `M-.' in profiler buffers.
This commit is contained in:
parent
e18a4a08e4
commit
26381d56e2
1 changed files with 3 additions and 0 deletions
|
@ -615,9 +615,12 @@ return it."
|
|||
(profiler-report-render-calltree))
|
||||
buffer))
|
||||
|
||||
(defun profiler--xref-backend () 'elisp)
|
||||
|
||||
(define-derived-mode profiler-report-mode special-mode "Profiler-Report"
|
||||
"Profiler Report Mode."
|
||||
(add-to-invisibility-spec '(profiler . t))
|
||||
(add-hook 'xref-backend-functions #'profiler--xref-backend nil t)
|
||||
(setq buffer-read-only t
|
||||
buffer-undo-list t
|
||||
truncate-lines t))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue