Gnus development mailing list
 help / color / mirror / Atom feed
From: Mike McEwan <mike@lotusland.demon.co.uk>
Subject: [patch] gnus-agent-save-group-info
Date: 07 Nov 1998 21:31:20 +0000	[thread overview]
Message-ID: <m3yapnw5p3.fsf@lotusland.demon.co.uk> (raw)

  When conducting an `M-g' on an individual group,
`gnus-agent-save-group-info' does not locate a group's info line to
update in a `groups' file, when there is nothing after the group's name 
on the info line returned by the server.

  The following does it for me:

--- ChangeLog~	Mon Oct 26 00:33:21 1998
+++ ChangeLog	Sat Nov  7 21:05:40 1998
@@ -1,3 +1,8 @@
+1998-11-07  Mike McEwan  <mike@lotusland.demon.co.uk>
+
+	* gnus-agent.el (gnus-agent-save-group-info): Cater for group info 
+	lines where `group' is the last thing on the line.
+
 Sun Oct 25 23:11:44 1998  Lars Magne Ingebrigtsen  <larsi@menja.ifi.uio.no>
 
 	* gnus.el: Pterodactyl Gnus v0.40 is released.
--- gnus-agent.el.orig	Mon Oct 26 00:34:53 1998
+++ gnus-agent.el	Sat Nov  7 20:18:23 1998
@@ -564,7 +564,7 @@
 		(gnus-delete-line))
 	      (insert group " " (number-to-string (cdr active)) " "
 		      (number-to-string (car active)) " y\n"))
-	  (when (re-search-forward (concat (regexp-quote group) " ") nil t)
+	  (when (re-search-forward (concat (regexp-quote group) "\\($\\| \\)") nil t)
 	    (gnus-delete-line))
 	  (insert-buffer-substring nntp-server-buffer))))))
 

-- 
Mike.


                 reply	other threads:[~1998-11-07 21:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m3yapnw5p3.fsf@lotusland.demon.co.uk \
    --to=mike@lotusland.demon.co.uk \
    /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).