From: Michael Olson <mwolson@gnu.org>
To: ding@gnus.org
Subject: [PATCH] mml.el: Make sure that <#part> sections are at beginning of line.
Date: Mon, 19 May 2008 09:08:26 -0700 [thread overview]
Message-ID: <871w3y1dl1.fsf@grepfind.mwolson.org> (raw)
* lisp/gnus/mml.el (mml-read-part): Only look for parts at the beginning
of a line. This way emailed patches that just happen to have "<#part>"
in them will not be misinterpreted.
---
This patch is for the version of Gnus that is included with CVS HEAD in
Emacs. I thought I'd run it by the Gnus mailing list first to see if
I'm doing something mistaken.
lisp/gnus/mml.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 3aaa9c7..fedd469 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -431,7 +431,7 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
(point)
(match-beginning 0))))
(if (re-search-forward
- "<#\\(/\\)?\\(multipart\\|part\\|external\\|mml\\)." nil t)
+ "^<#\\(/\\)?\\(multipart\\|part\\|external\\|mml\\)." nil t)
(prog1
(mml-buffer-substring-no-properties-except-hard-newlines
beg (match-beginning 0))
--
1.5.4.3
--
| Michael Olson | FSF Associate Member #652 |
| http://mwolson.org/ | Hobbies: Lisp, HCoop |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'
next reply other threads:[~2008-05-19 16:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-19 16:08 Michael Olson [this message]
2008-05-19 17:36 ` Reiner Steib
2008-05-19 17:51 ` Michael Olson
2008-05-19 20:53 ` Reiner Steib
2008-05-19 21:12 ` Michael Olson
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=871w3y1dl1.fsf@grepfind.mwolson.org \
--to=mwolson@gnu.org \
--cc=ding@gnus.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.
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).