unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* other diary blog entries
@ 2021-06-22 13:30 Colin Baxter
  2021-06-22 19:00 ` Stephen Berman
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Baxter @ 2021-06-22 13:30 UTC (permalink / raw)
  To: help-gnu-emacs

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?


Thanks,

Best wishes,

Colin.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: other diary blog entries
  2021-06-22 13:30 other diary blog entries Colin Baxter
@ 2021-06-22 19:00 ` Stephen Berman
  2021-06-22 20:44   ` Colin Baxter
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Berman @ 2021-06-22 19:00 UTC (permalink / raw)
  To: Colin Baxter; +Cc: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: other diary blog entries
  2021-06-22 19:00 ` Stephen Berman
@ 2021-06-22 20:44   ` Colin Baxter
  0 siblings, 0 replies; 3+ messages in thread
From: Colin Baxter @ 2021-06-22 20:44 UTC (permalink / raw)
  To: Stephen Berman; +Cc: help-gnu-emacs

>>>>> Stephen Berman <stephen.berman@gmx.net> writes:

    > 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.

Thank you for information and suggestion. I'll look at this further -
when time allows.

Thanks again.

Best wishes, Colin.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-22 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-22 13:30 other diary blog entries Colin Baxter
2021-06-22 19:00 ` Stephen Berman
2021-06-22 20:44   ` Colin Baxter

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 read-only IMAP folder(s) and NNTP newsgroup(s).