aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-07-12 11:32:40 +0000
committerYAMAMOTO Mitsuharu2005-07-12 11:32:40 +0000
commitb007e01c6c5937b052662cb64beca7b8422af5cb (patch)
tree4ffd855a112074cac04bfe5c1e50bebea6297b33
parent2f9a4a2226b234e68d87735a0af9a46ceaa546ed (diff)
downloademacs-b007e01c6c5937b052662cb64beca7b8422af5cb.tar.gz
emacs-b007e01c6c5937b052662cb64beca7b8422af5cb.zip
(mac-services-mail-selection, mac-services-mail-to): New functions.
(mac-application-menu-map): Bind them.
-rw-r--r--lisp/term/mac-win.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index 22bd55e5943..124a7898b13 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -1377,6 +1377,17 @@ in `selection-converter-alist', which see."
1377 (save-buffer) ; It pops up the save dialog. 1377 (save-buffer) ; It pops up the save dialog.
1378 ) 1378 )
1379 1379
1380(defun mac-services-mail-selection ()
1381 (interactive)
1382 (compose-mail)
1383 (rfc822-goto-eoh)
1384 (forward-line 1)
1385 (insert (x-selection-value mac-services-selection) "\n"))
1386
1387(defun mac-services-mail-to ()
1388 (interactive)
1389 (compose-mail (x-selection-value mac-services-selection)))
1390
1380(defun mac-services-insert-text () 1391(defun mac-services-insert-text ()
1381 (interactive) 1392 (interactive)
1382 (let ((text (x-selection-value mac-services-selection))) 1393 (let ((text (x-selection-value mac-services-selection)))
@@ -1393,6 +1404,10 @@ in `selection-converter-alist', which see."
1393 'mac-services-open-file) 1404 'mac-services-open-file)
1394(define-key mac-application-menu-map [services perform open-selection] 1405(define-key mac-application-menu-map [services perform open-selection]
1395 'mac-services-open-selection) 1406 'mac-services-open-selection)
1407(define-key mac-application-menu-map [services perform mail-selection]
1408 'mac-services-mail-selection)
1409(define-key mac-application-menu-map [services perform mail-to]
1410 'mac-services-mail-to)
1396(define-key mac-application-menu-map [services paste] 1411(define-key mac-application-menu-map [services paste]
1397 'mac-services-insert-text) 1412 'mac-services-insert-text)
1398(define-key mac-application-menu-map [preferences] 'customize) 1413(define-key mac-application-menu-map [preferences] 'customize)