From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30566 Path: main.gmane.org!not-for-mail From: dsg@mitre.org (David S. Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: Multiple frame problem Date: 01 May 2000 15:49:14 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: <200004262047.WAA31687@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167084 9168 80.91.224.250 (21 Oct 2002 02:24:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:24:44 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 8EDF3D051E for ; Mon, 1 May 2000 15:51:42 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB31872; Mon, 1 May 2000 14:51:37 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 01 May 2000 14:50:49 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA08163 for ; Mon, 1 May 2000 14:50:36 -0500 (CDT) Original-Received: from smtpproxy1.mitre.org (mbunix.mitre.org [129.83.20.100]) by mailhost.sclp.com (Postfix) with ESMTP id E425FD051E for ; Mon, 1 May 2000 15:49:28 -0400 (EDT) Original-Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy1.mitre.org (8.9.3/8.9.3) with ESMTP id PAA17519 for ; Mon, 1 May 2000 15:49:17 -0400 (EDT) Original-Received: from linus.mitre.org (linus.mitre.org [129.83.10.1]) by smtpsrv1.mitre.org (8.9.3/8.9.3) with ESMTP id PAA05395 for ; Mon, 1 May 2000 15:48:46 -0400 (EDT) Original-Received: from blackbird.mitre.org (blackbird.mitre.org [129.83.10.221]) by linus.mitre.org (8.9.3/8.9.3) with ESMTP id PAA16096 for ; Mon, 1 May 2000 15:49:15 -0400 (EDT) Original-Received: (from dsg@localhost) by blackbird.mitre.org (8.9.3/8.9.3) id PAA23656; Mon, 1 May 2000 15:49:15 -0400 (EDT) X-Authentication-Warning: blackbird.mitre.org: dsg set sender to dsg@mitre.org using -f Mail-Copies-To: never Original-To: The Gnus Mailing List X-Face: GUaHTH@nS>[7,ME@-gYZ4#Wl{z"99k@[[Y8AcP0x1paqu.,z9,XSV1WI>{q3f6^e5(zrit <4fV&VHhmE`uidRqtmG27;si9&r;#KSF~E#$%W8w(xdp)H4tW=\2XOk~3=@oGqqpj;m4xf Ow;y26396&,34@9#~4;@*S;E0cq"LM9N(us4P%F(Nxis'Vvfm9?KufH;:Q$dMa-QWGLR&K d0`LJZE8xb*>^yN>b]_NcU:E=Zn\1=#/(OS2 Original-Lines: 50 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30566 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30566 > 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