Commit graph

3305 commits

Author SHA1 Message Date
Protesilaos Stavrou bc5f10d963
Use completion table for denote-command-prompt 2025-12-15 09:51:59 +02:00
Protesilaos Stavrou 8ea5ac5cd9
Expand the completion metadata of the denote-file-prompt 2025-12-15 09:51:17 +02:00
Protesilaos Stavrou cc83feb3ba
Include denote-rename-file-identifier in the manual
Thanks to jarofromel for telling me about its absence in issue 646:
<https://github.com/protesilaos/denote/issues/646>.
2025-12-14 09:29:22 +02:00
Protesilaos Stavrou f7e6f4d442
Define group function and display-sort-function for denote-file-prompt 2025-12-14 09:12:29 +02:00
Protesilaos Stavrou ee0685ccc7
Rewrite the denote-subdirectory-prompt and add relevant comments 2025-12-14 08:07:56 +02:00
Protesilaos Stavrou d9537e2c9d
Add FIXME about denote-get-file-name-relative-to-denote-directory 2025-12-14 08:07:44 +02:00
Protesilaos Stavrou d9ecf5a988
Add optional DIRECTORIES to denote-directory-subdirectories and relevant FIXME 2025-12-14 08:04:45 +02:00
Protesilaos Stavrou a2476e9ac7
Add FIXME comment about denote-directory-get-files 2025-12-14 08:02:57 +02:00
Protesilaos Stavrou 7cc62eb5fb
Make denote--directory-all-files-recursively accept DIRECTORIES and add FIXME about it 2025-12-14 08:01:43 +02:00
Protesilaos Stavrou 68a5c712d5
Add optional DIRECTORIES to denote-directories-get-common-root 2025-12-14 07:59:50 +02:00
Protesilaos Stavrou 4fe3cf165e
Define denote-get-completion-table and use it 2025-12-14 07:18:09 +02:00
Protesilaos Stavrou 220644d97c
Add missing reference to denote-query-format-heading-function in the manual 2025-12-13 05:26:17 +02:00
Protesilaos Stavrou 72e3c01a7b
Change how we integrate with markdown-follow-link-functions and explain why
I hope this does not comes back to bite me but we will find out in
time. It looks safe.
2025-12-13 05:19:29 +02:00
Protesilaos Stavrou 04f604877e
Make small refinements to denote-fontify-links 2025-12-13 05:19:00 +02:00
Protesilaos Stavrou 4497f11b35
Remove wrong key binding from denote-link-mouse-map 2025-12-13 05:18:26 +02:00
Protesilaos Stavrou 74c7aeeb1b
Explain why denote-grep display-buffer action is different 2025-12-13 05:18:03 +02:00
Protesilaos Stavrou 42a3f393e2
Use consistent display-buffer actions for backlinks and query links 2025-12-13 05:17:36 +02:00
Protesilaos Stavrou e45fde09c1
Use diffent fn for denote-query-format-heading-function value and update docstring 2025-12-13 05:16:30 +02:00
Protesilaos Stavrou d86cb70426
Make sure denote-get-link-description issues a warning only when it must
Otherwise it warns every time a link is inserted, which is wrong.

Thanks to Oliver Epper for reporting the problem in issue 651:
<https://github.com/protesilaos/denote/issues/651>.
2025-11-29 07:08:11 +02:00
Protesilaos Stavrou 529148eba6
Elaborate where I learnt about wrong-number-of-arguments error type 2025-11-24 12:23:56 +02:00
Protesilaos Stavrou 133439ba1e
Bump version number to trigger GNU ELPA update
There have been some fixes that I want to include in the package.
Otherwise I will need to delay those until version 4.2.0, which might
be released next year...
2025-11-23 05:36:49 +02:00
Protesilaos Stavrou c4a6ec07e6
Add a comment about how I discovered wrong-number-of-arguments
We would probably be okay with just ignoring 'error' but what I did
there with wrong-number-of-arguments seems more precise.
2025-11-23 05:15:45 +02:00
Protesilaos Stavrou a3109ed9b4
Call function of denote-link-description-format with two arguments
I still support the old calling convention to not break existing code,
but we should move to the new one eventually. This way we can pass the
file type as an argument to not have to calculate it more than once
while calling 'denote-link' and related.
2025-11-23 05:12:04 +02:00
Protesilaos Stavrou b30cfcb5c9
Make stylistic change to let binding of denote--delete-active-region-content 2025-11-22 12:11:14 +02:00
Protesilaos Stavrou df76615cf9
Make stylistic change to let binding of denote--get-active-region-content 2025-11-22 12:10:43 +02:00
Protesilaos Stavrou 0f93eee66f
Make denote--get-active-region-content return non-blank string 2025-11-22 07:17:02 +02:00
Protesilaos Stavrou 7851a3b97e
Add FIXME to avoid duplication in denote-link-description-with-signature-and-title 2025-11-22 06:54:47 +02:00
Protesilaos Stavrou dda6c5a9f7
Show directory in denote-file-prompt only when denote-directory has many
The idea is that if the user has configured denote-directory to a list
of directories, then we want to inform them where the file prompt is
at. For a single directory, this is superfluous.
2025-11-18 19:40:42 +02:00
Protesilaos Stavrou eff64968fa
Remove some old obsolescence warnings
They have been there for close to two years now. I think we can safely
get rid of them now.
2025-11-04 12:53:27 +02:00
Protesilaos Stavrou 37e9a74f77
Use define-obsolete-function-alias instead of make-obsolete for two obsolescence warnings 2025-11-04 12:51:27 +02:00
Protesilaos Stavrou 9f1042f4f6
Document denote-rename-file-identifier behaviour about not breaking backlinks
Thanks to jarofromel for pointing out that the documentation and error
message could be improved. This was done in issue 646:
<https://github.com/protesilaos/denote/issues/646>.
2025-11-01 07:45:13 +02:00
Protesilaos Stavrou c4cb46f592
Rename a binding in denote-sort-dired for clarity and consistency 2025-10-30 13:38:02 +02:00
Protesilaos Stavrou d94e942ac0
Make sure the denote-file-prompt uses what it got already from denote-has-single-denote-directory-p 2025-10-30 13:36:45 +02:00
Protesilaos Stavrou 252908697a
Make denote-link--buffer-file-prompt only check for denote-directory once 2025-10-30 13:36:22 +02:00
Protesilaos Stavrou cce09d2a25
Make denote-select-from-files-prompt only check for denote-directory once 2025-10-30 13:32:47 +02:00
Protesilaos Stavrou c3675d20e3
Remove trailing spaces from denote-md-link-in-context-regexp 2025-10-30 07:17:09 +02:00
Protesilaos Stavrou 0fb25e6770
Make hash table test function sharp quoted 2025-10-30 06:17:25 +02:00
Protesilaos Stavrou 84aa0d3bb7
Reword the denote-directory doc string to avoid two pedantic warnings 2025-10-30 06:16:53 +02:00
Protesilaos Stavrou 8dd6f868be
Make stylistic changes to denote-sluggify-and-apply-rules
I think this makes it easier to read. Besides, I found my first
legitimate use of 'thread-first'... party time!
2025-10-29 19:04:21 +02:00
Protesilaos Stavrou 50f9496734
Use the correct :type for user options that expect regexp or nil
Thanks to Stefan Monnier for pointing this out on the emacs-devel
mailing list: <https://lists.gnu.org/archive/html/emacs-devel/2025-10/msg00683.html>.
2025-10-26 14:13:44 +02:00
Protesilaos Stavrou cd6dd03f80
Merge branch 'changes-for-4.2.0' 2025-10-25 17:20:08 +03:00
Protesilaos Stavrou 13a4de04c8
Bump version number to trigger GNU ELPA rebuild for commit 9e638cc 2025-10-18 07:57:49 +03:00
Protesilaos Stavrou 9e638cc72f
Use 'define-obsolete-variable-alias' instead of 'make-obsolete-variable' for two that are still used
Thanks to Matthias Fuchs for informing me about a package that
depended on the old symbols. This was done in issue 640:
<https://github.com/protesilaos/denote/issues/640>.
2025-10-18 07:56:57 +03:00
Protesilaos Stavrou d69a679b2c
Make denote-infer-keywords enforce a controlled vocabulary when nil
This was always the implied use-case, but we were not enforcing it at
the minibuffer prompt.
2025-10-18 07:16:37 +03:00
Protesilaos Stavrou fcf5bccfd5
Use a more obvious name for denote-excluded-keywords-regexp 2025-10-18 07:00:06 +03:00
Protesilaos Stavrou c1250c9434
Update the documentation of denote-directory to better explain what it is about 2025-10-18 06:24:38 +03:00
Protesilaos Stavrou ff373d18e4
Fix a link in the latest CHANGELOG.org 2025-10-17 09:52:15 +03:00
Protesilaos Stavrou d4ba0eb290
Update to Denote version 4.1.0 2025-10-17 09:32:59 +03:00
Protesilaos Stavrou 0cc7a0d918
Fix a typo in the manual 2025-10-16 19:15:07 +03:00
Protesilaos Stavrou e9bfd528d5
Add missing last-modified from the :type of denote-sort-dired-default-sort-component 2025-10-16 19:14:33 +03:00