Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c872595d
Commit
c872595d
authored
Oct 19, 2010
by
Lars Magne Ingebrigtsen
Committed by
Katsumi Yamaoka
Oct 19, 2010
Browse files
nndoc.el (nndoc-transform-git-headers): Generate Subject headers.
gnus.texi (Document Groups): Mention git.
parent
da451787
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
16 deletions
+34
-16
doc/misc/ChangeLog
doc/misc/ChangeLog
+1
-0
doc/misc/gnus.texi
doc/misc/gnus.texi
+4
-0
lisp/gnus/ChangeLog
lisp/gnus/ChangeLog
+1
-0
lisp/gnus/nndoc.el
lisp/gnus/nndoc.el
+28
-16
No files found.
doc/misc/ChangeLog
View file @
c872595d
...
...
@@ -2,6 +2,7 @@
* gnus.texi (Customizing the IMAP Connection): The port strings are
strings.
(Document Groups): Mention git.
2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
...
...
doc/misc/gnus.texi
View file @
c872595d
...
...
@@ -17969,6 +17969,10 @@ A @acronym{MIME} digest of messages.
@item lanl-gov-announce
Announcement messages from LANL Gov Announce.
@cindex git commit messages
@item git
@code{git} commit messages.
@cindex forwarded messages
@item rfc822-forward
A message forwarded according to RFC822.
lisp/gnus/ChangeLog
View file @
c872595d
...
...
@@ -4,6 +4,7 @@
(nndoc-git-type-p): New function.
(nndoc-transform-git-article): Ditto.
(nndoc-transform-git-headers): Ditto.
(nndoc-transform-git-headers): Generate Subject headers.
* shr.el (shr-parse-style): New function.
(shr-tag-span): Ditto.
...
...
lisp/gnus/nndoc.el
View file @
c872595d
...
...
@@ -232,19 +232,22 @@ from the document.")
(
while
articles
(
when
(
setq
entry
(
cdr
(
assq
(
setq
article
(
pop
articles
))
nndoc-dissection-alist
)))
(
insert
(
format
"221 %d Article retrieved.\n"
article
))
(
if
nndoc-generate-head-function
(
funcall
nndoc-generate-head-function
article
)
(
insert-buffer-substring
nndoc-current-buffer
(
car
entry
)
(
nth
1
entry
)))
(
goto-char
(
point-max
))
(
unless
(
eq
(
char-after
(
1-
(
point
)))
?\n
)
(
insert
"\n"
))
(
insert
(
format
"Lines: %d\n"
(
nth
4
entry
)))
(
insert
".\n"
)))
(
when
nndoc-header-transform-function
(
funcall
nndoc-header-transform-function
))
(
let
((
start
(
point
)))
(
insert
(
format
"221 %d Article retrieved.\n"
article
))
(
if
nndoc-generate-head-function
(
funcall
nndoc-generate-head-function
article
)
(
insert-buffer-substring
nndoc-current-buffer
(
car
entry
)
(
nth
1
entry
)))
(
goto-char
(
point-max
))
(
unless
(
eq
(
char-after
(
1-
(
point
)))
?\n
)
(
insert
"\n"
))
(
insert
(
format
"Lines: %d\n"
(
nth
4
entry
)))
(
insert
".\n"
)
(
when
nndoc-header-transform-function
(
save-excursion
(
save-restriction
(
narrow-to-region
start
(
point
))
(
funcall
nndoc-header-transform-function
entry
)))))))
(
nnheader-fold-continuation-lines
)
'headers
)))))
...
...
@@ -671,10 +674,19 @@ from the document.")
(
when
(
re-search-forward
"^Author: "
nil
t
)
(
replace-match
"From: "
t
t
)))
(
defun
nndoc-transform-git-headers
()
(
defun
nndoc-transform-git-headers
(
entry
)
(
goto-char
(
point-min
))
(
while
(
re-search-forward
"^Author: "
nil
t
)
(
replace-match
"From: "
t
t
)))
(
when
(
re-search-forward
"^Author: "
nil
t
)
(
replace-match
"From: "
t
t
))
(
let
(
subject
)
(
with-current-buffer
nndoc-current-buffer
(
goto-char
(
car
entry
))
(
when
(
search-forward
"\n\n"
nil
t
)
(
setq
subject
(
buffer-substring
(
point
)
(
line-end-position
)))))
(
when
subject
(
goto-char
(
point-min
))
(
forward-line
1
)
(
insert
(
format
"Subject: %s\n"
subject
)))))
(
defun
nndoc-lanl-gov-announce-type-p
()
(
when
(
let
((
case-fold-search
nil
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment