Gnus development mailing list
 help / color / mirror / Atom feed
* "a"ing in the group buffer cont'd
@ 1995-11-05  1:22 Robert Nicholson
  1995-11-06 13:33 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Nicholson @ 1995-11-05  1:22 UTC (permalink / raw)



I've made a start on adding some trivial support to allow "a"ing ...

However perhaps the reason this was never there in the first place is because
this assumes to much about the format of the group lines?

Is there anyway to map from the line number in the group buffer to list
of newsgroups be they sorted or not?

(defun gnus-group-post-news ()
  "Post an article."
  (interactive)
  (save-excursion
    (let ((gnus-newsgroup-name nil))
      (beginning-of-line)
      (if (looking-at ".*: \\(.*\\)")
	  (progn 
	    (setq gnus-newsgroup-name 
		  (buffer-substring (match-beginning 1) (match-end 1)))))
      (gnus-post-news 'post gnus-newsgroup-name nil gnus-article-buffer))))


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

* Re: "a"ing in the group buffer cont'd
  1995-11-05  1:22 "a"ing in the group buffer cont'd Robert Nicholson
@ 1995-11-06 13:33 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1995-11-06 13:33 UTC (permalink / raw)


Robert Nicholson <robert@steffi.accessone.com> writes:

> I've made a start on adding some trivial support to allow "a"ing ...
> 
> However perhaps the reason this was never there in the first place is because
> this assumes to much about the format of the group lines?
> 
> Is there anyway to map from the line number in the group buffer to list
> of newsgroups be they sorted or not?

You don't really need that.  `gnus-group-group-name' always returns
the current group name.

Anyways, with Sudish's patch(eses) and some additional tinkering,
everything seems to work as one would expect -- prompting with the
current group name as the default.  Which will pop you into a *mail*
buffer when posting to a mail group, etc.

-- 
Home is where the cat is.


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

end of thread, other threads:[~1995-11-06 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-11-05  1:22 "a"ing in the group buffer cont'd Robert Nicholson
1995-11-06 13:33 ` Lars Magne Ingebrigtsen

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