Created
November 16, 2011 08:10
-
-
Save dbushenko/1369550 to your computer and use it in GitHub Desktop.
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
(defun my-copy () | |
(interactive) | |
(search-backward " ") | |
(setq st (point)) | |
(forward-char 1) | |
(search-forward " ") | |
(setq nd (point)) | |
(setq txt (buffer-substring st nd)) | |
(message text)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(defun my-copy ()
(interactive)
(let (st nd text)
(search-backward " ")
(setq st (point))
(forward-char 1)
(search-forward " ")
(setq nd (point))
(setq txt (buffer-substring st nd))
(message txt)))