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
;; automate adding mail at point to ~/.mailrc | |
(require 'mail-parse) | |
(defun thing-at-point-bounds-of-email-address () | |
"return a cons of begin and end position of email address at point, including full name" | |
(save-excursion | |
(let* ((search-point (point)) | |
(start (re-search-backward "[:,]" (line-beginning-position) 'move)) | |
(dummy (goto-char search-point)) | |
(end (re-search-forward "[:,]" (line-end-position) t))) |
NewerOlder