Gnus development mailing list
 help / color / mirror / Atom feed
From: Karl Kleinpaste <karl@charcoal.com>
Subject: Oddity: gnuclient invocation of gnus-url-mailto creates 2 frames
Date: Fri, 22 Apr 2005 08:51:30 -0400	[thread overview]
Message-ID: <vxkvf6f6kkt.fsf@mesquite.charcoal.com> (raw)

Not necessarily a bug, but definitely an oddity.

I've been using this shell script for a while, as my means of starting
Gnus from the GNOME panel, and for clicking a "mailto:" link in Firefox.

#!/bin/sh
export PATH=/usr/local/bin:"$PATH"
if [ "$1" = "" ] ; then
    exec xemacs -geometry 90x63 -f gnus-init
else
    if gnuclient -batch -eval t >/dev/null 2>&1 ; then
	exec gnuclient -eval "(gnus-url-mailto \"$1\")"
    else
	exec xemacs -geometry 90x63 \
	    -eval "(progn (require 'gnus-art) (gnus-url-mailto \"$1\") (font-lock-mode 1))"
    fi
fi
exec xmessage -center No XEmacs or gnuclient
echo no xemacs, no gnuclient, no xmessage
exit 1

What's significant here is the middle exec, using gnuclient to induce
Gnus to do gnus-url-mailto's thing.  When I click on a Firefox-
displayed link, Gnus produces not one but two new frames (using
Katsumi Yamaoka's message-multiple-frames.el).  One of them is the
size specified in message-multiple-frames (80x40); the other is my
default startup size of 90x63.

If I subsequently kill, postpone, or send the message...
1- From the default 90x63 frame, *both* frames disappear.
2- From the m-m-f frame, only that frame disappears, and the default
   90x63 frame resumes display of (only) *Summary*.

It's at worst a minor annoyance, but darn strange: What would be
causing Gnus to think that a single invocation of gnus-url-mailto
should deserve two separate and clearly very different (given geometry
choices) frame initializations?  It's not because the script is being
invoked more than once -- I've run the gnuclient command directly from
a shell prompt and still get 2 frames.

Guesses welcome.

--karl



             reply	other threads:[~2005-04-22 12:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-22 12:51 Karl Kleinpaste [this message]
2005-04-26  2:34 ` Karl Kleinpaste
2005-04-26 12:37   ` Oddity: gnuclient invocation of gnus-url-mailto creates 2 Katsumi Yamaoka
2005-04-28  6:45     ` Katsumi Yamaoka

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=vxkvf6f6kkt.fsf@mesquite.charcoal.com \
    --to=karl@charcoal.com \
    /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).