emacs/var/elfeed/db/data/cf/cfccdd23a704d67a82d9ddf961ece2d1c90f8e28
2022-01-03 12:49:32 -06:00

1 line
1.4 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>Ok, so, today I decided to learn abbrev. After wrestling a couple of minutes with the abbrev file because I&#39;m using chemacs2, I finally defined an abbrev, and it worked. Well, <em>kinda</em> worked.</p> <p>It seems that if I type out the abbrev really quickly and press <code>M-&#39;</code>, then it works, but inserts a dash after the needed expansion. If I type it out slowly, and then press <code>M-&#39;</code>, it just places the dash after the thing that I need to expand. Then, if I quickly typed the thing and expanded it with <code>M-&#39;</code>, I can expand it second time if I type it out and press <code>C-x &#39;</code>. If I JUST type it out and press <code>C-x &#39;</code>, nothing happens. I also tried doing it using hippie-expand, and it works, on the second time, printing <code>&quot;Using try-expand-all-abbrevs&quot;</code> in the echo area.</p> <p>I tried doing the same thing with completely clean emacs config (<code>emacs -Q</code>), and the results are the same. My version of emacs is <code>28.0.50</code>. What am I doing wrong?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Scriptod"> /u/Scriptod </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r6bwlt/why_does_abbrev_act_so_strangely/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r6bwlt/why_does_abbrev_act_so_strangely/">[comments]</a></span>