Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@metis.no>
Subject: Re: gnus-post-method
Date: 10 Feb 1998 09:34:25 +0100	[thread overview]
Message-ID: <whoh0f7t9q.fsf@norne.oslo.metis.no> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "08 Feb 1998 17:07:38 +0100"

>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org>:

> Felix Lee <flee@teleport.com> writes:
>> so my newsrc currently has 3 different news servers with
>> about 20 groups from each.  since all these groups are local
>> to the servers, I want gnus to use the right server when I
>> post an article.  and I don't want to have to give a prefix
>> arg to C-c C-c all the time.
>> 
>> what's the easiest way?

> Bind `C-c C-c' to a command that gives the prefix automatically.

Something like this, perhaps (in ~/.emacs or ~/.gnus):

;; Hack for posting on foreign servers
(add-hook 'message-setup-hook
	  (lambda ()
	    (local-set-key "\C-c\C-c" 'message-send-and-exit-with-prefix)))

(defun message-send-and-exit-with-prefix ()
  "Call the message-send-and-exit function with a positive number argument
to make it post the message on the foreign NNTP server of a group, instead
of the default NNTP server"
  (interactive)
  (message-send-and-exit 1))


      reply	other threads:[~1998-02-10  8:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-08  4:33 gnus-post-method Felix Lee
1998-02-08 16:07 ` gnus-post-method Lars Magne Ingebrigtsen
1998-02-10  8:34   ` Steinar Bang [this message]

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=whoh0f7t9q.fsf@norne.oslo.metis.no \
    --to=sb@metis.no \
    /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).