From: Kim-Minh Kaplan <kmkaplan@vocatex.fr>
Subject: [PATCH] to mm-decode.el please someone put it in CVS.
Date: 06 Jan 2000 00:08:58 +0100 [thread overview]
Message-ID: <87k8lo5d6d.fsf@kloug.western.fr> (raw)
Can someone put this in the repository please ?
Kim-Minh.
2000-01-06 00:06:40 Kim-Minh Kaplan <kmkaplan@vocatex.fr>
* mm-decode.el (mm-mailcap-command): handle "%%" and the case where
there is no "%s" in the method.
--- mm-decode.el 2000/01/05 16:01:17 5.69
+++ mm-decode.el 2000/01/05 23:06:39
@@ -433,20 +433,28 @@
(defun mm-mailcap-command (method file type-list)
(let ((ctl (cdr type-list))
(beg 0)
+ (uses-stdin t)
out sub total)
- (while (string-match "%{\\([^}]+\\)}\\|%s\\|%t" method beg)
+ (while (string-match "%{\\([^}]+\\)}\\|%s\\|%t\\|%%" method beg)
(push (substring method beg (match-beginning 0)) out)
(setq beg (match-end 0)
total (match-string 0 method)
sub (match-string 1 method))
(cond
+ ((string= total "%%")
+ (push "%" out))
((string= total "%s")
+ (setq uses-stdin nil)
(push (mm-quote-arg file) out))
((string= total "%t")
(push (mm-quote-arg (car type-list)) out))
(t
(push (mm-quote-arg (or (cdr (assq (intern sub) ctl)) "")) out))))
(push (substring method beg (length method)) out)
+ (if uses-stdin
+ (progn
+ (push "<" out)
+ (push (mm-quote-arg file) out)))
(mapconcat 'identity (nreverse out) "")))
(defun mm-remove-parts (handles)
next reply other threads:[~2000-01-05 23:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-05 23:08 Kim-Minh Kaplan [this message]
2000-01-09 2:06 ` Shenghuo ZHU
2000-01-10 2:19 ` How does one submit patches ? (was Re: [PATCH] to mm-decode.el please someone put it in CVS.) Kim-Minh Kaplan
2000-04-21 14:14 ` Lars Magne Ingebrigtsen
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=87k8lo5d6d.fsf@kloug.western.fr \
--to=kmkaplan@vocatex.fr \
/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).