Skip to content

Commit f83d768

Browse files
authored
[completion] Protect call to check-parens with save-mark-and-excursion (#3818)
nasty (check-parens) it mess up marks selection in my idiosyncratic config of emacs So I put it in (save-mark-and-excursion) instead of only (save-excursion) The only one that was messing with my usage was in "cider-completion-get-info-context-at-point" but who knows, maybe "cider-completion-get-context-at-point" also mess someone's emacs usage So to be safe, did it to both
1 parent d1dbe82 commit f83d768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cider-completion-context.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
Note that this context is slightly different than that of
5252
`cider-completion-get-context-at-point': this one does not include
5353
the current symbol at point."
54-
(when (save-excursion
54+
(when (save-mark-and-excursion
5555
(condition-case _
5656
(progn
5757
(up-list)
@@ -78,7 +78,7 @@ the current symbol at point."
7878
"Extract the context at point.
7979
If point is not inside the list, returns nil; otherwise return \"top-level\"
8080
form, with symbol at point replaced by __prefix__."
81-
(when (save-excursion
81+
(when (save-mark-and-excursion
8282
(condition-case _
8383
(progn
8484
(up-list)

0 commit comments

Comments
 (0)