[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 6227df012f 100/355: Make org-capture always set
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 6227df012f 100/355: Make org-capture always set .org extension |
Date: |
Sun, 26 Jun 2022 23:58:05 -0400 (EDT) |
branch: externals/denote
commit 6227df012f787fb9bd46fdf72b243ce31bc91b40
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make org-capture always set .org extension
---
README.org | 5 +++++
denote-org-capture.el | 16 +++++++++++++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index 7ee2f45241..13331c3e41 100644
--- a/README.org
+++ b/README.org
@@ -224,6 +224,11 @@ in the template. Instead, they have to be assigned to the
user option
(setq denote-org-capture-specifiers "%l\n%i\n%?")
#+end_src
+Note that ~denote-org-capture~ ignores the ~denote-file-type~: it always
+sets the Org file extension for the created note to ensure that the
+capture process works as intended, especially for the desired output of
+the ~denote-org-capture-specifiers~.
+
* Front matter
:PROPERTIES:
:CUSTOM_ID: h:13218826-56a5-482a-9b91-5b6de4f14261
diff --git a/denote-org-capture.el b/denote-org-capture.el
index 4f3b2d5501..ba3c22e624 100644
--- a/denote-org-capture.el
+++ b/denote-org-capture.el
@@ -46,6 +46,11 @@
;; :immediate-finish nil
;; :kill-buffer t
;; :jump-to-captured t)))
+;;
+;; Note that `denote-org-capture' ignores the `denote-file-type': it
+;; always sets the Org file extension for the created note to ensure
+;; that the capture process works as intended, especially for the
+;; desired output of the `denote-org-capture-specifiers'.
;;; Code:
@@ -73,10 +78,15 @@ The file is populated with Denote's front matter. It can
then be
expanded with the usual specifiers or strings that
`org-capture-templates' supports.
-Search the source code of this function for a comment with a
-sample template. We will eventually have a manual."
+Note that this function ignores the `denote-file-type': it always
+sets the Org file extension for the created note to ensure that
+the capture process works as intended, especially for the desired
+output of the `denote-org-capture-specifiers'.
+
+Consult the manual for template samples."
(let ((title (denote--title-prompt))
- (keywords (denote--keywords-prompt)))
+ (keywords (denote--keywords-prompt))
+ (denote-file-type nil)) ; we enforce the .org extension for
`org-capture'
(denote--path title keywords)
(denote--prepare-note denote-last-title denote-last-keywords
denote-last-path)
(denote--keywords-add-to-history denote-last-keywords)
- [elpa] externals/denote 06cbd091d1 049/355: Tweak README---this is a work-in-progress, (continued)
- [elpa] externals/denote 06cbd091d1 049/355: Tweak README---this is a work-in-progress, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9a2c501cd4 051/355: Tweak wording in description, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 712e24465a 065/355: Update denote-dired.el Commentary, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 69e35281da 070/355: Document denote-front-matter-date-format, ELPA Syncer, 2022/06/27
- [elpa] externals/denote dfc3a8fc60 071/355: Use denote-directory rather than hardcoded path, ELPA Syncer, 2022/06/27
- [elpa] externals/denote eee100cc50 062/355: Add denote-dired-rename-file, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0e65f05bbb 080/355: Use 'delete-region' instead of 'delete-line', ELPA Syncer, 2022/06/27
- [elpa] externals/denote ab27f5a547 086/355: Tweak sample configuration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f97f1f8b56 082/355: chore: Ignore compiled and autoloads Emacs-Lisp files, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8167d0c30c 091/355: Revert "Stop recording the file path in the front matter", ELPA Syncer, 2022/06/27
- [elpa] externals/denote 6227df012f 100/355: Make org-capture always set .org extension,
ELPA Syncer <=
- [elpa] externals/denote e840648623 098/355: Fix typo in the manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9f192263db 092/355: Remove file path from front matter; improve links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote db9584f51d 093/355: BREAKING Change date/identifier pattern, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3e2b560548 099/355: Elaborate on the Overview of Denote, ELPA Syncer, 2022/06/27
- [elpa] externals/denote cfe6e98e7b 090/355: Stop recording the file path in the front matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 2bc5df6011 103/355: denote-file-type: 'markdown-yaml', not 'markdown', ELPA Syncer, 2022/06/27
- [elpa] externals/denote d83c166c0d 125/355: Fix regexp for keywords, ELPA Syncer, 2022/06/27
- [elpa] externals/denote ebdacb3fea 073/355: Update doc string of denote-directory function, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 91f4780779 083/355: Merge pull request #3 from kaushalmodi/add-gitignore, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 17ad20f356 097/355: Document section on front matter, ELPA Syncer, 2022/06/27