Make display-buffer-alist regexps case-sensitive #2619

This commit is contained in:
Henrik Lissner 2020-02-28 21:55:34 -05:00
parent 88dd15e204
commit 86e03c04ba
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -26,6 +26,15 @@
;;
;;; Core functions
(defadvice! +popup--make-case-sensitive-a (orig-fn &rest args)
"Make regexps in `display-buffer-alist' case-sensitive.
To reduce fewer edge cases and improve performance when `display-buffer-alist'
grows larger."
:around #'display-buffer-assq-regexp
(let (case-fold-search)
(apply orig-fn args)))
;; Don't try to resize popup windows
(advice-add #'balance-windows :around #'+popup-save-a)