Jaakko Kangasharju <[EMAIL PROTECTED]> wrote:
> Elias Oltmanns <[EMAIL PROTECTED]> writes:
>
>> The patch attached below just inserts a simple sanity check in order
>> to handle cases, where gnus-newsgroup-name is not set, properly. This
>> is the case, for example, when gnus is suspended by pressing z in the
>> group buffer and compose-mail (or debian-bug, for that matter) is
>> called later on.
>
> Thanks for the patch, it's committed to CVS.

Actually, I think that the previous patch didn't get it quite right.
Please apply the following instead. I'm not quite sure whether there
really are circumstances where the difference really matters but the
following patch certainly seems logically more appropriate.

--- gnus-pers.el.orig	2006-08-24 12:56:57.000000000 +0200
+++ gnus-pers.el	2006-08-24 13:52:06.000000000 +0200
@@ -870,7 +870,7 @@
 	;; Check to see if it's a "gnus-newsgroup-name" split
 	(if (equal ",gnus-newsgroup-name" (cdr (assq field gnus-personality-split-abbrev-alist)))
 	    (let ((groupname gnus-newsgroup-name))
-	      (if (string-match value groupname)
+	      (if (and groupname (string-match value groupname))
 		  retval))
 	  (progn
 

Attachment: pgpsciWS576Ck.pgp
Description: PGP signature

Reply via email to