Last active
August 16, 2023 23:09
-
-
Save farynaio/651f102a616d34811ae2ed9da2ad4abb to your computer and use it in GitHub Desktop.
Enhanced edebug-on-entry which sets function symbol on point as initial suggestion.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun afa/edebug-on-entry-on-point (&optional flag) | |
"Enhanced `edebug-on-entry'. | |
ets function symbol on point as initial suggestion." | |
(interactive "P") | |
(let ((function-name | |
(intern | |
(funcall | |
completing-read-function | |
"Edebug on entry to: " | |
(mapcar 'symbol-name (apropos-internal ".*")) | |
'commandp | |
t | |
(symbol-name (symbol-at-point)))))) | |
(edebug-on-entry function-name flag))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment