unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Colin Baxter <m43cap@yandex.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: other diary blog entries
Date: Tue, 22 Jun 2021 21:00:27 +0200	[thread overview]
Message-ID: <87r1gtenck.fsf@rub.de> (raw)
In-Reply-To: <87sg1aaux1.fsf@yandex.com> (Colin Baxter's message of "Tue, 22 Jun 2021 14:30:34 +0100")

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



  reply	other threads:[~2021-06-22 19:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22 13:30 other diary blog entries Colin Baxter
2021-06-22 19:00 ` Stephen Berman [this message]
2021-06-22 20:44   ` Colin Baxter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1gtenck.fsf@rub.de \
    --to=stephen.berman@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=m43cap@yandex.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).