diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 12 | ||||
| -rw-r--r-- | lisp/term/ns-win.el | 14 | ||||
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsterm.m | 7 |
5 files changed, 33 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3b220f875e4..708986f5220 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-10-20 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * menu-bar.el: Move GNUStep specific menus... | ||
| 4 | |||
| 5 | * term/ns-win.el (ns-initialize-window-system): ... to here. | ||
| 6 | |||
| 1 | 2013-10-19 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2013-10-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * simple.el (newline): Only run post-self-insert-hook when | 9 | * simple.el (newline): Only run post-self-insert-hook when |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index da80db00910..7c648df36fd 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -44,17 +44,7 @@ | |||
| 44 | ;; Force Help item to come last, after the major mode's own items. | 44 | ;; Force Help item to come last, after the major mode's own items. |
| 45 | ;; The symbol used to be called `help', but that gets confused with the | 45 | ;; The symbol used to be called `help', but that gets confused with the |
| 46 | ;; help key. | 46 | ;; help key. |
| 47 | (setq menu-bar-final-items '(help-menu)) | 47 | (setq menu-bar-final-items '(help-menu))) |
| 48 | (if (eq system-type 'darwin) | ||
| 49 | (setq menu-bar-final-items '(buffer services help-menu)) | ||
| 50 | (setq menu-bar-final-items '(buffer services hide-app quit)) | ||
| 51 | ;; Add standard top-level items to GNUstep menu. | ||
| 52 | (bindings--define-key global-map [menu-bar quit] | ||
| 53 | '(menu-item "Quit" save-buffers-kill-emacs | ||
| 54 | :help "Save unsaved buffers, then exit")) | ||
| 55 | (bindings--define-key global-map [menu-bar hide-app] | ||
| 56 | '(menu-item "Hide" ns-do-hide-emacs | ||
| 57 | :help "Hide Emacs")))) | ||
| 58 | 48 | ||
| 59 | ;; This definition is just to show what this looks like. | 49 | ;; This definition is just to show what this looks like. |
| 60 | ;; It gets modified in place when menu-bar-update-buffers is called. | 50 | ;; It gets modified in place when menu-bar-update-buffers is called. |
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index bc9cab375bf..fc15d2dff12 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -899,6 +899,20 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |||
| 899 | 899 | ||
| 900 | (x-open-connection (system-name) nil t) | 900 | (x-open-connection (system-name) nil t) |
| 901 | 901 | ||
| 902 | ;; Add GNUStep menu items Services, Hide and Quit. | ||
| 903 | (if (featurep 'gnustep) | ||
| 904 | (progn | ||
| 905 | (setq menu-bar-final-items '(buffer services hide-app quit)) | ||
| 906 | (bindings--define-key global-map [menu-bar quit] | ||
| 907 | '(menu-item "Quit" save-buffers-kill-emacs | ||
| 908 | :help "Save unsaved buffers, then exit")) | ||
| 909 | (bindings--define-key global-map [menu-bar hide-app] | ||
| 910 | '(menu-item "Hide" ns-do-hide-emacs | ||
| 911 | :help "Hide Emacs")) | ||
| 912 | (bindings--define-key global-map [menu-bar services] | ||
| 913 | (cons "Services" (make-sparse-keymap "Services"))))) | ||
| 914 | |||
| 915 | |||
| 902 | (dolist (service (ns-list-services)) | 916 | (dolist (service (ns-list-services)) |
| 903 | (if (eq (car service) 'undefined) | 917 | (if (eq (car service) 'undefined) |
| 904 | (ns-define-service (cdr service)) | 918 | (ns-define-service (cdr service)) |
diff --git a/src/ChangeLog b/src/ChangeLog index b973b5b8d04..c229c50b663 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-20 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.m (Qcocoa, Qgnustep): New variables. | ||
| 4 | (syms_of_nsterm): Defsym Qcocoa, Qgnustep. Fprovide appropriate one. | ||
| 5 | |||
| 1 | 2013-10-18 Eli Zaretskii <eliz@gnu.org> | 6 | 2013-10-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * keyboard.c (make_lispy_event): Remove GPM-specific code that | 8 | * keyboard.c (make_lispy_event): Remove GPM-specific code that |
diff --git a/src/nsterm.m b/src/nsterm.m index 5b2c6a3f686..11aba4edd4a 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -173,6 +173,7 @@ Lisp_Object Qalt, Qcontrol, Qhyper, Qmeta, Qsuper; | |||
| 173 | extern Lisp_Object Qcursor_color, Qcursor_type, Qns, Qleft; | 173 | extern Lisp_Object Qcursor_color, Qcursor_type, Qns, Qleft; |
| 174 | 174 | ||
| 175 | static Lisp_Object QUTF8_STRING; | 175 | static Lisp_Object QUTF8_STRING; |
| 176 | static Lisp_Object Qcocoa, Qgnustep; | ||
| 176 | 177 | ||
| 177 | /* On OS X picks up the default NSGlobalDomain AppleAntiAliasingThreshold, | 178 | /* On OS X picks up the default NSGlobalDomain AppleAntiAliasingThreshold, |
| 178 | the maximum font size to NOT antialias. On GNUstep there is currently | 179 | the maximum font size to NOT antialias. On GNUstep there is currently |
| @@ -7501,11 +7502,17 @@ baseline level. The default value is nil. */); | |||
| 7501 | /* Tell Emacs about this window system. */ | 7502 | /* Tell Emacs about this window system. */ |
| 7502 | Fprovide (Qns, Qnil); | 7503 | Fprovide (Qns, Qnil); |
| 7503 | 7504 | ||
| 7505 | DEFSYM (Qcocoa, "cocoa"); | ||
| 7506 | DEFSYM (Qgnustep, "gnustep"); | ||
| 7507 | |||
| 7504 | syms_of_nsfont (); | 7508 | syms_of_nsfont (); |
| 7505 | #ifdef NS_IMPL_COCOA | 7509 | #ifdef NS_IMPL_COCOA |
| 7510 | Fprovide (Qcocoa, Qnil); | ||
| 7506 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 | 7511 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 |
| 7507 | syms_of_macfont (); | 7512 | syms_of_macfont (); |
| 7508 | #endif | 7513 | #endif |
| 7514 | #else | ||
| 7515 | Fprovide (Qgnustep, Qnil); | ||
| 7509 | #endif | 7516 | #endif |
| 7510 | 7517 | ||
| 7511 | } | 7518 | } |