[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [VM] Keeping track of the last save-folder name?
From: |
Piet van Oostrum |
Subject: |
Re: [VM] Keeping track of the last save-folder name? |
Date: |
Fri, 14 Nov 2014 14:59:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) |
Daniel Barrett <address@hidden> writes:
> I'm trying to keep track of the last folder name that received a saved
> message, so I can restore it after a save:
>
> (setq default vm-last-save-folder)
> (vm-save-message 'my-other-folder)
> (setq vm-last-save-folder default)
>
> However, vm-last-save-folder always ends up blank. What am I doing
> wrong?
>
> Thanks,
> Dan
>
vm-last-save-folder is a buffer-local variable. It is defined in the
buffer that contails the mail folder, but not in the Summary or
Presentation buffer. So I guess you are in either of these when you are
trying this construction. So maybe you have to add a
(vm-select-folder-buffer) somewhere.
--
Piet van Oostrum <address@hidden>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]