diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-08-20 18:03:15 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-08-20 18:03:15 +0200 |
| commit | 52ffb25a78a74c14d7f5819ba12bb9244c181894 (patch) | |
| tree | 0e5d300fe8396cf10404bd9ee70198e7c919ff9b | |
| parent | 29b908f48e0fd5b85951bd6e73546ee833d64d59 (diff) | |
Disable cycling for cape-symbol
| -rw-r--r-- | cape.el | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -458,7 +458,9 @@ STATUS is the exit status." If INTERACTIVE is nil the function acts like a Capf." (interactive (list t)) (if interactive - (cape-interactive #'cape-symbol) + ;; No cycling since it breaks the :exit-function. + (let (completion-cycle-threshold) + (cape-interactive #'cape-symbol)) (pcase-let ((`(,beg . ,end) (cape--bounds 'symbol))) (when (eq (char-after beg) ?') (setq beg (1+ beg) end (max beg end))) @@ -661,7 +663,7 @@ INTERACTIVE is nil the function acts like a Capf." If INTERACTIVE is nil the function acts like a Capf." (interactive (list t)) (if interactive - ;; NOTE: Disable cycling since abbreviation replacement breaks it. + ;; No cycling since it breaks the :exit-function. (let (completion-cycle-threshold) (cape-interactive #'cape-abbrev)) (when-let (abbrevs (cape--abbrev-list)) |
