diff options
| author | YAMAMOTO Mitsuharu | 2006-09-08 08:17:21 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-09-08 08:17:21 +0000 |
| commit | dbcdba77e6d0b3ce23ceeba55ac6a1b3e25e3898 (patch) | |
| tree | e08e62695114122704c32240609a7afa146162c6 | |
| parent | 8a5ae807e45db71ddaa624ba88e5fe7467cd26e1 (diff) | |
| download | emacs-dbcdba77e6d0b3ce23ceeba55ac6a1b3e25e3898.tar.gz emacs-dbcdba77e6d0b3ce23ceeba55ac6a1b3e25e3898.zip | |
(show-hide-font-panel): New HI command ID symbol.
(mac-apple-event-map): Define its handler.
| -rw-r--r-- | lisp/term/mac-win.el | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el index 20a65976a5c..bda2e398cb7 100644 --- a/lisp/term/mac-win.el +++ b/lisp/term/mac-win.el | |||
| @@ -1533,19 +1533,20 @@ in `selection-converter-alist', which see." | |||
| 1533 | 1533 | ||
| 1534 | ;;; Event IDs | 1534 | ;;; Event IDs |
| 1535 | ;; kCoreEventClass | 1535 | ;; kCoreEventClass |
| 1536 | (put 'open-application 'mac-apple-event-id "oapp") ; kAEOpenApplication | 1536 | (put 'open-application 'mac-apple-event-id "oapp") ; kAEOpenApplication |
| 1537 | (put 'reopen-application 'mac-apple-event-id "rapp") ; kAEReopenApplication | 1537 | (put 'reopen-application 'mac-apple-event-id "rapp") ; kAEReopenApplication |
| 1538 | (put 'open-documents 'mac-apple-event-id "odoc") ; kAEOpenDocuments | 1538 | (put 'open-documents 'mac-apple-event-id "odoc") ; kAEOpenDocuments |
| 1539 | (put 'print-documents 'mac-apple-event-id "pdoc") ; kAEPrintDocuments | 1539 | (put 'print-documents 'mac-apple-event-id "pdoc") ; kAEPrintDocuments |
| 1540 | (put 'open-contents 'mac-apple-event-id "ocon") ; kAEOpenContents | 1540 | (put 'open-contents 'mac-apple-event-id "ocon") ; kAEOpenContents |
| 1541 | (put 'quit-application 'mac-apple-event-id "quit") ; kAEQuitApplication | 1541 | (put 'quit-application 'mac-apple-event-id "quit") ; kAEQuitApplication |
| 1542 | (put 'application-died 'mac-apple-event-id "obit") ; kAEApplicationDied | 1542 | (put 'application-died 'mac-apple-event-id "obit") ; kAEApplicationDied |
| 1543 | (put 'show-preferences 'mac-apple-event-id "pref") ; kAEShowPreferences | 1543 | (put 'show-preferences 'mac-apple-event-id "pref") ; kAEShowPreferences |
| 1544 | (put 'autosave-now 'mac-apple-event-id "asav") ; kAEAutosaveNow | 1544 | (put 'autosave-now 'mac-apple-event-id "asav") ; kAEAutosaveNow |
| 1545 | ;; kAEInternetEventClass | 1545 | ;; kAEInternetEventClass |
| 1546 | (put 'get-url 'mac-apple-event-id "GURL") ; kAEGetURL | 1546 | (put 'get-url 'mac-apple-event-id "GURL") ; kAEGetURL |
| 1547 | ;; Converted HI command events | 1547 | ;; Converted HI command events |
| 1548 | (put 'about 'mac-apple-event-id "abou") ; kHICommandAbout | 1548 | (put 'about 'mac-apple-event-id "abou") ; kHICommandAbout |
| 1549 | (put 'show-hide-font-panel 'mac-apple-event-id "shfp") ; kHICommandShowHideFontPanel | ||
| 1549 | 1550 | ||
| 1550 | (defmacro mac-event-spec (event) | 1551 | (defmacro mac-event-spec (event) |
| 1551 | `(nth 1 ,event)) | 1552 | `(nth 1 ,event)) |
| @@ -1801,6 +1802,8 @@ With numeric ARG, display the font panel if and only if ARG is positive." | |||
| 1801 | 'mac-handle-font-panel-closed) | 1802 | 'mac-handle-font-panel-closed) |
| 1802 | ;; kEventClassFont/kEventFontSelection | 1803 | ;; kEventClassFont/kEventFontSelection |
| 1803 | (define-key mac-apple-event-map [font selection] 'mac-handle-font-selection) | 1804 | (define-key mac-apple-event-map [font selection] 'mac-handle-font-selection) |
| 1805 | (define-key mac-apple-event-map [hi-command show-hide-font-panel] | ||
| 1806 | 'mac-font-panel-mode) | ||
| 1804 | 1807 | ||
| 1805 | (define-key-after menu-bar-showhide-menu [mac-font-panel-mode] | 1808 | (define-key-after menu-bar-showhide-menu [mac-font-panel-mode] |
| 1806 | (menu-bar-make-mm-toggle mac-font-panel-mode | 1809 | (menu-bar-make-mm-toggle mac-font-panel-mode |