Path: utzoo!utgpu!watmath!uunet!steinmetz!vdsvax!montnaro From: montnaro@sprite.crd.ge.com (Skip Montanaro) Newsgroups: gnu.emacs.gnus Subject: User-definable digest separator string Message-ID: Date: 19 Mar 89 03:45:49 GMT Sender: news@vdsvax.steinmetz.ge.com Reply-To: (Skip Montanaro) Distribution: gnu Organization: GE Corporate Research & Development, Schenectady, NY Lines: 31 When reading digests, C-c C-n skips to the next message by searching for the regexp "^Subject:[ \t]". Somewhere in the dim dark past I recall there being a quasi-standard format for Internet digests that specified some number of hyphens anchored at the start of a line as the true message separator. In particular, digests posted to comp.simulation often contain messages without a subject. I decided to modify gnus.el slightly to allow user-specification of the digest separator string. The various mods follow. (Sorry this isn't a context diff. Gnus.el~ seems to have disappeared. Could it be because gnus.el comes out of the shar file write-protected by default?) At any rate, the changes are few. In gnus.el declare gnus-Digest-separator just after the definition of gnus-Digest-summary-buffer: (defvar gnus-Digest-separator "^Subject:[ \t]" "Default regexp to specify separator between articles in a digest.") Replace all further occurrences of "^Subject:[ \t]" with gnus-Digest-separator. The behavior of GNUS shouldn't change unless you want to define a different digest separator string. I place the following in my ~/.emacs: (setq gnus-Digest-separator "^----------*$") Ciao. -- Skip Montanaro (montanaro@sprite.crd.ge.com)