From da088c622aa6dc3760936b2dd0295bd944c80095 Mon Sep 17 00:00:00 2001 From: Liam Hupfer Date: Sun, 10 Aug 2025 22:07:23 -0500 Subject: [PATCH] gnu: Add emacs-cycle-at-point. * gnu/packages/emacs-xyz.scm (emacs-cycle-at-point): New variable. Change-Id: I73866a7b3ff8fd35daa1ef198ca8aa2847eeecf7 Signed-off-by: jgart --- gnu/packages/emacs-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8cd7182e2ba5351b8a81ee9f1632fa25bdf8487e..77ffc25dfee8ca0ce1c43c47e999644c17169a8a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -37626,6 +37626,38 @@ again to cycle over options. Completion candidates are displayed in the echo area.") (license license:gpl3+)))) +(define-public emacs-cycle-at-point + (package + (name "emacs-cycle-at-point") + (version "0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://codeberg.org/ideasman42/emacs-cycle-at-point") + (commit "83d94733fd8ed64f2ba40f4e1df7ecbfe8260e51"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17h93idzdg5y30q46y5njsvixwlq3isnynym6b6gp3sy50xqgjgs")))) + (build-system emacs-build-system) + (arguments + (list + ;; `make test' assumes recomplete repository is in a sibling directory. + #:test-command + #~(list "emacs" "-Q" "--batch" + "-l" "tests/cycle-at-point-tests" + "-f" "ert-run-tests-batch-and-exit"))) + (propagated-inputs (list emacs-recomplete)) + (home-page "https://codeberg.org/ideasman42/emacs-cycle-at-point") + (synopsis "Immediately cycle text at the cursor, without prompting") + (description + "@code{cycle-at-point} provides commands to cycle text at the cursor. +Repeatedly invoke the command to cycle over available options. Completion +candidates are displayed in the echo area. Users can define their own +completion lists. Common use cases include true and false literals, +arithmetic operators, and months of the year.") + (license license:gpl3+))) + (define-public emacs-ediprolog (package (name "emacs-ediprolog")