[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: other diary blog entries
From: |
Stephen Berman |
Subject: |
Re: other diary blog entries |
Date: |
Tue, 22 Jun 2021 21:00:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Tue, 22 Jun 2021 14:30:34 +0100 Colin Baxter <m43cap@yandex.com> wrote:
> Hello,
>
> I have two diaries, main and other, with the line #include "~/path/to/other"
> at the top of main. If I am in Calendar and I mark several days using
> 'm' then I can insert for example a block diary using 'ib', along the
> lines for example as %%(diary-cyclic 1 2021 06 22) 15:00 Coffee. The
> diary entry is saved to main, but I want to have it saved to other. How
> can I achieve this without a manual cut-and-paste? Am I restricted to
> whatever is the value of the 'diary-file variable', which is main in my
> case?
The function `diary-make-entry', which is called by all the diary item
insertion commands, does accept an optional argument for a diary file
other than `diary-file'. However, all the item insertion commands omit
this argument; I don't know why. You could advise or redefine the
insertion commands to accept the file argument. But it might also be a
worthwhile feature request to make the standard commands accept it.
Steve Berman