diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-20 15:56:56 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-20 15:56:56 -0500 |
| commit | d11f3d5a18271ffd8e4b9822988ccc2fd2e0bcde (patch) | |
| tree | 38b5702037c5911ac8812a7ab3bc50c6b92cb618 /tests | |
| parent | db9353837def65e627cc1dac5c343789d660aa2d (diff) | |
| download | dotemacs-d11f3d5a18271ffd8e4b9822988ccc2fd2e0bcde.tar.gz dotemacs-d11f3d5a18271ffd8e4b9822988ccc2fd2e0bcde.zip | |
fix(agenda): make C-x C-c close the agenda frame, not the daemon
The catch-all denied it before, and letting the global through would be worse: save-buffers-kill-terminal on a make-frame frame has no client to close, so it kills the daemon. Inside the frame the gesture now runs the frame close.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-org-agenda-frame.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-org-agenda-frame.el b/tests/test-org-agenda-frame.el index 0b1062a1..19dab74b 100644 --- a/tests/test-org-agenda-frame.el +++ b/tests/test-org-agenda-frame.el @@ -232,6 +232,14 @@ catch-all denies them and the frame can't be closed by its own key." (should (eq (lookup-key cj/agenda-frame-mode-map (kbd "C-M-<f8>")) 'cj/org-agenda-refresh-files))) +(ert-deftest test-org-agenda-frame-map-C-x-C-c-closes-frame () + "Normal: C-x C-c in the agenda frame closes the frame, not the daemon. +The global save-buffers-kill-terminal would kill Emacs itself here (a +make-frame frame has no client), so the intuitive close gesture must be +remapped to the frame close." + (should (eq (lookup-key cj/agenda-frame-mode-map (kbd "C-x C-c")) + 'cj/--agenda-frame-close))) + (ert-deftest test-org-agenda-frame-map-machinery-punched-through () "Boundary: input machinery is punched through the [t] catch-all. switch-frame events, mouse-wheel scrolling, mouse-1 clicks, and the help |
