Created
December 5, 2017 15:44
-
-
Save maximvl/ef9bba90cd4e3def143705ee6176b696 to your computer and use it in GitHub Desktop.
elisp stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(cl-defun perl-move-cursor (pos &optional buffer) | |
(let ((window (get-buffer-window buffer t))) | |
(message "window: %s / pos: %s" window pos) | |
(if window | |
(progn | |
(goto-char pos) | |
(set-window-point window pos) | |
(message "char at %s" (point)) | |
(message "char2 at %s" (window-point window))) | |
(goto-char pos)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment