diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/abbrev-properties.html | |
new repository
Diffstat (limited to 'devdocs/elisp/abbrev-properties.html')
| -rw-r--r-- | devdocs/elisp/abbrev-properties.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devdocs/elisp/abbrev-properties.html b/devdocs/elisp/abbrev-properties.html new file mode 100644 index 00000000..8e98c183 --- /dev/null +++ b/devdocs/elisp/abbrev-properties.html @@ -0,0 +1,13 @@ + <h3 class="section">Abbrev Properties</h3> <p>Abbrevs have properties, some of which influence the way they work. You can provide them as arguments to <code>define-abbrev</code>, and manipulate them with the following functions: </p> <dl> <dt id="abbrev-put">Function: <strong>abbrev-put</strong> <em>abbrev prop val</em> +</dt> <dd><p>Set the property <var>prop</var> of <var>abbrev</var> to value <var>val</var>. </p></dd> +</dl> <dl> <dt id="abbrev-get">Function: <strong>abbrev-get</strong> <em>abbrev prop</em> +</dt> <dd><p>Return the property <var>prop</var> of <var>abbrev</var>, or <code>nil</code> if the abbrev has no such property. </p></dd> +</dl> <p>The following properties have special meanings: </p> <dl compact> <dt><code>:count</code></dt> <dd> +<p>This property counts the number of times the abbrev has been expanded. If not explicitly set, it is initialized to 0 by <code>define-abbrev</code>. </p> </dd> <dt><code>:system</code></dt> <dd> +<p>If non-<code>nil</code>, this property marks the abbrev as a system abbrev. Such abbrevs are not saved (see <a href="abbrev-files">Abbrev Files</a>). </p> </dd> <dt><code>:enable-function</code></dt> <dd> +<p>If non-<code>nil</code>, this property should be a function of no arguments which returns <code>nil</code> if the abbrev should not be used and <code>t</code> otherwise. </p> </dd> <dt><code>:case-fixed</code></dt> <dd><p>If non-<code>nil</code>, this property indicates that the case of the abbrev’s name is significant and should only match a text with the same pattern of capitalization. It also disables the code that modifies the capitalization of the expansion. </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-Properties.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Abbrev-Properties.html</a> + </p> +</div> |
