1 line
1.4 KiB
Plaintext
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'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-'</code>, then it works, but inserts a dash after the needed expansion. If I type it out slowly, and then press <code>M-'</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-'</code>, I can expand it second time if I type it out and press <code>C-x '</code>. If I JUST type it out and press <code>C-x '</code>, nothing happens. I also tried doing it using hippie-expand, and it works, on the second time, printing <code>"Using try-expand-all-abbrevs"</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 -->   submitted by   <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>   <span><a href="https://www.reddit.com/r/emacs/comments/r6bwlt/why_does_abbrev_act_so_strangely/">[comments]</a></span> |