diff options
author | Allen Li <darkfeline@felesatra.moe> | 2019-06-16 03:32:02 -0700 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2019-06-22 19:25:44 -0400 |
commit | 2db75262c7395483d1fa9a0c9d93dd3e4d534e1f (patch) | |
tree | 15e7327d356d20ddcc894810ecf3615fb1a22fe7 /lisp/abbrev.el | |
parent | 0f01a58c390faf30c33b369fc81b2a14ec5b7f2e (diff) | |
download | emacs-2db75262c7395483d1fa9a0c9d93dd3e4d534e1f.tar.gz emacs-2db75262c7395483d1fa9a0c9d93dd3e4d534e1f.tar.bz2 emacs-2db75262c7395483d1fa9a0c9d93dd3e4d534e1f.zip |
Fix defining inverse abbrevs on previous words (Bug#36243)
* lisp/abbrev.el (inverse-add-abbrev): Skip trailing nonword
characters when defining abbrev.
* test/lisp/abbrev-tests.el (abbrev-edit-save-to-file-test): Add
regression tests.
Diffstat (limited to 'lisp/abbrev.el')
-rw-r--r-- | lisp/abbrev.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 3c88ec661a9..3d0a843e375 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el @@ -352,6 +352,7 @@ Expands the abbreviation after defining it." (let (name exp start end) (save-excursion (forward-word (1+ (- arg))) + (skip-syntax-backward "^w") (setq end (point)) (backward-word 1) (setq start (point) |