🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.gnus
Article #772

User-definable digest separator string

#772
From: Skip Montanaro
Date: Sun, 19 Mar 1989 03:45
31 lines
1755 bytes
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)
Technical Details
Message-ID: <MONTNARO.89Mar18224549@sprite.crd.ge.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!steinmetz!vdsvax!montnaro

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <MONTNARO.89Mar18224549@sprite.crd.ge.com>
Date: 19 Mar 89 03:45:49 GMT
Sender: news@vdsvax.steinmetz.ge.com
Reply-To: <montanaro@sprite.crd.ge.com> (Skip Montanaro)
Distribution: gnu
Organization: GE Corporate Research & Development, Schenectady, NY
Lines: 31