Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Multi frame setup: get frame autodeletion?
@ 2022-11-19  2:47 Michael Heerdegen
  2022-11-19 12:02 ` Björn Bidar
  2022-11-19 13:13 ` Eric S Fraga
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Heerdegen @ 2022-11-19  2:47 UTC (permalink / raw)
  To: info-gnus-english

Hello,

I'm experimenting with multi frame setups for Gnus.  I want that
replying or mail composition is done in a fresh separate frame.  My
setup below works as expected - but after sending the message the frame
stays and its only window displays a different buffer.  I have do delete
the frame manually.  Is there a reasonable Gnus-specific way to get rid
of such frames automatically (i.e. after sending)?

This is my current setup:

#+begin_src emacs-lisp
(defvar my-gnus-article-wconf
  '(if (> (frame-width) 95)
       '(vertical 1.0
                  (horizontal 1.0
                              (vertical 28 (tree 1.0))
                              (article 1.0))
                  (summary 10 point)
                  (when (> (frame-height) 50)
                    '("*BBDB*" 4)))
     '(vertical 1.0
                (article 1.0)
                (summary 8 point))))

(gnus-add-configuration `(article ,my-gnus-article-wconf))

(dolist (buf '(message post reply forward reply-yank))
  (gnus-add-configuration
   `(,buf (frame 1.0
                 ,my-gnus-article-wconf
                 ;; would be cool if one could somehow get the frame auto-deleted once
                 ;; the message had been sent...
                 (vertical 1.0 (message 1.0 point frame-focus))))))
#+end_src


TIA,

Michael.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-20 12:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-19  2:47 Multi frame setup: get frame autodeletion? Michael Heerdegen
2022-11-19 12:02 ` Björn Bidar
2022-11-20  5:34   ` Michael Heerdegen
2022-11-20 12:57     ` Björn Bidar
2022-11-19 13:13 ` Eric S Fraga
2022-11-20  5:32   ` Michael Heerdegen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).