From: Mark Wooding Date: Mon, 29 Apr 2024 10:00:03 +0000 (+0100) Subject: el/dot-emacs.el: Help `gud-find-expr' to not crash if prompts are read-only. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/e8bcfd6a55b4b5edfac39069eaf26139817673c1 el/dot-emacs.el: Help `gud-find-expr' to not crash if prompts are read-only. Silly rabbit. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 5475b35..1fc5263 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -5507,6 +5507,11 @@ (defadvice gdb-set-window-buffer "Don't make windows dedicated. Seriously." (set-window-dedicated-p (or window (selected-window)) nil)) +(defadvice gud-find-expr + (around mdw-inhibit-read-only (&rest args) compile activate) + "Inhibit errors caused by my setting of `comint-prompt-read-only'." + (let ((inhibit-read-only t)) ad-do-it)) + ;;;-------------------------------------------------------------------------- ;;; SQL stuff.