Gnus development mailing list
 help / color / mirror / Atom feed
From: dsg@mitre.org (David S. Goldberg)
Subject: Re: Multiple frame problem
Date: 01 May 2000 15:49:14 -0400	[thread overview]
Message-ID: <m1bg0s26og5.fsf@blackbird.mitre.org> (raw)
In-Reply-To: <vethfcofui6.fsf@toespaz.c3.lanl.gov>

> Thanks, Kai.  I wasn't sure how much info to include in my previous
> message.  I had asked before how to go about getting the separate
> frame for compositions, and I believe David Goldberg was kind enough
> to post something from his .gnus.el.  Here's what I'm using:


[...]

Yup, that looks something like my setup.

> (add-hook 'message-sent-hook (lambda () (bury-buffer (get-buffer
>           "*Group*"))) (lower-frame)))
> (add-hook 'message-setup-hook (lambda () (raise-frame (next-frame))))

Here's my solution which works with XEmacs.  Not sure about Emacs.  In
my .gnus I have: 

(defvar dsg-gnus-edit-buffer "*gnusedit*" "place holder for gnus editing")

(defun dsg-gnus-buffer-predicate (arg)
  (string= (buffer-name arg) dsg-gnus-edit-buffer))

[...]

(gnus-add-configuration
 '(message
   (frame 1.0
	  (if (not (buffer-live-p gnus-summary-buffer))
	      (car (cdr (assoc 'group gnus-buffer-configuration)))
	    (car (cdr (assoc 'summary gnus-buffer-configuration))))
	  (vertical (user-position t top 1 left 1 name "Gnus Edit"
				   buffer-predicate
				   dsg-gnus-buffer-predicate)
		    (message 1.0 point)))))

What this says is that when I kill or bury whatever is being put in
the frame called "Gnus Edit", the buffer it will return to is called
"*gnusedit*" which is not used for anything else, and therefore won't
likely show up in any other frame.  You can use this as the buffer to
find and lower.  Note that you're better off with something like this
to do the lowering:

(lower-frame (window-frame (get-buffer-window "*gnusedit*" t)))

This way you don't end up mucking with your current frame selection etc.
-- 
Dave Goldberg
Post: The Mitre Corporation\MS K207\202 Burlington Rd.\Bedford, MA 01730
Phone: 781-271-3887
Email: dsg@mitre.org



  reply	other threads:[~2000-05-01 19:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-26 19:54 Reid Rivenburgh
2000-04-26 20:47 ` Kai Großjohann
2000-04-26 21:00   ` Reid Rivenburgh
2000-05-01 19:49     ` David S. Goldberg [this message]
2000-05-04 20:38       ` Reid Rivenburgh
2000-05-05 17:07         ` David S. Goldberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1bg0s26og5.fsf@blackbird.mitre.org \
    --to=dsg@mitre.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).