Gnus development mailing list
 help / color / mirror / Atom feed
* message-expand-group doesn't grok "nnml:foo" groups
@ 1997-01-27 11:12 Kai Grossjohann
  1997-01-27 17:14 ` David Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Kai Grossjohann @ 1997-01-27 11:12 UTC (permalink / raw)


Yo,

I'd like to use message-expand-group for my Gcc header, but the group
name is determined by going back to the first ":" (or ",", or " ")
then looking at the name.  This won't work for groups with names like
"nnml:foo", of course.

I have done a quick hack which sort of seems to work:

;; from message.el
(defun message-expand-group ()
  (let* ((b (save-excursion (skip-chars-backward "^, :\t\n") (point)))
                                                     ^
                               removed colon here ---'

What's the right way to do this?
kai
-- 
Signature?  What signature?


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

* Re: message-expand-group doesn't grok "nnml:foo" groups
  1997-01-27 11:12 message-expand-group doesn't grok "nnml:foo" groups Kai Grossjohann
@ 1997-01-27 17:14 ` David Moore
  0 siblings, 0 replies; 2+ messages in thread
From: David Moore @ 1997-01-27 17:14 UTC (permalink / raw)


Kai Grossjohann <grossjohann@charly.informatik.uni-dortmund.de> writes:

> I have done a quick hack which sort of seems to work:
> 
> ;; from message.el
> (defun message-expand-group ()
>   (let* ((b (save-excursion (skip-chars-backward "^, :\t\n") (point)))
>                                                      ^
>                                removed colon here ---'
> 
> What's the right way to do this?

	You could set the beginning to the larger of the points found by
your search with removed colon and the spot just after the ':' of the
header name.  Otherwise, things won't work well if someone has no space
after the first colon.


-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | In a cloud bones of steel.


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

end of thread, other threads:[~1997-01-27 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-27 11:12 message-expand-group doesn't grok "nnml:foo" groups Kai Grossjohann
1997-01-27 17:14 ` David Moore

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