Replies: 1 comment 2 replies
-
|
I guess it is fine as is. We rely on the command |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I'm editing in a buffer and call "jinx-languages", the point is lost when the snippet
Local Variables:
jinx-languages: "en_US"
End:
is inserted at the end of the buffer.
This can be avoided easily when the cond form in the function is wrapped in a save-excursion.
(defun jinx-languages (langs &optional global)
...
(interactive (list (jinx--read-languages) current-prefix-arg))
(unless jinx-mode (jinx-mode))
(save-excursion (cond
(global
... )))
(jinx--load-dicts)
(jinx--cleanup))
Is this a worthwhile change, or is moving the point to the location where the local variable is defined on purpose?
Beta Was this translation helpful? Give feedback.
All reactions