summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2020-10-19 18:04:00 +0200
committerJonas Bernoulli <jonas@bernoul.li>2020-10-20 15:37:08 +0200
commitd1caef51923fd53d2cea2f3e2f1f5d61eaf09ac9 (patch)
treeeb4a1bc2d7a950d42b5bbe938f47577637eab1ac /docs
parent1b9929eca9b1076fb04794b6736d42a1d394fadb (diff)
Add new `init-value' infix slot
If this value bound then it is called with the object as only argument instead of the primary `transient-init-value' method of the object class. Re #96.
Diffstat (limited to 'docs')
-rw-r--r--docs/transient.org9
-rw-r--r--docs/transient.texi11
2 files changed, 16 insertions, 4 deletions
diff --git a/docs/transient.org b/docs/transient.org
index d7736b5..bfbed9a 100644
--- a/docs/transient.org
+++ b/docs/transient.org
@@ -8,7 +8,7 @@
#+TEXINFO_DIR_CATEGORY: Emacs
#+TEXINFO_DIR_TITLE: Transient: (transient).
#+TEXINFO_DIR_DESC: Transient Commands
-#+SUBTITLE: for version 0.2.0 (v0.2.0-45-g313eee0f+1)
+#+SUBTITLE: for version 0.2.0 (v0.2.0-46-g1b9929ec+1)
#+TEXINFO_DEFFN: t
#+OPTIONS: H:4 num:4 toc:2
@@ -37,7 +37,7 @@ Calling a suffix command usually causes the transient to be exited
but suffix commands can also be configured to not exit the transient.
#+TEXINFO: @noindent
-This manual is for Transient version 0.2.0 (v0.2.0-45-g313eee0f+1).
+This manual is for Transient version 0.2.0 (v0.2.0-46-g1b9929ec+1).
#+BEGIN_QUOTE
Copyright (C) 2018-2020 Jonas Bernoulli <jonas@bernoul.li>
@@ -1593,6 +1593,11 @@ They are defined here anyway to allow sharing certain methods.
- ~value~ The value. Should not be accessed directly.
+- ~init-value~ Function that is responsable for setting the object's
+ value. If bound, then this is called with the object as the only
+ argument. Usually this is not bound, in which case the object's
+ primary ~transient-init-value~ method is called instead.
+
- ~unsavable~ Whether the value of the suffix is not saved as part of
the prefixes.
diff --git a/docs/transient.texi b/docs/transient.texi
index b692001..6b487f8 100644
--- a/docs/transient.texi
+++ b/docs/transient.texi
@@ -31,7 +31,7 @@ General Public License for more details.
@finalout
@titlepage
@title Transient User and Developer Manual
-@subtitle for version 0.2.0 (v0.2.0-45-g313eee0f+1)
+@subtitle for version 0.2.0 (v0.2.0-46-g1b9929ec+1)
@author Jonas Bernoulli
@page
@vskip 0pt plus 1filll
@@ -65,7 +65,7 @@ Calling a suffix command usually causes the transient to be exited
but suffix commands can also be configured to not exit the transient.
@noindent
-This manual is for Transient version 0.2.0 (v0.2.0-45-g313eee0f+1).
+This manual is for Transient version 0.2.0 (v0.2.0-46-g1b9929ec+1).
@quotation
Copyright (C) 2018-2020 Jonas Bernoulli <jonas@@bernoul.li>
@@ -1974,6 +1974,13 @@ They are defined here anyway to allow sharing certain methods.
@item
+@code{init-value} Function that is responsable for setting the object's
+value. If bound, then this is called with the object as the only
+argument. Usually this is not bound, in which case the object's
+primary @code{transient-init-value} method is called instead.
+
+
+@item
@code{unsavable} Whether the value of the suffix is not saved as part of
the prefixes.