diff options
Diffstat (limited to 'devdocs/elisp/abbrev-table-properties.html')
| -rw-r--r-- | devdocs/elisp/abbrev-table-properties.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devdocs/elisp/abbrev-table-properties.html b/devdocs/elisp/abbrev-table-properties.html new file mode 100644 index 00000000..342f599f --- /dev/null +++ b/devdocs/elisp/abbrev-table-properties.html @@ -0,0 +1,15 @@ + <h3 class="section">Abbrev Table Properties</h3> <p>Like abbrevs, abbrev tables have properties, some of which influence the way they work. You can provide them as arguments to <code>define-abbrev-table</code>, and manipulate them with the functions: </p> <dl> <dt id="abbrev-table-put">Function: <strong>abbrev-table-put</strong> <em>table prop val</em> +</dt> <dd><p>Set the property <var>prop</var> of abbrev table <var>table</var> to value <var>val</var>. </p></dd> +</dl> <dl> <dt id="abbrev-table-get">Function: <strong>abbrev-table-get</strong> <em>table prop</em> +</dt> <dd><p>Return the property <var>prop</var> of abbrev table <var>table</var>, or <code>nil</code> if <var>table</var> has no such property. </p></dd> +</dl> <p>The following properties have special meaning: </p> <dl compact> <dt><code>:enable-function</code></dt> <dd> +<p>This is like the <code>:enable-function</code> abbrev property except that it applies to all abbrevs in the table. It is used before even trying to find the abbrev before point, so it can dynamically modify the abbrev table. </p> </dd> <dt><code>:case-fixed</code></dt> <dd> +<p>This is like the <code>:case-fixed</code> abbrev property except that it applies to all abbrevs in the table. </p> </dd> <dt><code>:regexp</code></dt> <dd> +<p>If non-<code>nil</code>, this property is a regular expression that indicates how to extract the name of the abbrev before point, before looking it up in the table. When the regular expression matches before point, the abbrev name is expected to be in submatch 1. If this property is <code>nil</code>, the default is to use <code>backward-word</code> and <code>forward-word</code> to find the name. This property allows the use of abbrevs whose name contains characters of non-word syntax. </p> </dd> <dt><code>:parents</code></dt> <dd> +<p>This property holds a list of tables from which to inherit other abbrevs. </p> </dd> <dt><code>:abbrev-table-modiff</code></dt> <dd> +<p>This property holds a counter incremented each time a new abbrev is added to the table. </p> </dd> </dl><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br> + <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Abbrev-Table-Properties.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Abbrev-Table-Properties.html</a> + </p> +</div> |
