From a9b78ac918df991716de3f84a95db91bb4df44b6 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Sat, 20 Sep 2025 17:58:04 +0200 Subject: Update README --- README.org | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.org b/README.org index f22fc5f..fc7517d 100644 --- a/README.org +++ b/README.org @@ -288,11 +288,11 @@ personal configuration. (list (cape-capf-predicate #'elisp-completion-at-point #'ignore-elisp-keywords))) -;; Example 7: Sanitize the `pcomplete-completions-at-point' Capf. The Capf has -;; undesired side effects on Emacs 28. These advices are not needed anymore. -(when (< emacs-major-version 29) - (advice-add 'pcomplete-completions-at-point :around #'cape-wrap-silent) - (advice-add 'pcomplete-completions-at-point :around #'cape-wrap-purify)) +;; Example 7: Sanitize broken Capfs. Catch errors with `cape-wrap-silent' or +;; make sure that the Capf does not modify the buffer itself. +(advice-add 'dabbrev-capf :around #'cape-wrap-silent) +(advice-add 'pcomplete-completions-at-point :around #'cape-wrap-silent) ;; Was necessary on Emacs 28 +(advice-add 'pcomplete-completions-at-point :around #'cape-wrap-purify) ;; Was necessary on Emacs 28 #+end_src * Contributions -- cgit v1.0