mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-08 07:08:39 +01:00
- moved macro up in the cource to prevent a warning.
This commit is contained in:
parent
f8f05a49ab
commit
efed58ac04
@ -348,6 +348,12 @@ Metadata includes:
|
||||
(push-event (make-instance 'search-next-event
|
||||
:priority +maximum-event-priority+)))
|
||||
|
||||
(defmacro close-window-and-return-to-threads (window-to-close)
|
||||
`(progn
|
||||
(win-close ,window-to-close)
|
||||
(setf ,window-to-close nil)
|
||||
(focus-to-thread-window)))
|
||||
|
||||
(defun thread-open-selected-message ()
|
||||
"Open selected message"
|
||||
(let ((new-title-event (make-instance 'program-events:change-window-title-event
|
||||
@ -1284,12 +1290,6 @@ It an existing file path is provided the command will refuse to run."
|
||||
(win-close focused)
|
||||
(focus-to-message-window))))
|
||||
|
||||
(defmacro close-window-and-return-to-threads (window-to-close)
|
||||
`(progn
|
||||
(win-close ,window-to-close)
|
||||
(setf ,window-to-close nil)
|
||||
(focus-to-thread-window)))
|
||||
|
||||
(defmacro close-window-and-return-to-message (window-to-close)
|
||||
(with-gensyms (focused)
|
||||
`(let ((,focused (main-window:focused-window *main-window*)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user