# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1121167960 0 # Node ID 4748803d9fb2bb635716621716087f158e82e05b # Parent 118ee9a8f53ac1138f13a306bbf88e0cdd669081 (mac-services-mail-selection, mac-services-mail-to): New functions. (mac-application-menu-map): Bind them. diff -r 118ee9a8f53a -r 4748803d9fb2 lisp/term/mac-win.el --- a/lisp/term/mac-win.el Tue Jul 12 06:18:38 2005 +0000 +++ b/lisp/term/mac-win.el Tue Jul 12 11:32:40 2005 +0000 @@ -1377,6 +1377,17 @@ (save-buffer) ; It pops up the save dialog. ) +(defun mac-services-mail-selection () + (interactive) + (compose-mail) + (rfc822-goto-eoh) + (forward-line 1) + (insert (x-selection-value mac-services-selection) "\n")) + +(defun mac-services-mail-to () + (interactive) + (compose-mail (x-selection-value mac-services-selection))) + (defun mac-services-insert-text () (interactive) (let ((text (x-selection-value mac-services-selection))) @@ -1393,6 +1404,10 @@ 'mac-services-open-file) (define-key mac-application-menu-map [services perform open-selection] 'mac-services-open-selection) +(define-key mac-application-menu-map [services perform mail-selection] + 'mac-services-mail-selection) +(define-key mac-application-menu-map [services perform mail-to] + 'mac-services-mail-to) (define-key mac-application-menu-map [services paste] 'mac-services-insert-text) (define-key mac-application-menu-map [preferences] 'customize)