summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-09-20 17:58:04 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2025-09-20 17:58:04 +0200
commita9b78ac918df991716de3f84a95db91bb4df44b6 (patch)
tree8b81eb2438d0a873062fcbfe967fd4f460c164ad
parent16abafafe33a930ff2d44dea80f7307a732b69a3 (diff)
Update README
-rw-r--r--README.org10
1 files 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