emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 612a817038 1/2: Improve format of reference for


From: ELPA Syncer
Subject: [elpa] externals/denote 612a817038 1/2: Improve format of reference for developers
Date: Thu, 29 Sep 2022 23:57:30 -0400 (EDT)

branch: externals/denote
commit 612a8170380041076d8bec817ee5aa194db0ac39
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Improve format of reference for developers
---
 README.org | 274 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 143 insertions(+), 131 deletions(-)

diff --git a/README.org b/README.org
index b18d27c66d..e66ca17ce3 100644
--- a/README.org
+++ b/README.org
@@ -2281,86 +2281,90 @@ its symbol such as ~denote--file-extension~.  Do not 
use those as we
 might change them without further notice.
 
 #+findex: denote-file-is-note-p
-+ ~denote-file-is-note-p~ :: Return non-nil if =FILE= is an actual
-  Denote note.  For our purposes, a note must not be a directory, must
-  satisfy ~file-regular-p~, its path must be part of the variable
-  ~denote-directory~, it must have a Denote identifier in its name,
-  and use one of the extensions implied by ~denote-file-type~.
++ Function ~denote-file-is-note-p~ :: Return non-nil if =FILE= is an
+  actual Denote note.  For our purposes, a note must not be a
+  directory, must satisfy ~file-regular-p~, its path must be part of
+  the variable ~denote-directory~, it must have a Denote identifier in
+  its name, and use one of the extensions implied by
+  ~denote-file-type~.
 
 #+findex: denote-file-has-identifier-p
-+ ~denote-file-has-identifier-p~ :: Return non-nil if FILE has a Denote
-  identifier.
++ Function ~denote-file-has-identifier-p~ :: Return non-nil if =FILE=
+  has a Denote identifier.
 
 #+findex: denote-file-has-supported-extension-p
-+ ~denote-file-has-supported-extension-p~ :: Return non-nil if =FILE=
-  has supported extension.  Also account for the possibility of an added
-  =.gpg= suffix. Supported extensions are those implied by
++ Function ~denote-file-has-supported-extension-p~ :: Return non-nil
+  if =FILE= has supported extension.  Also account for the possibility
+  of an added =.gpg= suffix. Supported extensions are those implied by
   ~denote-file-type~.
 
 #+findex: denote-file-is-writable-and-supported-p
-+ ~denote-file-is-writable-and-supported-p~ :: Return non-nil if =FILE=
-  is writable and has supported extension.
++ Function ~denote-file-is-writable-and-supported-p~ :: Return non-nil
+  if =FILE= is writable and has supported extension.
 
 #+findex: denote-keywords
-+ ~denote-keywords~ :: Return appropriate list of keyword candidates.
-  If ~denote-infer-keywords~ is non-nil, infer keywords from existing
-  notes and combine them into a list with ~denote-known-keywords~.  Else
-  use only the latter ([[#h:6a92a8b5-d766-42cc-8e5b-8dc255466a23][Standard 
note creation]]).
++ Function ~denote-keywords~ :: Return appropriate list of keyword
+  candidates.  If ~denote-infer-keywords~ is non-nil, infer keywords
+  from existing notes and combine them into a list with
+  ~denote-known-keywords~.  Else use only the latter set of keywords
+  ([[#h:6a92a8b5-d766-42cc-8e5b-8dc255466a23][Standard note creation]]).
 
 #+findex: denote-directory
-+ ~denote-directory~ (function) :: Return path of the variable
++ Function ~denote-directory~ :: Return path of the variable
   ~denote-directory~ as a proper directory, also because it accepts a
-  directory-local value ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain 
separate directories for notes]]).
+  directory-local value for what we internally refer to as "silos"
+  ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain separate directories 
for notes]]).
 
 #+findex: denote-directory-files
-+ ~denote-directory-files~ :: Return list of absolute file paths in
-  variable ~denote-directory~. The returned files only need to have an
-  identifier.  This may include files that are not implied by
-  ~denote-file-type~.  Remember that the ~denote-directory~ accepts a
-  directory-local value ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain 
separate directories for notes]]).
++ Function ~denote-directory-files~ :: Return list of absolute file
+  paths in variable ~denote-directory~. The returned files only need
+  to have an identifier.  This may include files that are not implied
+  by ~denote-file-type~.  Remember that the ~denote-directory~ accepts
+  a directory-local value ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain 
separate directories for notes]]).
 
 #+findex: denote-directory-subdirectories
-+ ~denote-directory-subdirectories~ :: Return list of subdirectories in
-  variable ~denote-directory~.  Note that the ~denote-directory~ accepts
-  a directory-local value ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain 
separate directories for notes]]).
++ Function ~denote-directory-subdirectories~ :: Return list of
+  subdirectories of the variable ~denote-directory~.  Note that the
+  ~denote-directory~ accepts a directory-local value for what we call
+  "silos" ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain separate 
directories for notes]]).
 
 #+findex: denote-directory-files-matching-regexp
-+ ~denote-directory-files-matching-regexp~ :: Return list of files
-  matching =REGEXP= in ~denote-directory-files~.
++ Function ~denote-directory-files-matching-regexp~ :: Return list of
+  files matching =REGEXP= in ~denote-directory-files~.
 
 #+findex: denote-file-name-relative-to-denote-directory
-+ ~denote-file-name-relative-to-denote-directory~ :: Return name of
-  =FILE= relative to the variable ~denote-directory~.  =FILE= must be an
-  absolute path.
++ Function ~denote-file-name-relative-to-denote-directory~ :: Return
+  name of =FILE= relative to the variable ~denote-directory~.  =FILE=
+  must be an absolute path.
 
 #+findex: denote-get-path-by-id
-+ ~denote-get-path-by-id~ :: Return absolute path of =ID= string in
-  ~denote-directory-files~.
++ Function ~denote-get-path-by-id~ :: Return absolute path of =ID=
+  string in ~denote-directory-files~.
 
 #+findex: denote-barf-duplicate-id
-+ ~denote-barf-duplicate-id~ :: Throw a ~user-error~ if =IDENTIFIER=
-  already exists.
++ Function ~denote-barf-duplicate-id~ :: Throw a ~user-error~ if
+  =IDENTIFIER= already exists.
 
 #+findex: denote-sluggify
-+ ~denote-sluggify~ :: Make =STR= an appropriate slug for file names and
-  related ([[#h:ae8b19a1-7f67-4258-96b3-370a72c43f4e][Sluggified title and 
keywords]]).
++ Function ~denote-sluggify~ :: Make =STR= an appropriate slug for
+  file names and related 
([[#h:ae8b19a1-7f67-4258-96b3-370a72c43f4e][Sluggified title and keywords]]).
 
 #+findex: denote-sluggify-and-join
-+ ~denote-sluggify-and-join~ :: Sluggify =STR= while joining separate
-  words.
++ Function ~denote-sluggify-and-join~ :: Sluggify =STR= while joining
+  separate words.
 
 #+findex: denote-desluggify
-+ ~denote-desluggify~ :: Upcase first char in =STR= and dehyphenate =STR=,
-  inverting ~denote-sluggify~.  Basically, convert =this-is-a-test= to
-  =This is a test=.
++ Function ~denote-desluggify~ :: Upcase first char in =STR= and
+  dehyphenate =STR=, inverting ~denote-sluggify~.  Basically, convert
+  =this-is-a-test= to =This is a test=.
 
 #+findex: denote-sluggify-keywords
-+ ~denote-sluggify-keywords~ :: Sluggify =KEYWORDS=, which is a list of
-  strings ([[#h:ae8b19a1-7f67-4258-96b3-370a72c43f4e][Sluggified title and 
keywords]]).
++ Function ~denote-sluggify-keywords~ :: Sluggify =KEYWORDS=, which is
+  a list of strings ([[#h:ae8b19a1-7f67-4258-96b3-370a72c43f4e][Sluggified 
title and keywords]]).
 
 #+findex: denote-filetype-heuristics
-+ ~denote-filetype-heuristics~ :: Return likely file type of =FILE=.
-  Use the file extension to detect the file type of the file.
++ Function ~denote-filetype-heuristics~ :: Return likely file type of
+  =FILE=.  Use the file extension to detect the file type of the file.
 
   If more than one file type correspond to this file extension, use the
   first file type for which the key-title-kegexp matches in the file or,
@@ -2371,106 +2375,111 @@ might change them without further notice.
   file type is assumed to be the first of ~denote-file-types~.
 
 #+findex: denote-format-file-name
-+ ~denote-format-file-name~ :: Format file name.  =PATH=, =ID=,
-  =KEYWORDS=, =TITLE-SLUG= are expected to be supplied by ~denote~ or
-  equivalent: they will all be converted into a single string.
-  =EXTENSION= is the file type extension, as a string.
++ Function ~denote-format-file-name~ :: Format file name.  =PATH=,
+  =ID=, =KEYWORDS=, =TITLE-SLUG= are expected to be supplied by
+  ~denote~ or equivalent: they will all be converted into a single
+  string.  =EXTENSION= is the file type extension, as a string.
 
 #+findex: denote-extract-keywords-from-path
-+ ~denote-extract-keywords-from-path~ :: Extract keywords from =PATH=
-  and return them as a list of strings.  =PATH= must be a Denote-style
-  file name where keywords are prefixed with an underscore.  If =PATH=
-  has no such keywords, return nil 
([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The file-naming scheme]]).
++ Function ~denote-extract-keywords-from-path~ :: Extract keywords
+  from =PATH= and return them as a list of strings.  =PATH= must be a
+  Denote-style file name where keywords are prefixed with an
+  underscore.  If =PATH= has no such keywords, which is possible,
+  return nil ([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The file-naming 
scheme]]).
 
 #+findex: denote-extract-id-from-string
-+ ~denote-extract-id-from-string~ :: Return existing Denote identifier
-  in =STRING=, else nil.
++ Function ~denote-extract-id-from-string~ :: Return existing Denote
+  identifier in =STRING=, else nil.
 
 #+findex: denote-retrieve-filename-identifier
-+ ~denote-retrieve-filename-identifier~ :: Extract identifier from
-  =FILE= name.  To only return an existing identifier or create a new
-  one, refer to the ~denote-retrieve-or-create-file-identifier~
++ Function ~denote-retrieve-filename-identifier~ :: Extract identifier
+  from =FILE= name.  To only return an existing identifier or create a
+  new one, refer to the ~denote-retrieve-or-create-file-identifier~
   function.
 
 #+findex: denote-retrieve-or-create-file-identifier
-+ ~denote-retrieve-or-create-file-identifier~ :: Extract identifier from
-  =FILE= name.  To only return an existing identifier or create a new one,
-  refer to the function ~denote-retrieve-or-create-file-identifier~.
++ Function ~denote-retrieve-or-create-file-identifier~ :: Extract
+  identifier from =FILE= name.  To only return an existing identifier
+  or create a new one, refer to the function
+  ~denote-retrieve-or-create-file-identifier~.
 
 #+findex: denote-retrieve-filename-title
-+ ~denote-retrieve-filename-title~ :: Extract title from =FILE= name,
-  else return ~file-name-base~.  Run ~denote-desluggify~ on the title if
-  the extraction is successful.
++ Function ~denote-retrieve-filename-title~ :: Extract title from
+  =FILE= name, else return ~file-name-base~.  Run ~denote-desluggify~
+  on the title if the extraction is successful.
 
 #+findex: denote-retrieve-title-value
-+ ~denote-retrieve-title-value~ :: Return title value from =FILE= front
-  matter per =FILE-TYPE=.
++ Function ~denote-retrieve-title-value~ :: Return title value from
+  =FILE= front matter per =FILE-TYPE=.
 
 #+findex: denote-retrieve-title-line
-+ ~denote-retrieve-title-line~ :: Return title line from =FILE= front
-  matter per =FILE-TYPE=.
++ Function ~denote-retrieve-title-line~ :: Return title line from
+  =FILE= front matter per =FILE-TYPE=.
 
 #+findex: denote-retrieve-keywords-value
-+ ~denote-retrieve-keywords-value~ :: Return keywords value from =FILE=
-  front matter per =FILE-TYPE=.
++ Function ~denote-retrieve-keywords-value~ :: Return keywords value
+  from =FILE= front matter per =FILE-TYPE=.
 
 #+findex: denote-retrieve-keywords-line
-+ ~denote-retrieve-keywords-line~ :: Return keywords line from =FILE=
-  front matter per =FILE-TYPE=.
++ Function ~denote-retrieve-keywords-line~ :: Return keywords line
+  from =FILE= front matter per =FILE-TYPE=.
 
 #+findex: denote-file-prompt
-+ ~denote-file-prompt~ :: Prompt for file with identifier in variable
-  ~denote-directory~.
++ Function ~denote-file-prompt~ :: Prompt for file with identifier in
+  variable ~denote-directory~.
 
 #+findex: denote-keywords-prompt
-+ ~denote-keywords-prompt~ :: Prompt for one or more keywords.  In the
-  case of multiple entries, those are separated by the ~crm-sepator~,
-  which typically is a comma.  In such a scenario, the output is sorted
-  with ~string-lessp~.
++ Function ~denote-keywords-prompt~ :: Prompt for one or more
+  keywords.  In the case of multiple entries, those are separated by
+  the ~crm-sepator~, which typically is a comma.  In such a scenario,
+  the output is sorted with ~string-lessp~.
 
 #+findex: denote-title-prompt
-+ ~denote-title-prompt~ :: Read file title for ~denote~.  With optional
-  =DEFAULT-TITLE= use it as the default value.
++ Function ~denote-title-prompt~ :: Read file title for ~denote~.
+  With optional =DEFAULT-TITLE= use it as the default value.
 
 #+findex: denote-file-type-prompt
-+ ~denote-file-type-prompt~ :: Prompt for ~denote-file-type~.  Note that
-  a non-nil value other than ~text~, ~markdown-yaml~, and
-  ~markdown-toml~ falls back to an Org file type.  We use ~org~ here for
-  clarity.
++ Function ~denote-file-type-prompt~ :: Prompt for ~denote-file-type~.
+  Note that a non-nil value other than ~text~, ~markdown-yaml~, and
+  ~markdown-toml~ falls back to an Org file type.  We use ~org~ here
+  for clarity.
 
 #+findex: denote-date-prompt
-+ ~denote-date-prompt~ :: Prompt for date, expecting =YYYY-MM-DD= or
-  that plus =HH:MM= (or =HH:MM:SS=).  Use Org's more advanced date
-  selection utility if ~denote-date-prompt-use-org-read-date~ is
-  non-nil ([[#h:e7ef08d6-af1b-4ab3-bb00-494a653e6d63][The 
denote-date-prompt-use-org-read-date option]]).
++ Function ~denote-date-prompt~ :: Prompt for date, expecting
+  =YYYY-MM-DD= or that plus =HH:MM= (or even =HH:MM:SS=).  Use Org's
+  more advanced date selection utility if the user option
+  ~denote-date-prompt-use-org-read-date~ is non-nil.  It requires Org
+  ([[#h:e7ef08d6-af1b-4ab3-bb00-494a653e6d63][The 
denote-date-prompt-use-org-read-date option]]).
 
 #+findex: denote-template-prompt
-+ ~denote-template-prompt~ :: Prompt for template key in
++ Function ~denote-template-prompt~ :: Prompt for template key in
   ~denote-templates~ and return its value.
 
 #+findex: denote-subdirectory-prompt
-+ ~denote-subdirectory-prompt~ :: Prompt for subdirectory of the
-  variable ~denote-directory~.  The table uses the ~file~ completion
-  category (so it works with packages such as ~marginalia~ and
-  ~embark~).
++ Function ~denote-subdirectory-prompt~ :: Prompt for subdirectory of
+  the variable ~denote-directory~.  The table uses the ~file~
+  completion category (so it works with packages such as ~marginalia~
+  and ~embark~).
 
 #+findex: denote-rename-file-prompt
-+ ~denote-rename-file-prompt~ :: Prompt to rename file named =OLD-NAME=
-  to =NEW-NAME=.
++ Function ~denote-rename-file-prompt~ :: Prompt to rename file named
+  =OLD-NAME= to =NEW-NAME=.
 
 #+findex: denote-rename-file-and-buffer
-+ ~denote-rename-file-and-buffer~ :: Rename file named =OLD-NAME= to
-  =NEW-NAME=, updating buffer name.
++ Function ~denote-rename-file-and-buffer~ :: Rename file named
+  =OLD-NAME= to =NEW-NAME=, updating buffer name.
 
 #+findex: denote-update-dired-buffers
-+ ~denote-update-dired-buffers~ :: Update Dired buffers of variable
-  ~denote-directory~.  Note that the ~denote-directory~ accepts a
-  directory-local value ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain 
separate directories for notes]]).
++ Function ~denote-update-dired-buffers~ :: Update Dired buffers of
+  variable ~denote-directory~.  Note that the ~denote-directory~
+  accepts a directory-local value for what we internally refer to as
+  "silos" ([[#h:15719799-a5ff-4e9a-9f10-4ca03ef8f6c5][Maintain separate 
directories for notes]]).
 
 #+vindex: denote-file-types
-+ ~denote-file-types~ :: Alist of ~denote-file-type~ and their format
-  properties.  Each element is of the form =(SYMBOL . PROPERTY-LIST)=.
-  =SYMBOL= is one of those specified in ~denote-file-type~.
++ Variable ~denote-file-types~ :: Alist of ~denote-file-type~ and
+  their format properties.  Each element is of the form =(SYMBOL
+  . PROPERTY-LIST)=.  =SYMBOL= is one of those specified in
+  ~denote-file-type~.
 
   =PROPERTY-LIST= is a plist that consists of eight elements:
 
@@ -2509,57 +2518,60 @@ might change them without further notice.
      of the =:keywords-value-function=.
 
 #+vindex: denote-org-front-matter
-+ ~denote-org-front-matter~ :: Variable holding the Org front matter.
-  It is passed to ~format~ with arguments =TITLE=, =DATE=, =KEYWORDS=,
-  =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter 
format]])
++ Variable ~denote-org-front-matter~ :: Specifies the Org front
+  matter.  It is passed to ~format~ with arguments =TITLE=, =DATE=,
+  =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the 
front matter format]])
 
 #+vindex: denote-yaml-front-matter
-+ ~denote-yaml-front-matter~ :: Variable holding the YAML (Markdown)
++ Variable ~denote-yaml-front-matter~ :: Specifies the YAML (Markdown)
   front matter.  It is passed to ~format~ with arguments =TITLE=,
   =DATE=, =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change 
the front matter format]])
 
 #+vindex: denote-toml-front-matter
-+ ~denote-toml-front-matter~ :: Variable holding the TOML (Markdown)
++ Variable ~denote-toml-front-matter~ :: Specifies the TOML (Markdown)
   front matter.  It is passed to ~format~ with arguments =TITLE=,
   =DATE=, =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change 
the front matter format]])
 
 #+vindex: denote-text-front-matter
-+ ~denote-text-front-matter~ :: Variable holding the plain text front
-  matter.  It is passed to ~format~ with arguments =TITLE=, =DATE=,
-  =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the 
front matter format]])
++ Variable ~denote-text-front-matter~ :: Specifies the plain text
+  front matter.  It is passed to ~format~ with arguments =TITLE=,
+  =DATE=, =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change 
the front matter format]])
 
 #+findex: denote-surround-with-quotes
-+ ~denote-surround-with-quotes~ :: Surround string =S= with quotes.
-  This can be used in ~denote-file-types~ to format front mattter.
++ Function ~denote-surround-with-quotes~ :: Surround string =S= with
+  quotes.  This can be used in ~denote-file-types~ to format front
+  mattter.
 
 #+findex: denote-trim-whitespace
-+ ~denote-trim-whitespace~ :: Trim whitespace around string =S= .  This
-  can be used in ~denote-file-types~ to format front mattter.
++ Function ~denote-trim-whitespace~ :: Trim whitespace around string
+  =S=.  This can be used in ~denote-file-types~ to format front
+  mattter.
 
 #+findex: denote-trim-whitespace-then-quotes
-+ ~denote-trim-whitespace-then-quotes~ :: Trim whitespace then quotes
-  around string =S=.  This can be used in ~denote-file-types~ to format
-  front mattter.
++ Function ~denote-trim-whitespace-then-quotes~ :: Trim whitespace
+  then quotes around string =S=.  This can be used in
+  ~denote-file-types~ to format front mattter.
 
 #+findex: denote-format-keywords-for-md-front-matter
-+ ~denote-format-keywords-for-md-front-matter~ :: Format front matter
-  =KEYWORDS= for markdown file type.  =KEYWORDS= is a list of strings.
-  Consult the ~denote-file-types~ for how this is used.
++ Function ~denote-format-keywords-for-md-front-matter~ :: Format
+  front matter =KEYWORDS= for markdown file type.  =KEYWORDS= is a
+  list of strings.  Consult the ~denote-file-types~ for how this is
+  used.
 
 #+findex: denote-format-keywords-for-text-front-matter
-+ ~denote-format-keywords-for-text-front-matter~ :: Format front matter
-  =KEYWORDS= for text file type.  =KEYWORDS= is a list of strings.
-  Consult the ~denote-file-types~ for how this is used.
++ Function ~denote-format-keywords-for-text-front-matter~ :: Format
+  front matter =KEYWORDS= for text file type.  =KEYWORDS= is a list of
+  strings.  Consult the ~denote-file-types~ for how this is used.
 
 #+findex: denote-format-keywords-for-org-front-matter
-+ ~denote-format-keywords-for-org-front-matter~ :: Format front matter
-  =KEYWORDS= for org file type.  =KEYWORDS= is a list of strings.
-  Consult the ~denote-file-types~ for how this is used.
++ Function ~denote-format-keywords-for-org-front-matter~ :: Format
+  front matter =KEYWORDS= for org file type.  =KEYWORDS= is a list of
+  strings.  Consult the ~denote-file-types~ for how this is used.
 
 #+findex: denote-extract-keywords-from-front-matter
-+ ~denote-extract-keywords-from-front-matter~ :: Format front matter
-  =KEYWORDS= for org file type.  =KEYWORDS= is a list of strings.
-  Consult the ~denote-file-types~ for how this is used.
++ Function ~denote-extract-keywords-from-front-matter~ :: Format front
+  matter =KEYWORDS= for org file type.  =KEYWORDS= is a list of
+  strings.  Consult the ~denote-file-types~ for how this is used.
 
 * Contributing
 :PROPERTIES:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]