~protesilaos/denote

1

[PATCH] Optional argument for denote-rename-file-using-front-matter

Details
Message ID
<m2a667aeku.fsf@gmail.com>
DKIM signature
missing
Download raw message
Hi Prot

This patch allows adds an optional argument to
denote-rename-file-using-front-matter that, when non-nil, skips the
y-or-n-p confirmations to save the buffer and rename the file. This is
particularly useful when denote-rename-file-using-front-matter is called
from other functions (e.g., to add or remove keywords).

Does it make sense to implement a feature like this? It will be
particularly useful for the other change that adds or removes keywords.
For interactive use (or other use, for that matter), nothing changes.

All the best
Elias
Details
Message ID
<878rlrptt4.fsf@protesilaos.com>
In-Reply-To
<m2a667aeku.fsf@gmail.com> (view parent)
DKIM signature
missing
Download raw message
> From: Elias Storms <elias.storms@gmail.com>
> Date: Fri,  7 Oct 2022 16:32:19 +0200
>
> Hi Prot

Hello Elias,

> This patch allows adds an optional argument to
> denote-rename-file-using-front-matter that, when non-nil, skips the
> y-or-n-p confirmations to save the buffer and rename the file. This is
> particularly useful when denote-rename-file-using-front-matter is called
> from other functions (e.g., to add or remove keywords).
>
> Does it make sense to implement a feature like this? It will be
> particularly useful for the other change that adds or removes keywords.
> For interactive use (or other use, for that matter), nothing changes.

I just installed it and pushed it as commit 6e0482e.  Thank you!  Note
that the auto-confirm can be used interactively, so I added the missing
argument to the 'interactive' spec.

Please let me know when your paperwork is done.  We are now at the limit
in terms of what you can contribute without it.

All the best,
Prot

-- 
Protesilaos Stavrou
https://protesilaos.com
Reply to thread Export thread (mbox)