|
From: | Kevin Rodgers |
Subject: | Re: mailcrypt help: argument to mc-encrypt |
Date: | Tue, 19 Aug 2003 10:08:45 -0600 |
User-agent: | Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
V. Balaji wrote:
I'm trying to write a function to mailcrypt a buffer before saving... I can't figure out from the source what I should pass to mc-encrypt as its only argument. I've tried (mc-encrypt) with no argument, as well as what is shown here... (defun encrypt-and-save-buffer () " Encrypt buffer before saving." (interactive) (mc-encrypt (current-buffer)) (save-buffer))
Take a look at the definitions of mc-encrypt and mc-encrypt-region in mc-toplev.el. I would try (mc-encrypt 1) or (mc-encrypt-region 1 (point-min) (point-max)) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |