Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: gnus-group-post-news defaults to mail
       [not found] <i563cojeax7.fsf@mao.acc.umu.se>
@ 2002-12-27 21:11 ` Jesper Harder
       [not found]   ` <i56smwj801z.fsf@mao.acc.umu.se>
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Harder @ 2002-12-27 21:11 UTC (permalink / raw)


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)))


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnus-group-post-news defaults to mail
       [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>
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Harder @ 2002-12-29 10:16 UTC (permalink / raw)


kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:

> stktrc <stktrc@yahoo.com> writes:
>
>> Jesper Harder <harder@myrealbox.com> writes:
>>
>>> Hmm, what is your value of `gnus-select-method'?  And what do these
>>> forms evaluate to:
>>
>> (nnnil "")
>
> Ah, I also have this, and I've also wondered why does `a' in the
> Group buffer compose a mail and not a news article.

But how do you get news if you don't set `gnus-select-method'?

> Maybe nnnil is the culprit?

Yes.  But I don't understand how it got that value -- did you set it
explicitly?  

If you look at the definition of `gnus-select-method' in gnus.el I don't
see how it could default to nnnil.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gnus-group-post-news defaults to mail
       [not found]               ` <m3lm28lfqa.fsf@defun.localdomain>
@ 2002-12-29 22:25                 ` Kai Großjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Großjohann @ 2002-12-29 22:25 UTC (permalink / raw)


Jesper Harder <harder@myrealbox.com> writes:

> kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:
>
>> Yes.  I didn't like the asymmetric treatment of various select
>> methods, so I thought it would be best to use nnnil as
>> gnus-select-method.  That way, all my select methods are treated the
>> same.  (All groups have a prefix, for example.)
>
> OK, that makes sense.  Does this patch solve the problem?
>
>
> --- gnus/lisp/gnus-msg.el	Fri Nov 29 17:19:39 2002
> +++ cvsgnus/lisp/gnus-msg.el	Sun Dec 29 21:11:17 2002
> @@ -578,7 +578,8 @@
>  	   ""))
>  	;; make sure last viewed article doesn't affect posting styles:
>  	(gnus-article-copy))
> -    (gnus-post-news 'post gnus-newsgroup-name)))
> +    (gnus-post-news 'post gnus-newsgroup-name nil nil nil nil
> +		    (string= gnus-newsgroup-name ""))))
>  
>  (defun gnus-summary-mail-other-window (&optional arg)
>    "Start composing a mail in another window.

How about giving the nnnil backend the post capability, or the news
type?  That might also solve the problem.

Hm.

Hm.

But maybe yours is better.  It makes things explicit.
-- 
Ambibibentists unite!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-29 22:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <i563cojeax7.fsf@mao.acc.umu.se>
2002-12-27 21:11 ` gnus-group-post-news defaults to mail Jesper Harder
     [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

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).