* mailcrypt help: argument to mc-encrypt
@ 2003-08-19 0:06 V. Balaji
2003-08-19 16:08 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: V. Balaji @ 2003-08-19 0:06 UTC (permalink / raw)
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))
Help, please?
--
Balaji 1 609.452.6516
SGI/GFDL Princeton University
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mailcrypt help: argument to mc-encrypt
2003-08-19 0:06 mailcrypt help: argument to mc-encrypt V. Balaji
@ 2003-08-19 16:08 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2003-08-19 16:08 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-19 16:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-19 0:06 mailcrypt help: argument to mc-encrypt V. Balaji
2003-08-19 16:08 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.