xFA25E / skempo

Enhance Emacs skeleton, tempo and abbrev.
GNU General Public License v3.0
34 stars 2 forks source link

Fails to expand at the very beginning or end of a buffer #2

Closed doublep closed 2 years ago

doublep commented 2 years ago

Using an example template:

(skempo-define-tempo (let :mode (emacs-lisp-mode lisp-mode))
  (lisp-with-parens
   "let ((" p "))" n>
   r>))

1) create a new buffer; 2) type "let"; 3) press C-z or M-x skempo-complete-tag-or-call-on-region RET.

Fails with "Wrong type argument: number-or-marker-p, nil" here.

On a tangentially related note, I suggest you add some tests.

xFA25E commented 2 years ago

Hi, thanks for reporting this issue!

This issue, however, is not directly related to this project. This is a bug in my emacs configuration. I've just fixed it here.

Tests would be a great idea. I can't figure out, how to test interactive template expansion.