Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: gnus-group-post-news defaults to mail
Date: Fri, 27 Dec 2002 22:11:51 +0100	[thread overview]
Message-ID: <m3smwj88vc.fsf@defun.localdomain> (raw)
In-Reply-To: <i563cojeax7.fsf@mao.acc.umu.se>

stktrc <stktrc@yahoo.com> writes:

> The documentation for gnus-group-post-news says
>
> "Start composing a message (a news by default).  If ARG, post to group
> under point.  If ARG is 1, prompt for group name.  Depending on the
> selected group, the message might be either a mail or a news."
>
> but when I do gnus-group-post-news ("a") from the group buffer it
> defaults to mail.  (If I send a 1 as prefix arg it does a news post.)

Strange -- it defaults to news for me.  

What do you get if you evaluate this (place point after the last paren
and press `C-x C-e'):

(let ((group "")
      force-news header)
  (let* ((group (or group gnus-newsgroup-name))
	 (charset (gnus-group-name-charset nil group))
	 (pgroup group)
	 to-address to-group mailing-list to-list
	 newsgroup-p)
    (when group
      (setq to-address (gnus-parameter-to-address group)
	    to-group (gnus-group-find-parameter group 'to-group)
	    to-list (gnus-parameter-to-list group)
	    newsgroup-p (gnus-group-find-parameter group 'newsgroup)
	    mailing-list (when gnus-mailing-list-groups
			   (string-match gnus-mailing-list-groups group))
	    group (gnus-group-name-decode (gnus-group-real-name group)
					  charset)))
    (if (or (and to-group
		 (gnus-news-group-p to-group))
	    newsgroup-p
	    force-news
	    (and (gnus-news-group-p
		  (or pgroup gnus-newsgroup-name)
		  (or header gnus-current-article))
		 (not mailing-list)
		 (not to-list)
		 (not to-address)))
	'news
      'mail)))


       reply	other threads:[~2002-12-27 21:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <i563cojeax7.fsf@mao.acc.umu.se>
2002-12-27 21:11 ` Jesper Harder [this message]
     [not found]   ` <i56smwj801z.fsf@mao.acc.umu.se>
     [not found]     ` <m38yyathfn.fsf@defun.localdomain>
     [not found]       ` <i56r8c14x71.fsf@mao.acc.umu.se>
     [not found]         ` <84adippx90.fsf@lucy.cs.uni-dortmund.de>
2002-12-29 10:16           ` Jesper Harder
     [not found]             ` <84hecxxdrv.fsf@lucy.cs.uni-dortmund.de>
     [not found]               ` <m3lm28lfqa.fsf@defun.localdomain>
2002-12-29 22:25                 ` Kai Großjohann

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=m3smwj88vc.fsf@defun.localdomain \
    --to=harder@myrealbox.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).