]> git.eshelyaron.com Git - emacs.git/commit
Preserve point in pascal-mode completion (bug#41740)
authorMattias Engdegård <mattiase@acm.org>
Sun, 21 Jun 2020 19:04:30 +0000 (21:04 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 22 Jun 2020 07:51:11 +0000 (09:51 +0200)
commit73daab99914b4972a7cd167b03102be4c68e83e5
tree454a7f5d3c33b72c1ba0b7f3cffb453473386c30
parentce4ec1793041ae0f013234ef7189ed855b5227a3
Preserve point in pascal-mode completion (bug#41740)

Failure to do so caused errors in several cases.
Reported by Shinichi Sakata.

* lisp/progmodes/pascal.el (pascal-type-completion)
(pascal-completion): Wrap code that may move point in save-excursion.
* test/lisp/progmodes/pascal-tests.el: New file.
lisp/progmodes/pascal.el
test/lisp/progmodes/pascal-tests.el [new file with mode: 0644]