From 9089393255690691e33ff53027e3d0731cab2217 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Mon, 6 Oct 2025 10:33:03 +0200 Subject: [PATCH] gnu: emacs-popwin: Update to 1.0.2-0.213e462. * gnu/packages/emacs-xyz.scm (emacs-popwin): Update to 1.0.2-0.213e462. [arguments]<#:phases>: Add skip-tests. <#:test-command>: Set. <#:tests?>: Remove. Change-Id: Ia2f1dd2cdb01c82b9c3e373897733a4b611c2b6c Signed-off-by: Liliana Marie Prikler --- gnu/packages/emacs-xyz.scm | 78 +++++++++++++++++++++++++------------- 1 file changed, 52 insertions(+), 26 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index d17b18818df..d851b471cde 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17673,32 +17673,58 @@ functions to assist in reviewing changes on files.") (license license:gpl3+))) (define-public emacs-popwin - (package - (name "emacs-popwin") - (version "1.0.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/emacsorphanage/popwin") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1x1iimzbwb5izbia6aj6xv49jybzln2qxm5ybcrcq7xync5swiv1")))) - (build-system emacs-build-system) - (arguments - (list - #:tests? #f ; requires an attached terminal - )) - (native-inputs - (list emacs-ert-runner)) - (home-page "https://github.com/emacsorphanage/popwin") - (synopsis "Popup window manager for Emacs") - (description - "This package provides utilities for treating certain windows as @dfn{pop -up windows}, which close automatically when quitting a command or selecting -another window.") - (license license:gpl3+))) + ;; Last release is from 2020. + (let ((commit "213e462c4aa23c9aa78105b78a8fb27c8bbc3c9c") + (revision "0")) + (package + (name "emacs-popwin") + (version (git-version "1.0.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emacsorphanage/popwin") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "13gn96h0f4z9g1dg65hiq24srjq75jnndd0khzx8j2xv7d5fmmyk")))) + (build-system emacs-build-system) + (arguments + (list + #:test-command + #~(list "emacs" "-Q" "-batch" + "-l" "test/popwin-test.el" + "-f" "ert-run-tests-batch-and-exit") + #:phases + #~(modify-phases %standard-phases + ;; Ran 42 tests, 33 results as expected, 0 unexpected, 9 skipped. + (add-before 'check 'skip-tests + (lambda _ + (emacs-batch-edit-file "test/popwin-test.el" + '(progn + (let ((tests (list "find-file-interactively" + "display-buffer-interactively" + "find-file-tail-interactively" + "popup-at-bottom-with-three-columes" + "popup-at-top-with-three-columes.*" + "popup-buffer-interactively" + "popup-buffer-tail-interactively" + "popwin-side-window" + "popup-from-minibuffer"))) + (dolist (test tests) + (save-excursion + (re-search-forward (format "%s ()" test)) + (insert "\n(skip-unless nil)"))) + (basic-save-buffer))))))))) + (native-inputs + (list emacs-ert-runner)) + (home-page "https://github.com/emacsorphanage/popwin") + (synopsis "Popup window manager for Emacs") + (description + "This package provides utilities for treating certain windows as +@dfn{pop up windows}, which close automatically when quitting a command or +selecting another window.") + (license license:gpl3+)))) (define-public emacs-pyvenv (package