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

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

[elpa] externals/leaf 4e73a44 26/29: follow org-mode grammar and better


From: Stefan Monnier
Subject: [elpa] externals/leaf 4e73a44 26/29: follow org-mode grammar and better conventions
Date: Tue, 10 Nov 2020 14:47:44 -0500 (EST)

branch: externals/leaf
commit 4e73a448788e8a9e322ce26765c99fc9c24174ca
Author: Naoya Yamashita <conao3@gmail.com>
Commit: Naoya Yamashita <conao3@gmail.com>

    follow org-mode grammar and better conventions
---
 README.org | 521 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 281 insertions(+), 240 deletions(-)

diff --git a/README.org b/README.org
index c3badca..e984449 100644
--- a/README.org
+++ b/README.org
@@ -1,5 +1,9 @@
-#+author: conao3
+#+title: leaf.el
+#+author: Naoya Yamashita
 #+date: <2018-10-25 Thu>
+#+exclude_tags: noexport
+
+* Badges                                                           :noexport:
 
 
[[https://github.com/conao3/leaf.el][https://raw.githubusercontent.com/conao3/files/master/blob/headers/png/leaf.el.png]]
 
[[https://github.com/conao3/leaf.el/blob/master/LICENSE][https://img.shields.io/github/license/conao3/leaf.el.svg?style=flat-square]]
@@ -12,75 +16,79 @@
 [[https://melpa.org/#/leaf][https://melpa.org/packages/leaf-badge.svg]]
 
[[https://stable.melpa.org/#/leaf][https://stable.melpa.org/packages/leaf-badge.svg]]
 
-* Table of Contents
-- [[#description][Description]]
-- [[#install][Install]]
-- [[#usage][Usage]]
-- [[#customize][Customize]]
-- [[#syntax][Syntax]]
-- [[#basic-keywords][Basic keywords]]
-  - [[#none-keyword][none (keyword)]]
-  - [[#require-keyword][:require keyword]]
-  - [[#ensure-package-keywords][:ensure, :package keywords]]
-  - [[#preface-init-config-keywords][:preface, :init, :config keywords]]
-  - [[#defer-config-keyword][:defer-config keyword]]
-  - [[#commands-keyword][:commands keyword]]
-  - [[#after-keyword][:after keyword]]
-  - [[#bind-bind-keywords][:bind, :bind* keywords]]
-- [[#configure-variables-keywords][Configure variables keywords]]
-  - [[#custom-custom-custom-face-keywords][:custom, :custom*, :custom-face 
keywords]]
-  - [[#pre-setq-setq-setq-default-keywords][:pre-setq, :setq, :setq-default 
keywords]]
-- [[#configure-list-keywords][Configure list keywords]]
-  - [[#mode-interpreter-keywords][:mode, :interpreter keywords]]
-  - [[#magic-magic-fallback-keywords][:magic, :magic-fallback keywords]]
-  - [[#hook-keyword][:hook keyword]]
-  - [[#load-path-load-path-keywords][:load-path, :load-path* keywords]]
-- [[#condition-keywords][Condition keywords]]
-  - [[#disabled-keyword][:disabled keyword]]
-  - [[#if-when-unless-keywords][:if, :when, :unless keywords]]
-  - [[#emacs-emacs-emacs-emacs-emacs-keywords][:emacs<, :emacs<=, :emacs=, 
:emacs>, :emacs>= keywords]]
-- [[#byte-compile-keywords][Byte compile keywords]]
-  - [[#defun-defvar-keywords][:defun, :defvar keywords]]
-- [[#documentation-keywords][Documentation keywords]]
-  - [[#doc-req-tag-file-url-keywords][:doc, :req, :tag, :file, :url keywords]]
-- [[#misc-keywords][Misc keywords]]
-  - [[#global-minor-mode-keyword][:global-minor-mode keyword]]
-  - [[#advice-advice-remove-keywords][:advice, :advice-remove keywords]]
-  - [[#pl-pre-setq-pl-setq-pl-setq-default-pl-custom-keywords][:pl-pre-setq, 
:pl-setq, :pl-setq-default, :pl-custom keywords]]
-- [[#system-keywords][System keywords]]
-  - [[#leaf-protect-keyword][:leaf-protect keyword]]
-  - [[#leaf-defer-keyword][:leaf-defer keyword]]
-  - [[#leaf-autoload-keyword][:leaf-autoload keyword]]
-- [[#information][Information]]
-  - [[#donation][Donation]]
-  - [[#community][Community]]
-  - [[#contribution][Contribution]]
-    - [[#leafel-mechanism][leaf.el mechanism]]
-    - [[#adding-new-keywords][Adding new keywords]]
-    - [[#customize-leaf-keywords][Customize leaf keywords]]
-  - [[#migration][Migration]]
-    - [[#leaf-v10-to-v20][leaf v3.0 to v4.0]]
-    - [[#leaf-v20-to-v30][leaf v2.0 to v3.0]]
-    - [[#leaf-v10-to-v20][leaf v1.0 to v2.0]]
-  - [[#license][License]]
-  - [[#author][Author]]
-  - [[#contributors][Contributors]]
-  - [[#special-thanks][Special Thanks]]
+* Table of Contents                                                :noexport:
+
+- [[Description]]
+- [[Install]]
+- [[Usage]]
+- [[Customize]]
+- [[Syntax]]
+- [[Basic keywords]]
+  - [[none (keyword)]]
+  - [[:require keyword]]
+  - [[#ensure][:ensure, :package keywords]]
+  - [[:preface, :init, :config keywords]]
+  - [[:defer-config keyword]]
+  - [[:commands keyword]]
+  - [[:after keyword]]
+  - [[:bind, :bind* keywords]]
+- [[Configure variables keywords]]
+  - [[:custom, :custom*, :custom-face keywords]]
+  - [[:pre-setq, :setq, :setq-default keywords]]
+- [[Configure list keywords]]
+  - [[:mode, :interpreter keywords]]
+  - [[:magic, :magic-fallback keywords]]
+  - [[:hook keyword]]
+  - [[:load-path, :load-path* keywords]]
+- [[Condition keywords]]
+  - [[:disabled keyword]]
+  - [[:if, :when, :unless keywords]]
+  - [[:emacs<, :emacs<=, :emacs=, :emacs>, :emacs>= keywords]]
+- [[Byte compile keywords]]
+  - [[:defun, :defvar keywords]]
+- [[Documentation keywords]]
+  - [[:doc, :req, :tag, :file, :url keywords]]
+- [[Misc keywords]]
+  - [[:global-minor-mode keyword]]
+  - [[:advice, :advice-remove keywords]]
+  - [[:pl-pre-setq, :pl-setq, :pl-setq-default, :pl-custom keywords]]
+- [[System keywords]]
+  - [[:leaf-protect keyword]]
+  - [[:leaf-defer keyword]]
+  - [[:leaf-autoload keyword]]
+- [[Information]]
+  - [[Donation]]
+  - [[Community]]
+  - [[Contribution]]
+    - [[leaf.el mechanism]]
+    - [[Adding new keywords]]
+  - [[Migration]]
+    - [[leaf v3.0 to v4.0]]
+    - [[leaf v2.0 to v3.0]]
+    - [[leaf v1.0 to v2.0]]
+  - [[License]]
+  - [[Author]]
+  - [[Contributors]]
+  - [[Special Thanks]]
 
 * Description
+
 ~leaf.el~ is yet another 
[[https://github.com/jwiegley/use-package][use-package]].
 
-~leaf~ solves the stress that I feel while using the ~use-package~ for 2.5 
years.
-By developing from scratch, we have a cleaner and more predictable 
implementation than ~use-package~.
+~leaf~ solves the stress that I feel while using the ~use-package~ for
+2.5 years.  By developing from scratch, we have a cleaner and more
+predictable implementation than ~use-package~.
 
-This makes it easy to maintain and add new keywords. For examples, see 
[[https://github.com/conao3/leaf-keywords.el][leaf-keywords.el]].
+This makes it easy to maintain and add new keywords. (see 
[[https://github.com/conao3/leaf-keywords.el][leaf-keywords.el]])
 
-~leaf~ has keywords nearly identical to ~use-package~, but some of keyword 
usage is different.
+~leaf~ has keywords almost identical to ~use-package~, but some of
+usage of the keywords is different.
 
-The quickest way to solve an issue is using ~macroexpand-1~ to see the 
unfolded result if it is not what you intended.
-There are also a number of samples in this README and more in the 
[[https://github.com/conao3/leaf.el/blob/master/leaf-tests.el][test file]].
+The quickest way to solve problem is using ~macroexpand-1~ to see the
+unfolded result if it is not what you intended.  And also there are
+also a number of samples in this README and more in the 
[[https://github.com/conao3/leaf.el/blob/master/leaf-tests.el][test file]].
 
-Currently, ~leaf.el~ and ~leaf-keywords.el~ have rich keywords, listed below.
+Currently, ~leaf.el~ and ~leaf-keywords.el~ has below rich keywords.
 
 #+begin_src emacs-lisp
   (leaf-available-keywords)
@@ -116,12 +124,18 @@ Currently, ~leaf.el~ and ~leaf-keywords.el~ have rich 
keywords, listed below.
 #+end_src
 
 * Install
-~leaf.el~ and ~leaf-keywords.el~ can be installed with ~package.el~ from MELPA.
-Please add the following code (~<leaf-install-code>~ to 
~</leaf-install-code>~) at the top of your ~init.el~.
 
-Packages to be developed
-  - [[https://github.com/conao3/feather.el][feather.el]] instead of 
~package.el~ -> (Achieved! Now available but it is just a ~package.el~ wrapper.)
-  - leaf-key.el instead of ~bind-key~ -> (Achieved! Now a ~leaf~ builtin.)
+~leaf.el~ and ~leaf-keywords.el~ can install with package.el from MELPA.
+
+Please put the following code (~<leaf-install-code>~ to
+~</leaf-install-code>~) to the top of your ~init.el~.
+
+Package to be developed
+
+  - [[https://github.com/conao3/feather.el][feather.el]] instead of 
~package.el~ -> (Achieved! Now available but
+    it is just a pakcage.el wraper)
+
+  - leaf-key.el instead of ~bind-key~ -> (Achieved! Now ~leaf~ builtin)
 
 #+begin_src emacs-lisp
   ;; <leaf-install-code>
@@ -204,33 +218,41 @@ Packages to be developed
 #+end_src
 
 * Usage
-Use ~leaf~ in your ~init.el~ like ~use-package~.
-You declaratively tell ~leaf~ to configure the package using special keywords.
 
-~leaf~ converts your declaration into Elisp for Emacs to understand, and Emacs 
executes it to configure the package.
+Use ~leaf~ in your init.el like ~use-package~.
+
+You declaratively tell the ~leaf~ to configure the package using special 
keywords.
+
+~leaf~ converts your declaration into Elisp for Emacs to understand,
+and Emacs executes it to configure the package.
 
 * Customize
+
 - ~leaf-defaults~: Default arguments for all leaf-block.
-- ~leaf-expand-{{keyword}}~: If nil, don't expand that keyword.
+- ~leaf-expand-{{keyword}}~: If nil, not to expand that keyword.
 - ~leaf-expand-minimally~: If nil, disable keywords that are not needed for 
debugging.
 - ~leaf-default-plstore~: default ~plstore~ stored variable
 - ~leaf-alias-keyword-alist~: Alist represents keyword alias.  Handle KEY is 
alias of VALUE.
-  #+begin_src emacs-lisp
+
+#+begin_src emacs-lisp
     (defcustom leaf-alias-keyword-alist '((:ensure . :package))
       "The alias keyword.  KEY is treated as an alias for VALUE."
       :type 'sexp
       :group 'leaf)
-  #+end_src
+#+end_src
+
   This default value means ~:ensure~ is alias ~:package~.
 
-  If you want to use ~:ensure~ as ~:feather~, please set this value as 
~((:ensure . :feather))~.
-  Further info on ~:feather:~ is available 
[[https://github.com/conao3/feather.el][here]].
+  If you want to use ~:ensure~ as ~:feather~, please set this value as
+  ~((:ensure . :feather))~.  Please more info related feather is 
[[https://github.com/conao3/feather.el][here]].
 
 * Syntax
-All examples below are excerpts from 
[[https://github.com/conao3/leaf.el/blob/master/leaf-tests.el][leaf-tests.el]].
+
+All below examples are excerpts from 
[[https://github.com/conao3/leaf.el/blob/master/leaf-tests.el][leaf-tests.el]].
 
 These examples are defined in the following format.
 We expect ~FORM~ will be expanded to ~EXPECT~.
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand TESTCASE-NAME
     '((FORM             ; will be expand by `macroexpand-1'
@@ -253,7 +275,9 @@ We expect ~FORM~ will be expanded to ~EXPECT~.
 #+end_src
 
 * Basic keywords
+
 ** none (keyword)
+
 *Unlike use-package*, ~leaf~ will convert to ~nil~ when used without any 
keywords.
 
 #+begin_src emacs-lisp
@@ -263,14 +287,18 @@ We expect ~FORM~ will be expanded to ~EXPECT~.
 #+end_src
 
 ** :require keyword
+
 If you want to ~require~, you must use the ~:require~ keyword explicitly.
 
-This is ideally the exact opposite of using the ~:no-require~ keyword in the 
~use-package~ if you do not want to ~require~ it.
+This is ideally the exact opposite of using the ~:no-require~ keyword
+in the ~use-package~ if you does not want to ~require~ it.
 
-The leaf's ~:require~ keyword is powerful, specify ~t~ to require the package, 
and specify multi symbols to ~require~ all of them.
+The leaf's ~:require~ keyword is powerful, specify ~t~ to require the
+package, and specify multi symbols to ~require~ all of them.
 
-Since the priority is lower than that of the conditional branch keyword 
described later,
-it is possible to assign whether to ~require~ or not by the conditional branch 
keyword.
+Since the priority is lower than that of the conditional branch
+keyword described later, it is possible to assign whether to ~require~
+or not by the conditional branch keyword.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/require
@@ -334,11 +362,16 @@ it is possible to assign whether to ~require~ or not by 
the conditional branch k
 #+end_src
 
 ** :package, :ensure keywords
+   :PROPERTIES:
+   :CUSTOM_ID: ensure
+   :END:
+
 ~:package~ provide ~package.el~ frontend.
 
-Because [[https://github.com/conao3/leaf-keywords.el][leaf-keywords.el]] has 
~:el-get~ keyword, ~:package~ provides the ~package.el~ frontend.
+Because [[https://github.com/conao3/leaf-keywords.el][leaf-keywords.el]] has 
~:el-get~ keyword, ~:package~ provide ~package.el~ frontend.
 
-Since ~:ensure~ is to use ~package.el~ by default, ~:ensure~ and ~:package~ 
produce the same result.
+Since ~:ensure~ is to use ~package.el~ by default, ~:ensure~ and
+~:package~ produce the same result.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/ensure
@@ -398,14 +431,20 @@ Since ~:ensure~ is to use ~package.el~ by default, 
~:ensure~ and ~:package~ prod
 #+end_src
 
 ** :preface, :init, :config keywords
-These keywords are provided to directly describe elisp with various settings 
that ~leaf~ does not support.
+
+These keywords are provided to directly describe elisp with various
+settings that ~leaf~ does not support.
 
 These keywords are provided to control where the arguments expand,
+
 - ~:preface~ expands before the conditional branch keywords; ~:if~, ~when~ and 
~unless~.
+
 - ~:init~ expands after the conditional branch keyword before ~:require~.
+
 - ~:config~ expands after ~:require~.
 
-Using ~progn~ is not necessary because ~leaf~ can receive multiple 
S-expressions, but its usage is allowed.
+You don't need to put ~progn~ because ~leaf~ can receive multiple
+S-expressions, but you can do so if you prefer it.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/preface
@@ -463,7 +502,9 @@ Using ~progn~ is not necessary because ~leaf~ can receive 
multiple S-expressions
 #+end_src
 
 ** :defer-config keyword
+
 =:defer-config= is similar to =:config=, but with =eval-after-load= as the 
argument.
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/defer-config
     '(((leaf leaf
@@ -489,7 +530,9 @@ Using ~progn~ is not necessary because ~leaf~ can receive 
multiple S-expressions
 #+end_src
 
 ** :commands keyword
+
 ~commands~ keyword configures ~autoload~ for its leaf-block name.
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/commands
     '(
@@ -530,9 +573,11 @@ Using ~progn~ is not necessary because ~leaf~ can receive 
multiple S-expressions
 #+end_src
 
 ** :after keyword
+
 ~:after~ keyword configure loading order.
 
-*Currently ~leaf~ does not support ~:or~ in ~:after~ like ~use-package~.*
+*Currently it does not support :or in :after like use-package.*
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/after
     '(
@@ -599,13 +644,16 @@ Using ~progn~ is not necessary because ~leaf~ can receive 
multiple S-expressions
 #+end_src
 
 ** :bind, :bind* keywords
+
 ~:bind~ and ~:bind*~ provide frontend for keybind manager.
 
-When defined globally, key bindings and their corresponding functions are 
specified in dotted pairs.
+When defined globally, key bindings and their corresponding functions
+are specified in dotted pairs.
 
-To set it to a specific map, *place the map name as a keyword or symbol* at 
the top of the list.
+To set it to a specific map, *place the map name as a keyword or
+symbol* at the top of the list.
 
-If you omit ~:package~, use ~leaf--name~ as ~:package~ to lazy load.
+If you omit ~:package~, use leaf--name as ~:package~ to lazy load.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/bind
@@ -806,8 +854,10 @@ If you omit ~:package~, use ~leaf--name~ as ~:package~ to 
lazy load.
 #+end_src
 
 ** COMMENT :defaults keyword
-~:defaults~ provide to download recommended settings for specified package.
+
+~:defalts~ provide to download recommended settings for specified package.
 For more detail, see 
[[https://github.com/conao3/leaf-defaults.git][leaf-defaults]].
+
 #+BEGIN_SRC emacs-lisp
   (cort-deftest leaf-test/:simple-defaults
     (match-expansion-let ((leaf-backend/:ensure 'package))
@@ -819,13 +869,16 @@ For more detail, see 
[[https://github.com/conao3/leaf-defaults.git][leaf-default
 #+END_SRC
 
 * Configure variables keywords
+
 ** :custom, :custom*, :custom-face keywords
+
 Now that the proper Elisp packaging practices have become widely known,
-the recommended practice is to use ~custom-set-variables~ to customize 
packages.
+it is a best practice to use ~custom-set-variables~ to customize packages.
 
 *Unlike use-package*, you must specify a dot pair.
 
-You can of course set multiple variables and set the evaluation result of the 
S expression to a variable.
+You can of course set multiple variables and set the evaluation result
+of the S expression to a variable.
 
 The value set to ~custom-face~ should also be quoed to emphasize uniformity as 
~leaf~.
 
@@ -933,14 +986,17 @@ The value set to ~custom-face~ should also be quoed to 
emphasize uniformity as ~
 #+end_src
 
 ** :pre-setq, :setq, :setq-default keywords
+
 These keywords provide a front end to ~setq~ and ~setq-default~.
 
-Because there are packages that must be configured with ~setq~ before
-~require~-ing them, the ~:pre-setq~ keyword is also provided to accommodate 
them.
+Because there are packages in the world that must be ~setq~ before doing 
~require~ them,
+the ~:pre-setq~ keyword is also provided to accommodate them.
 
 The argument specified for ~:pre-setq~ is expanded before ~:require~.
 
-You can of course configure multiple variables and set the evaluation result 
of some S expression to some variable.
+You can of course configure multiple variables and set the evaluation
+result of some S expression to variable.
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/setq
     '(
@@ -1018,12 +1074,17 @@ You can of course configure multiple variables and set 
the evaluation result of
 #+end_src
 
 * Configure list keywords
+
 ** :mode, :interpreter keywords
+
 ~:mode~ keyword define ~auto-mode-alist~. Specifies the major-mode to enable 
by file extension.
-~:interpreter~ keyword define ~interpreter-mode-alist~. Specifies the 
major-mode to enable by file shebang.
+
+~:interpreter~ keyword define ~interpreter-mode-alist~. Specifies the
+major-mode to enable by file shebang.
 
 If you pass symbol to these keyword, use leaf block name as major-mode.
-If you want to specify major-mode, pass a dotted pair value.
+If you want to specify major-mode, pass dotted pair value.
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/mode
     '(
@@ -1103,9 +1164,11 @@ If you want to specify major-mode, pass a dotted pair 
value.
 #+end_src
 
 ** :magic, :magic-fallback keywords
-~:magic~ keyword defines ~magic-mode-alist~. It is used to determine the 
major-mode in binary header byte.
 
-~:magic-fallback~ keyword also defines ~magic-fallback-alist~.
+~:magic~ keyword define ~magic-mode-alist~. It is used to determine
+major-mode in binary header byte.
+
+~:magic-fallback~ keyward also define ~magic-fallback-alist~.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/magic
@@ -1138,10 +1201,11 @@ If you want to specify major-mode, pass a dotted pair 
value.
 #+end_src
 
 ** :hook keyword
+
 ~:hook~ keyword define ~add-hook~ via ~(add-to-list *-hook)~.
 
-*Unlike use-package*, you must specify the full hook name.
-It makes it easy to jump to a definition.
+*Unlike use-package*, you must spesify the full hook name.
+It makes easy to jump definition.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/hook
@@ -1207,9 +1271,11 @@ It makes it easy to jump to a definition.
 #+end_src
 
 ** :load-path, :load-path* keywords
+
 ~:load-path~ is *unlike use-package*, you must specify the full path.
 
-Use backquotes if you want the path to be relative to the current ~.emacs.d~, 
such as use-package.
+Use backquotes if you want the path to be relative to the current
+~.emacs.d~, such as use-package.
 
 Or use ~:load-path*~ keyword if you want to dynamic path at
 ~user-emacs-directory~ using ~locate-user-emacs-file~ like use-package.
@@ -1333,16 +1399,20 @@ Or use ~:load-path*~ keyword if you want to dynamic 
path at
 #+end_src
 
 * Condition keywords
+
 ** :disabled keyword
-The ~:disabled~ keyword provides the ability to temporarily ~nil~ the output 
of that ~leaf~ block.
+
+The ~:disabled~ keyword provides the ability to temporarily ~nil~ the
+output of that ~leaf~ block.
 
 You can use multiple values for the ~:disabled~ keyword, or multiple 
~:disabled~ keyword,
 but ~:disabled~ only respects the value specified at the top.
 
-Old values can also be overridden by the method described above.
+It can also be said that old values can be overridden by described above.
 
-As you can see from the internal structure of ~:disabled~,
-you do not need to pass an exact ~t~ to convert it to ~nil~ because it's done 
by comparing it using ~unless~.
+As you can see from the internal structure of ~:disabled~, you do not
+need to pass an exact ~t~ to convert it to ~nil~ because it is
+comparing it by ~unless~.
 
 #+begin_src emacs-lisp
   (defvar leaf-keywords
@@ -1375,10 +1445,12 @@ you do not need to pass an exact ~t~ to convert it to 
~nil~ because it's done by
 #+end_src
 
 ** :if, :when, :unless keywords
+
 ~:if~, ~:when~, ~:unless~ keywords expect sexp return boolean or just boolean 
value
 and wrap converted sexp specified function.
 
 If specified multiple those keywords, evaluate sexp in ~and~.
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/if
     '(
@@ -1460,9 +1532,13 @@ If specified multiple those keywords, evaluate sexp in 
~and~.
 #+end_src
 
 ** :emacs<, :emacs<=, :emacs=, :emacs>, :emacs>= keywords
-You can activate the ~leaf~ block depending on version of Emacs.
-The keyword is in the form of ~:emacs< {{version}}~, which is expanded as a 
conditional expression by analogy with the inequality of ~Emacs < {{version}}~.
-It can be a string, a number, a quoted string or a number, and only one can be 
specified.
+
+You can activate the leaf block depending on version of Emacs.
+The keyword is in the form of ~:emacs< {{version}}~,
+which is expanded as a conditional expression by analogy with the
+inequality of ~Emacs < {{version}}~.  It can be a string, a number, a
+quoted string or a number, and only one can be specified.
+
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/emacs<
     '(
@@ -1517,11 +1593,15 @@ It can be a string, a number, a quoted string or a 
number, and only one can be s
 
 
 * Byte compile keywords
+
 ** :defun, :defvar keywords
-To suppress byte compilation warnings, you must make the appropriate 
declarations in Elisp to tell Emacs
-that you are making the appropriate calls.
 
-This is usually done by a ~declare-function~ and an empty ~defvar~, and ~leaf~ 
provides a frontend of it.
+To suppress byte compilation warnings, you must make the appropriate
+declarations in Elisp to tell Emacs that you are making the
+appropriate calls.
+
+This is usually done by a ~declare-function~ and an empty ~defvar~,
+and ~leaf~ provides a frontend of it.
 
 #+BEGIN_SRC emacs-lisp
   (cort-deftest-with-macroexpand leaf/defun
@@ -1596,8 +1676,10 @@ This is usually done by a ~declare-function~ and an 
empty ~defvar~, and ~leaf~ p
 #+END_SRC
 
 * Documentation keywords
+
 ** :doc, :req, :tag, :file, :url keywords
-~leaf~ can describe the document systematically.
+
+The leaf can describe the document systematically.
 
 It should be possible to develop additional packages
 that use the value specified for the document keyword, which is not currently 
used.
@@ -1655,16 +1737,21 @@ The arguments specified for this keyword have no effect 
on the result of the con
          (leaf-init)))))
 #+END_SRC
 * Misc keywords
+
 ** :global-minor-mode keyword
-~:global-minor-mode~ keyword provides a front end to easily enable minor mode.
-global-minor-mode is followed by ~-mode~ and has the custom of being activated 
by passing a ~1~,
-so make the possible guesses accordingly.
 
-The former guess, given ~t~, the mode in which you want ~leaf--name~ to be 
valid.
-If ~-mode~ is not appended to the package name, add ~-mode~.
-For this reason, a minor mode without ~-mode~ can not use this keyword - use 
~:config~ instead.
+~:global-minor-mode~ keyword provides a front end to easily enable
+minor mode.  global-minor-mode is followed by ~-mode~ and has the
+custom of being activated by passing a ~1~, so make the possible
+guesses accordingly.
 
-Minor-mode function is automatically autoloaded as a ~leaf--name~ function, 
but if you want customize this, you can use cons-cell.
+The former guess, given ~t~, the mode in which you want ~leaf--name~
+to be valid.  If ~-mode~ is not appended to the package name, add
+~-mode~.  For this reason, a minor mode without ~-mode~ can not use
+this keyword. Please use ~:config~.
+
+Minor-mode function is automatically autoload as a ~leaf--name~
+function, but if you want customize this, you can use cons-cell.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/global-minor-mode
@@ -1755,14 +1842,17 @@ Minor-mode function is automatically autoloaded as a 
~leaf--name~ function, but
 #+end_src
 
 ** :advice, :advice-remove keywords
-~:advice~ provide frontend of ~advice-add~, and ~:advice-remove~ provide 
frontend of ~advice-remove~.
 
-~:advice~ keyword accepts a list of ~(WHERE SYMBOL FUNCTION)~ or nested it.
+~:advice~ provide frontend of ~advice-add~, and ~:advice-remove~
+provide frontend of ~advice-remove~.
+
+~:advice~ keyword accept list of ~(WHERE SYMBOL FUNCTION)~ or nested it.
 
-You can use all ~WHERE~ symbols such as
-(~:around~ ~:before~ ~:after~ ~:override~ ~:after-until~ ~:after-while~ 
~:before-until~ ~:before-while~ ~:filter-args~ ~:filter-return~)
+You can use all ~WHERE~ symbol such as (~:around~ ~:before~ ~:after~
+~:override~ ~:after-until~ ~:after-while~ ~:before-until~
+~:before-while~ ~:filter-args~ ~:filter-return~)
 
-~SYMBOL~ is the adviced function symbol, ~FUNCTION~ is in advice function 
symbol or lambda form.
+~SYMBOL~ is the adviced function symbol, ~FUNCTION~ is advice function symbol 
or lambda form.
 
 ~:advice-remove~ must not specify ~WHERE~ keyword.
 
@@ -1911,14 +2001,16 @@ You can use all ~WHERE~ symbols such as
 #+end_src
 
 ** :pl-pre-setq, :pl-setq, :pl-setq-default, :pl-custom keywords
+
 Those keywords provide configure variables with 
[[https://github.com/emacs-mirror/emacs/blob/master/lisp/plstore.el][plstore.el]].
-~plstore~ provides plist-based data managing and encryption.
+~plstore~ provide plist based data managing and encryption.
 
-The keywords for ~plstore~ corresponding to ~:pre-setq~, ~:setq~, 
~:setq-default~ and ~:custom~ are
-~:pl-pre-setq~, ~:pl-setq~, ~:pl-setq-default~ and ~:pl-custom~.
+The keywords for plstore corresponding to ~:pre-setq~, ~:setq~,
+~:setq-default~ and ~:custom~ are ~:pl-pre-setq~, ~:pl-setq~,
+~:pl-setq-default~ and ~:pl-custom~.
 
-Before those keyword using, prepare below ~plstore~ data and store it.
-If you omit the correct value, ~leaf~ uses the ~plstore~ file at 
=~/.emacs.d/leaf-plstore.plist=.
+Before those keyword using, prepare below plstore data and store it.
+If you omit right value, ~leaf~ uses plstore file at 
=~/.emacs.d/leaf-plstore.plist=.
 
 #+begin_src emacs-lisp
   (("leaf-sql"
@@ -1945,7 +2037,8 @@ If you omit the correct value, ~leaf~ uses the ~plstore~ 
file at =~/.emacs.d/lea
     :secret-erc-nick               "conao3")))
 #+end_src
 
-If you save plist file named as =~/.emacs.d/plstore.plist=, open ~plstore~ 
file and decription if needed (then type password).
+If you save plist file named as =~/.emacs.d/plstore.plist=, open
+plstore file and decription if needed (then type password).
 
 #+begin_src emacs-lisp
   (leaf plstore
@@ -1953,7 +2046,9 @@ If you save plist file named as 
=~/.emacs.d/plstore.plist=, open ~plstore~ file
 #+end_src
 
 ~leaf~ expand ~plstore~ related keywords as below.
-Before using those keywords, we recommended that you check how ~plstore~ works 
in ~*scratch*~ and not through ~leaf~.
+
+Before using those keywords, we recommended that you check how
+~plstore~ works in ~*scratch*~ and not through ~leaf~.
 
 #+begin_src emacs-lisp
   (defcustom leaf-default-plstore
@@ -2021,14 +2116,16 @@ Before using those keywords, we recommended that you 
check how ~plstore~ works i
 #+end_src
 
 * System keywords
-System keywords enabled by default on all leaf-blocks.
 
-If you disable them temporarily, pass these keywords to ~nil~,
-or add ~nil~ to ~leaf-defaults~ to disable all ~:leaf:~ blocks
+System keywords enabled by defalts on all leaf-block.
+
+If you disable temporary, pass these keyword to ~nil~,
+or add ~nil~ to ~leaf-defaults~ to disable all leaf-block
 or set ~leaf-expand-leaf-protect~ to nil.
 
 ** :leaf-protect keyword
-If ~leaf~ fails at the top of the configuration file,
+
+If the leaf fails at the top of the configuration file,
 most of the configuration file will not be read.
 
 Therefore, it simply reports an error and expands the error-handling block
@@ -2069,11 +2166,12 @@ that moves execution to the next leaf-block.
 #+end_src
 
 ** :leaf-defer keyword
+
 leaf-blocks with ~:bind~ or ~:mode~ can often delay loading or configuration 
evaluation.
 
 The keywords that enable this feature are defined below and expand as follows
 
-It seems ~:leaf-defer nil~ has the same behaviour as ~:demand t~ in 
~use-package~.
+It seems ~:leaf-defer nil~ same as ~:demand t~ in ~use-package~.
 
 #+begin_src emacs-lisp
   (defcustom leaf-defer-keywords (cdr '(:dummy
@@ -2106,6 +2204,7 @@ It seems ~:leaf-defer nil~ has the same behaviour as 
~:demand t~ in ~use-package
 #+end_src
 
 ** :leaf-autoload keyword
+
 For keywords that set functions, ~leaf~ can auto-expand the autoload expression
 enable lazy loading without relying on magic comments, ~;;;Autoload~.
 
@@ -2134,11 +2233,12 @@ In some cases, you may want to disable this 
auto-expansion.
 #+end_src
 
 ** :leaf-defun keyword
+
 Depending on the context, you may find that the function is declared
 in the package that is currently being set. Previously, the
 ~declare-function~ statement was explicitly generated for these
-functions using the: ~defun~ keyword, but this keyword precludes
-that.
+functions using the: defun keyword, but this keyword no longer
+requires that work.
 
 #+begin_src emacs-lisp
   (cort-deftest-with-macroexpand leaf/leaf-defun
@@ -2176,12 +2276,14 @@ that.
 #+end_src
 
 ** leaf-defvar
-When binding to a specific map with ~:bind~, the map variable must be
-explicitly declared with ~:defvar~. This keyword suppresses byte
+
+When binding to a specific map with: bind, the map variable must be
+explicitly declared with: defvar. This keyword suppresses byte
 compiler warnings by automatically declaring the variable.
 
 * Information
 ** Donation
+
 I love OSS and I am dreaming of working on it as *full-time* job.
 
 *With your support*, I will be able to spend more time at OSS!
@@ -2189,27 +2291,30 @@ I love OSS and I am dreaming of working on it as 
*full-time* job.
 
[[https://www.patreon.com/conao3][https://c5.patreon.com/external/logo/become_a_patron_button.png]]
 
 ** Community
+
 All feedback and suggestions are welcome!
 
-You can use GitHub issues, but you can also use 
[[https://join.slack.com/t/conao3-support/shared_invite/enQtNjUzMDMxODcyMjE1LTA4ZGRmOWYwZWE3NmE5NTkyZjk3M2JhYzU2ZmRkMzdiMDdlYTQ0ODMyM2ExOGY0OTkzMzZiMTNmZjJjY2I5NTM][Slack]]
+You can use github issues, but you can also use 
[[https://join.slack.com/t/conao3-support/shared_invite/enQtNjUzMDMxODcyMjE1LTA4ZGRmOWYwZWE3NmE5NTkyZjk3M2JhYzU2ZmRkMzdiMDdlYTQ0ODMyM2ExOGY0OTkzMzZiMTNmZjJjY2I5NTM][Slack]]
 if you want a more casual conversation.
 
 ** Contribution
-We welcome PRs, but to contribute, you must assign rights to the FSF. See 
[[https://github.com/conao3/CONTRIBUTING.org][CONTRIBUTING.org]] for details.
 
-Travis CI test ~leaf-test.el~ with all Emacs version 23 or above.
+We welcome PR! But It is need sign to FSF.
 
-It's difficult to prepare the environment locally,
-so submit your PR and test on Travis for the time being!
-Feel free to submit your PR when you think it's ready!
+Travis Cl test ~leaf-test.el~ with all Emacs version 23 or above.
+
+I think that it is difficult to prepare the environment locally,
+so I think that it is good to throw PR and test Travis for the time being!
+Feel free throw PR!
 
 ~leaf.el~ creates the intended elisp code from DSL with a simple mechanism.
 
 It is clear what internal conversion is done and it is also easy to customize 
it.
 
 *** leaf.el mechanism
+
 1. Append ~leaf-defaults~ and ~leaf-system-defaults~ to ~leaf~ arguments.
-2. Because ~leaf~ receives arguments in too many formats, normalize as plist.
+2. Because ~leaf~ receives arguments too many format, normalize as plist.
    1. Normalize plist by ~leaf-normalize-plist~.
    2. Sort plist by ~leaf-keyword~.
 
@@ -2241,119 +2346,48 @@ It is clear what internal conversion is done and it is 
also easy to customize it
    | ~leaf--body~     | The result of the following keywords and arguments |
    | ~leaf--rest~     | The following keywords and arguments               |
    | ~leaf--autoload~ | The list of pair ~(fn . pkg)~                      |
-4. Apply the normalized values to the keyword-specific normalizer.
+4. Apply the normalized values to the keyword specific normalizer.
 
    The definition is ~leaf-normalize~, overwrite ~leaf--value~.
 5. Run conversion process keyword.
 
    The conversion definition is ~leaf-keywords~, overridden ~leaf--body~
-6. Wrap finally ~leaf--body~ with ~prog1~.
+6. Wrap finaly ~leaf--body~ with ~prog1~.
 
 *** Adding new keywords
-~leaf~ normalizes arguments with ~leaf-normalize~, and conversion with 
~leaf-keywords~.
 
-So, by pushing new elements to these variables, ~leaf~ can recognize new 
keywords.
+~leaf~ normalize argument with ~leaf-normalize~, and conversion with 
~leaf-keywords~.
+
+So, pushing new element these variable, ~leaf~ can recognize new keywords.
 
-In [[https://github.com/conao3/leaf-keywords.el][leaf-keywords.el]], you can 
see a practical example, and you can PR it.
+In [[https://github.com/conao3/leaf-keywords.el][leaf-keywords.el]], you can 
see practical example, and you can PR it.
 
 Note that leaf only contains keywords for packages that come with the Emacs 
standard,
 and that keywords that depend on external packages are added to its repository.
 
-*** Customize leaf keywords
-~leaf~ stores "keyword" and corresponding "expandion" in ~leaf-keywords~.
-You can customize ~leaf~ expandion to customize ~leaf-keywords~.
-
-#+begin_src emacs-lisp
-(leaf-plist-get :custom leaf-keywords)
-;;=> ...
-
-(ppp-macroexpand
- (leaf foo-package
-   :custom
-   (foo-package-to-enable   . t)
-   (foo-package-to-disable  . nil)
-   (foo-package-to-symbol   . 'symbol)
-   (foo-package-to-function . #'ignore)
-   (foo-package-to-lambda   . (lambda (elm) (message elm)))))
-;;=> (prog1 'foo-package
-;;     (customize-set-variable 'foo-package-to-enable t "Customized with leaf 
in foo-package block")
-;;     (customize-set-variable 'foo-package-to-disable nil "Customized with 
leaf in foo-package block")
-;;     (customize-set-variable 'foo-package-to-symbol 'symbol "Customized with 
leaf in foo-package block")
-;;     (customize-set-variable 'foo-package-to-function #'ignore "Customized 
with leaf in foo-package block")
-;;     (customize-set-variable 'foo-package-to-lambda
-;;                             (lambda (elm)
-;;                               (message elm))
-;;                             "Customized with leaf in foo-package block"))
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-(setf (leaf-plist-get :custom leaf-keywords)
-      '`(,@(mapcar (lambda (elm) `(customize-set-variable ',(car elm) ,(cdr 
elm) ,(format "leaf block" leaf--name))) leaf--value) ,@leaf--body))
-;;=> ...
-
-(ppp-macroexpand
- (leaf foo-package
-   :custom
-   (foo-package-to-enable   . t)
-   (foo-package-to-disable  . nil)
-   (foo-package-to-symbol   . 'symbol)
-   (foo-package-to-function . #'ignore)
-   (foo-package-to-lambda   . (lambda (elm) (message elm)))))
-;;=> (prog1 'foo-package
-;;     (customize-set-variable 'foo-package-to-enable t "leaf block")
-;;     (customize-set-variable 'foo-package-to-disable nil "leaf block")
-;;     (customize-set-variable 'foo-package-to-symbol 'symbol "leaf block")
-;;     (customize-set-variable 'foo-package-to-function #'ignore "leaf block")
-;;     (customize-set-variable 'foo-package-to-lambda
-;;                             (lambda (elm)
-;;                               (message elm))
-;;                             "leaf block"))
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-(setf (leaf-plist-get :custom leaf-keywords)
-      '`(,@(mapcar (lambda (elm) `(setq ',(car elm) ,(cdr elm))) leaf--value) 
,@leaf--body))
-;;=> ...
-
-(ppp-macroexpand
- (leaf foo-package
-   :custom
-   (foo-package-to-enable   . t)
-   (foo-package-to-disable  . nil)
-   (foo-package-to-symbol   . 'symbol)
-   (foo-package-to-function . #'ignore)
-   (foo-package-to-lambda   . (lambda (elm) (message elm)))))
-;;=> (prog1 'foo-package
-;;     (setq 'foo-package-to-enable t)
-;;     (setq 'foo-package-to-disable nil)
-;;     (setq 'foo-package-to-symbol 'symbol)
-;;     (setq 'foo-package-to-function #'ignore)
-;;     (setq 'foo-package-to-lambda (lambda (elm)
-;;                                    (message elm))))
-#+end_src
-
 ** Migration
+
 *** leaf v3.0 to v4.0
-**** Drop support for Emacs versions lower than Emacs-24.4
+**** Drop support Emacs versions lower than Emacs-24.4
 #+begin_quote
-I used Emacs 23 bundled with macOS as a reference when
-determining the minimum Emacs support for ~leaf.el~.  However,
-macOS stopped bundling Emacs 23, and by supporting Emacs 23, our
+I used Emacs 23 bundled with MacOS as a reference when
+determining the minimum Emacs support for leaf.el.  However,
+MacOS stopped bundling Emacs 23, and by supporting Emacs 23, the
 inability to take advantage of most of the Elisp ecosystem like
 ~package.el~, ~cask~, and ~ert~ made development inefficient.
 
-I plan to release ~leaf.el v3.8~ as the last version to support
-Emacs 23, and ~leaf.el~ as ~leaf.el v4.0~, with Emacs 24 as the
+I plan to release leaf.el v3.8 as the last version to support
+Emacs 23, and leaf.el as leaf.el v4.0, with Emacs 24 as the
 smallest version of Emacs.
 
-If you're using ~leaf.el~ with Emacs 23, you probably don't use
-~package.el~, but rather the traditional site-lisp method of using
-~leaf.el~. (~package.el~ dropped Emacs 23 a long time ago) You should
-be able to continue using ~leaf.el~ as before by downloading
+If you're using leaf.el with Emacs 23, you probably don't use
+package.el, but rather the traditional site-lisp method of using
+leaf.el. (package.el dropped Emacs 23 a long time ago) You should
+be able to continue using leaf.el as before by downloading
 version 3.8 from the [[https://github.com/conao3/leaf.el/releases][releases]] 
page.
 #+end_quote
 
-We have posted the above announcements for more than 1 month and have
+We have posted above announcements for more than 1 month and have
 dropped support for Emacs versions below 24.4 because of a bug in
 a global variable that prevented it from passing tests under
 Emacs 24.2.  https://github.com/conao3/leaf.el/runs/515675886
@@ -2363,10 +2397,12 @@ be considered the minimum version supported by the 
current Emacs
 packages.
 
 **** Distribute under GPLv3 instead of AGPLv3
-Now ~leaf~ project distributes under GPLv3 instead of AGPLv3.
+
+Now ~leaf~ project distribute under GPLv3 instead of AGPLv3.
 
 *** leaf v2.0 to v3.0
 **** Drop bind-key.el support for :bind and feather.el support for :ensure
+
 To make ~leaf~ dependent only on packages that are itself and packages 
attached to and Emacs,
 we have removed the back-end selection for ~bind-key~ and ~leaf-key~ for 
~:bind~
 and the back-end selection for ~package.el~, ~feather.el~, and ~el-get~ for 
~:ensure~.
@@ -2375,10 +2411,11 @@ You should now use the external package specific 
keywords, such as
 ~:bind-key~ and ~:el-get~, ~:feather~, defined in 
[[https://github.com/conao3/leaf-keywords.el][leaf-keywords.el]].
 
 Therefore, the keyword ~:ensure~ has been changed to ~:package~.
-This has no effect because we have defined an alias.
+This has no effect because we have defined alias.
 
 *** leaf v1.0 to v2.0
 **** Change not to ~require~ by default
+
 In order to realize the philosophy of "Leaf of setting",
 we changed it so as not to ~require~ by default.
 
@@ -2403,6 +2440,7 @@ If you want to request explicitly use the ~:require t~ 
flag.
 #+end_src
 
 ** License
+
 #+begin_example
   General Public License Version 3 (GPLv3)
   Copyright (c) Naoya Yamashita - https://conao3.com
@@ -2410,17 +2448,20 @@ If you want to request explicitly use the ~:require t~ 
flag.
 #+end_example
 
 ** Author
+
 - Naoya Yamashita ([[https://github.com/conao3][conao3]])
 
 ** Contributors
+
 - Kzflute ([[https://github.com/Kzflute][Kzflute]])
 - KeenS ([[https://github.com/KeenS][Îșeen]])
 - Dario Gjorgjevski ([[https://github.com/d125q][d125q]])
 - Masanori Mano ([[https://github.com/grugrut][grugrut]])
 - Thomas Padioleau ([[https://github.com/tpadioleau][tpadioleau]])
-- Johanan Idicula ([[https://github.com/jidicula][jidicula]])
 
 ** Special Thanks
-Advice and comments given by [[http://emacs-jp.github.io/][Emacs-JP]]'s forum 
member has been a great help  in developing ~leaf.el~.
+
+Advice and comments given by [[http://emacs-jp.github.io/][Emacs-JP]]'s forum 
member has been a great
+help in developing ~leaf.el~.
 
 Thank you very much!!



reply via email to

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