mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Merge pull request #728 from kimsaram32/docs-remove-obsolete-functions
Remove obsolete functions in the documentation
This commit is contained in:
commit
32d83aa68b
23
README.org
23
README.org
|
|
@ -4947,9 +4947,9 @@ commands:
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun my-denote--note-has-no-contents-p (file)
|
(defun my-denote--note-has-no-contents-p (file)
|
||||||
"Return non-nil if FILE is an empty note.
|
"Return non-nil if FILE is an empty note.
|
||||||
This means that FILE conforms with `denote-file-is-note-p' and either
|
This means that FILE conforms with `denote-file-has-denoted-filename-p' and either
|
||||||
has no contents or has only the front matter."
|
has no contents or has only the front matter."
|
||||||
(and (denote-file-is-note-p file)
|
(and (denote-file-has-denoted-filename-p file)
|
||||||
(or (denote--file-with-temp-buffer file
|
(or (denote--file-with-temp-buffer file
|
||||||
(re-search-forward "^$" nil t)
|
(re-search-forward "^$" nil t)
|
||||||
(if (re-search-forward "[^\s\t\n\r]+" nil t)
|
(if (re-search-forward "[^\s\t\n\r]+" nil t)
|
||||||
|
|
@ -5040,7 +5040,7 @@ title or keywords fields.
|
||||||
Add this function to the `after-save-hook'."
|
Add this function to the `after-save-hook'."
|
||||||
(let ((denote-rename-confirmations nil)
|
(let ((denote-rename-confirmations nil)
|
||||||
(denote-save-buffers t)) ; to save again post-rename
|
(denote-save-buffers t)) ; to save again post-rename
|
||||||
(when (and buffer-file-name (denote-file-is-note-p buffer-file-name))
|
(when (and buffer-file-name (denote-file-has-denoted-filename-p buffer-file-name))
|
||||||
(ignore-errors (denote-rename-file-using-front-matter buffer-file-name))
|
(ignore-errors (denote-rename-file-using-front-matter buffer-file-name))
|
||||||
(message "Buffer saved; Denote file renamed"))))
|
(message "Buffer saved; Denote file renamed"))))
|
||||||
|
|
||||||
|
|
@ -5759,11 +5759,6 @@ The following sections cover the specifics.
|
||||||
+ Function ~denote-date-identifier-p~ :: Return non-nil if =IDENTIFIER=
|
+ Function ~denote-date-identifier-p~ :: Return non-nil if =IDENTIFIER=
|
||||||
string is a Denote date identifier.
|
string is a Denote date identifier.
|
||||||
|
|
||||||
#+findex: denote-file-is-note-p
|
|
||||||
+ Function ~denote-file-is-note-p~ :: Return non-nil if =FILE= is an
|
|
||||||
actual Denote note. For our purposes, a note must satisfy
|
|
||||||
~file-regular-p~ and ~denote-filename-is-note-p~.
|
|
||||||
|
|
||||||
#+findex: denote-file-has-identifier-p
|
#+findex: denote-file-has-identifier-p
|
||||||
+ Function ~denote-file-has-identifier-p~ :: Return non-nil if =FILE=
|
+ Function ~denote-file-has-identifier-p~ :: Return non-nil if =FILE=
|
||||||
has a Denote identifier.
|
has a Denote identifier.
|
||||||
|
|
@ -6048,10 +6043,6 @@ there will be no corresponding prompt.
|
||||||
+ Function ~denote-get-path-by-id~ :: Return absolute path of =ID=
|
+ Function ~denote-get-path-by-id~ :: Return absolute path of =ID=
|
||||||
string in ~denote-directory-files~.
|
string in ~denote-directory-files~.
|
||||||
|
|
||||||
#+findex: denote-get-identifier-at-point
|
|
||||||
+ Function ~denote-get-identifier-at-point~ :: Return the identifier
|
|
||||||
at point or =POINT=.
|
|
||||||
|
|
||||||
#+findex: denote-extract-keywords-from-path
|
#+findex: denote-extract-keywords-from-path
|
||||||
+ Function ~denote-extract-keywords-from-path~ :: Extract keywords
|
+ Function ~denote-extract-keywords-from-path~ :: Extract keywords
|
||||||
from =PATH= and return them as a list of strings. =PATH= must be a
|
from =PATH= and return them as a list of strings. =PATH= must be a
|
||||||
|
|
@ -6412,8 +6403,8 @@ there will be no corresponding prompt.
|
||||||
an identifier-only link in its context. The format of such links is
|
an identifier-only link in its context. The format of such links is
|
||||||
~denote-id-only-link-format~.
|
~denote-id-only-link-format~.
|
||||||
|
|
||||||
#+findex: denote-select-linked-file-prompt
|
#+findex: denote-select-from-files-prompt
|
||||||
+ Function ~denote-select-linked-file-prompt~ :: Prompt for linked
|
+ Function ~denote-select-from-files-prompt~ :: Prompt for linked
|
||||||
file among =FILES=.
|
file among =FILES=.
|
||||||
|
|
||||||
#+findex: denote-get-links
|
#+findex: denote-get-links
|
||||||
|
|
@ -6446,6 +6437,10 @@ there will be no corresponding prompt.
|
||||||
~denote-link-description-format~ (which can optionally be bound to a
|
~denote-link-description-format~ (which can optionally be bound to a
|
||||||
function).
|
function).
|
||||||
|
|
||||||
|
#+findex: denote-get-link-identifier-or-query-term-at-point
|
||||||
|
+ Function ~denote-get-link-identifier-or-query-term-at-point~ :: Return the
|
||||||
|
Denote identifier or query term at point or optional =POSITION=.
|
||||||
|
|
||||||
** Xref interface for developers or advanced users
|
** Xref interface for developers or advanced users
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h:e824c215-1c31-4b26-b994-7df67341d075
|
:CUSTOM_ID: h:e824c215-1c31-4b26-b994-7df67341d075
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue