From 427d38008b2c4ba9349fab31c22fcb0549fe98f4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 16 Nov 2020 19:29:41 -0500 Subject: [PATCH] Overwrite yes-or-no-p instead of advise it + Some snippets libraries assume this instead of the advise, causing errors. + Advising a C function may have implications when its uses are natively compiled. --- core/core-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index 5e030f9a2..23f258abc 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -349,7 +349,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original max-mini-window-height 0.15) ;; Typing yes/no is obnoxious when y/n will do -(advice-add #'yes-or-no-p :override #'y-or-n-p) +(fset #'yes-or-no-p #'y-or-n-p) ;; Try really hard to keep the cursor from getting stuck in the read-only prompt ;; portion of the minibuffer.