From: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
Subject: Re: letting message-signature-file be a function
Date: 06 Mar 1997 04:52:58 +0100 [thread overview]
Message-ID: <m267z5he1x.fsf@proletcult.slip.ifi.uio.no> (raw)
In-Reply-To: Steinar Bang's message of 05 Mar 1997 08:59:04 +0100
Steinar Bang <sb@metis.no> writes:
> It would be nice if the content of message-signature-file could be a
> function that could evaluate to the signature file name.
I've now added this to the todo list.
> Right now I do this, by using message-signature, but then I have to
> have an additional function, like eg.
> (defun signature-get-body (sig-file-name)
> "Return the contents of sig-file-name, as a string."
> (save-excursion
> (set-buffer (get-buffer-create "*mumblefrotz*"))
> (insert-file-contents-literally sig-file-name)
> (prog1
> (buffer-string)
> (kill-buffer nil))))
You could say:
(defun sig-get-body (file)
(nnheader-temp-write t
(insert-file-contents-literally sig-file-name)))
--
(domestic pets only, the antidote for overdose, milk.)
larsi@ifi.uio.no * Lars Ingebrigtsen
next prev parent reply other threads:[~1997-03-06 3:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-05 7:59 Steinar Bang
1997-03-05 13:40 ` Steinar Bang
1997-03-06 3:52 ` Lars Magne Ingebrigtsen [this message]
1997-03-05 14:40 St. Suika Roberts
1997-03-06 3:53 ` 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=m267z5he1x.fsf@proletcult.slip.ifi.uio.no \
--to=larsi@ifi.uio.no \
/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).