summaryrefslogtreecommitdiff
path: root/devdocs/elisp/abbrev-properties.html
blob: 8e98c1832745fe1cd9d819f9ddc0538d59239c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 &copy; 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>