From: Ivan Shmakov <ivan@siamics.net>
To: 15939@debbugs.gnu.org
Subject: bug#15939: [PATCH] nndoc.el: Add new debbugs-db nndoc type
Date: Wed, 20 Nov 2013 20:07:54 +0000 [thread overview]
Message-ID: <87siuqomgy.fsf@violet.siamics.net> (raw)
Given that Debbugs is used for Emacs development itself, it
seems quite appropriate to add Debbugs .log file support to the
nndoc Gnus’ select method. Please thus consider the following
patch.
An example Debbugs .log file to test the patched nndoc against
could be retrieved with, say:
$ rsync -t -- \
rsync://bugs-mirror.debian.org/bts-spool-db/83/688283.log \
688283.log
(Then: G f 688283.log RET in the *Group* buffer.)
--- lisp/gnus/nndoc.el.~1~
+++ lisp/gnus/nndoc.el 2013-11-20 19:58:04.000000000 +0000
@@ -56,6 +56,10 @@ from the document.")
`((mmdf
(article-begin . "^\^A\^A\^A\^A\n")
(body-end . "^\^A\^A\^A\^A\n"))
+ (debbugs-db
+ (file-begin . "^\005")
+ (article-begin . "^[\005\007]\n")
+ (body-end . "^\003"))
(mime-digest
(article-begin . "")
(head-begin . "^ ?\n")
@@ -460,6 +464,10 @@ from the document.")
(when (looking-at "\^A\^A\^A\^A$")
t))
+(defun nndoc-debbugs-db-type-p ()
+ (when (looking-at "\006$")
+ t))
+
(defun nndoc-news-type-p ()
(when (looking-at "^Path:.*\n")
t))
--
FSF associate member #7257
next reply other threads:[~2013-11-20 20:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 20:07 Ivan Shmakov [this message]
2013-11-21 16:19 ` bug#15939: [PATCH] nndoc.el: Add new debbugs-db nndoc type Ted Zlatanov
2013-11-21 16:27 ` Glenn Morris
2013-11-21 17:14 ` Ted Zlatanov
2013-11-21 18:52 ` Ted Zlatanov
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87siuqomgy.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=15939@debbugs.gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).