diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/coding.c | 2 | ||||
| -rw-r--r-- | src/conf_post.h | 2 | ||||
| -rw-r--r-- | src/emacs.c | 2 | ||||
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/gtkutil.c | 2 | ||||
| -rw-r--r-- | src/macfont.h | 2 | ||||
| -rw-r--r-- | src/macfont.m | 6 | ||||
| -rw-r--r-- | src/nsfns.m | 8 | ||||
| -rw-r--r-- | src/nsfont.m | 4 | ||||
| -rw-r--r-- | src/nsimage.m | 4 | ||||
| -rw-r--r-- | src/nsmenu.m | 14 | ||||
| -rw-r--r-- | src/nsselect.m | 4 | ||||
| -rw-r--r-- | src/nsterm.m | 56 | ||||
| -rw-r--r-- | src/sysdep.c | 2 | ||||
| -rw-r--r-- | src/unexmacosx.c | 12 |
15 files changed, 61 insertions, 61 deletions
diff --git a/src/coding.c b/src/coding.c index 9f709bea24c..3e4af722e4c 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -122,7 +122,7 @@ END-OF-LINE FORMAT | |||
| 122 | How text end-of-line is encoded depends on operating system. For | 122 | How text end-of-line is encoded depends on operating system. For |
| 123 | instance, Unix's format is just one byte of LF (line-feed) code, | 123 | instance, Unix's format is just one byte of LF (line-feed) code, |
| 124 | whereas DOS's format is two-byte sequence of `carriage-return' and | 124 | whereas DOS's format is two-byte sequence of `carriage-return' and |
| 125 | `line-feed' codes. MacOS's format is usually one byte of | 125 | `line-feed' codes. Classic Mac OS's format is usually one byte of |
| 126 | `carriage-return'. | 126 | `carriage-return'. |
| 127 | 127 | ||
| 128 | Since text character encoding and end-of-line encoding are | 128 | Since text character encoding and end-of-line encoding are |
diff --git a/src/conf_post.h b/src/conf_post.h index f83965bf8b1..d8070fad8e7 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -192,7 +192,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 192 | #endif | 192 | #endif |
| 193 | #endif /* MSDOS */ | 193 | #endif /* MSDOS */ |
| 194 | 194 | ||
| 195 | /* Mac OS X / GNUstep need a bit more pure memory. Of the existing knobs, | 195 | /* macOS / GNUstep need a bit more pure memory. Of the existing knobs, |
| 196 | SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ | 196 | SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ |
| 197 | #ifdef HAVE_NS | 197 | #ifdef HAVE_NS |
| 198 | #if defined NS_IMPL_GNUSTEP | 198 | #if defined NS_IMPL_GNUSTEP |
diff --git a/src/emacs.c b/src/emacs.c index f8d5dfa3c6e..ce30ae741b2 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -2412,7 +2412,7 @@ Special values: | |||
| 2412 | `gnu' compiled for a GNU Hurd system. | 2412 | `gnu' compiled for a GNU Hurd system. |
| 2413 | `gnu/linux' compiled for a GNU/Linux system. | 2413 | `gnu/linux' compiled for a GNU/Linux system. |
| 2414 | `gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel. | 2414 | `gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel. |
| 2415 | `darwin' compiled for Darwin (GNU-Darwin, Mac OS X, ...). | 2415 | `darwin' compiled for Darwin (GNU-Darwin, macOS, ...). |
| 2416 | `ms-dos' compiled as an MS-DOS application. | 2416 | `ms-dos' compiled as an MS-DOS application. |
| 2417 | `windows-nt' compiled as a native W32 application. | 2417 | `windows-nt' compiled as a native W32 application. |
| 2418 | `cygwin' compiled using the Cygwin library. | 2418 | `cygwin' compiled using the Cygwin library. |
diff --git a/src/frame.c b/src/frame.c index cfa5f7d5027..854f72e64b4 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -5088,7 +5088,7 @@ Setting this variable does not affect existing frames, only new ones. */); | |||
| 5088 | doc: /* Default position of vertical scroll bars on this window-system. */); | 5088 | doc: /* Default position of vertical scroll bars on this window-system. */); |
| 5089 | #ifdef HAVE_WINDOW_SYSTEM | 5089 | #ifdef HAVE_WINDOW_SYSTEM |
| 5090 | #if defined (HAVE_NTGUI) || defined (NS_IMPL_COCOA) || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS)) | 5090 | #if defined (HAVE_NTGUI) || defined (NS_IMPL_COCOA) || (defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS)) |
| 5091 | /* MS-Windows, Mac OS X, and GTK have scroll bars on the right by | 5091 | /* MS-Windows, macOS, and GTK have scroll bars on the right by |
| 5092 | default. */ | 5092 | default. */ |
| 5093 | Vdefault_frame_scroll_bars = Qright; | 5093 | Vdefault_frame_scroll_bars = Qright; |
| 5094 | #else | 5094 | #else |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 0f256c563dc..e323216bb79 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -2370,7 +2370,7 @@ make_widget_for_menu_item (const char *utf8_label, const char *utf8_key) | |||
| 2370 | in the group. On exit, *GROUP contains the radio item group. | 2370 | in the group. On exit, *GROUP contains the radio item group. |
| 2371 | 2371 | ||
| 2372 | Unfortunately, keys don't line up as nicely as in Motif, | 2372 | Unfortunately, keys don't line up as nicely as in Motif, |
| 2373 | but the MacOS X version doesn't either, so I guess that is OK. */ | 2373 | but the macOS version doesn't either, so I guess that is OK. */ |
| 2374 | 2374 | ||
| 2375 | static GtkWidget * | 2375 | static GtkWidget * |
| 2376 | make_menu_item (const char *utf8_label, | 2376 | make_menu_item (const char *utf8_label, |
diff --git a/src/macfont.h b/src/macfont.h index 6630fb526b7..8f734527a46 100644 --- a/src/macfont.h +++ b/src/macfont.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Interface definition for Mac OSX Core text font backend. | 1 | /* Interface definition for macOS Core text font backend. |
| 2 | Copyright (C) 2009-2016 Free Software Foundation, Inc. | 2 | Copyright (C) 2009-2016 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
diff --git a/src/macfont.m b/src/macfont.m index 04456283fa1..ed7c1e3bd7a 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Font driver on Mac OSX Core text. | 1 | /* Font driver on macOS Core text. |
| 2 | Copyright (C) 2009-2016 Free Software Foundation, Inc. | 2 | Copyright (C) 2009-2016 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -1005,7 +1005,7 @@ macfont_set_family_cache (Lisp_Object symbol, CFStringRef string) | |||
| 1005 | and those start with ".". NULL means the cache has been invalidated. | 1005 | and those start with ".". NULL means the cache has been invalidated. |
| 1006 | Otherwise, the value is CFArray of CFStrings and the elements are | 1006 | Otherwise, the value is CFArray of CFStrings and the elements are |
| 1007 | sorted in the canonical order (CTFontManagerCompareFontFamilyNames on | 1007 | sorted in the canonical order (CTFontManagerCompareFontFamilyNames on |
| 1008 | OS X 10.6 and later). */ | 1008 | Mac OS X 10.6 and later). */ |
| 1009 | 1009 | ||
| 1010 | static CFArrayRef macfont_available_families_cache = NULL; | 1010 | static CFArrayRef macfont_available_families_cache = NULL; |
| 1011 | 1011 | ||
| @@ -4042,7 +4042,7 @@ mac_register_font_driver (struct frame *f) | |||
| 4042 | void | 4042 | void |
| 4043 | syms_of_macfont (void) | 4043 | syms_of_macfont (void) |
| 4044 | { | 4044 | { |
| 4045 | /* Core Text, for Mac OS X. */ | 4045 | /* Core Text, for macOS. */ |
| 4046 | DEFSYM (Qmac_ct, "mac-ct"); | 4046 | DEFSYM (Qmac_ct, "mac-ct"); |
| 4047 | macfont_driver.type = Qmac_ct; | 4047 | macfont_driver.type = Qmac_ct; |
| 4048 | register_font_driver (&macfont_driver, NULL); | 4048 | register_font_driver (&macfont_driver, NULL); |
diff --git a/src/nsfns.m b/src/nsfns.m index 9bc6c1d3418..82bb84a147a 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Functions for the NeXT/Open/GNUstep and MacOSX window system. | 1 | /* Functions for the NeXT/Open/GNUstep and macOS window system. |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software | 3 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| @@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | Originally by Carl Edman | 22 | Originally by Carl Edman |
| 23 | Updated by Christian Limpach (chris@nice.ch) | 23 | Updated by Christian Limpach (chris@nice.ch) |
| 24 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) | 24 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) |
| 25 | MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) | 25 | macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net) |
| 26 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | 26 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) |
| 27 | */ | 27 | */ |
| 28 | 28 | ||
| @@ -942,7 +942,7 @@ static void | |||
| 942 | x_icon (struct frame *f, Lisp_Object parms) | 942 | x_icon (struct frame *f, Lisp_Object parms) |
| 943 | /* -------------------------------------------------------------------------- | 943 | /* -------------------------------------------------------------------------- |
| 944 | Strangely-named function to set icon position parameters in frame. | 944 | Strangely-named function to set icon position parameters in frame. |
| 945 | This is irrelevant under OS X, but might be needed under GNUstep, | 945 | This is irrelevant under macOS, but might be needed under GNUstep, |
| 946 | depending on the window manager used. Note, this is not a standard | 946 | depending on the window manager used. Note, this is not a standard |
| 947 | frame parameter-setter; it is called directly from x-create-frame. | 947 | frame parameter-setter; it is called directly from x-create-frame. |
| 948 | -------------------------------------------------------------------------- */ | 948 | -------------------------------------------------------------------------- */ |
| @@ -2060,7 +2060,7 @@ DEFUN ("ns-list-services", Fns_list_services, Sns_list_services, 0, 0, 0, | |||
| 2060 | 2060 | ||
| 2061 | [svcs setAutoenablesItems: NO]; | 2061 | [svcs setAutoenablesItems: NO]; |
| 2062 | #ifdef NS_IMPL_COCOA | 2062 | #ifdef NS_IMPL_COCOA |
| 2063 | [svcs update]; /* on OS X, converts from '/' structure */ | 2063 | [svcs update]; /* on macOS, converts from '/' structure */ |
| 2064 | #endif | 2064 | #endif |
| 2065 | 2065 | ||
| 2066 | ret = interpret_services_menu (svcs, Qnil, ret); | 2066 | ret = interpret_services_menu (svcs, Qnil, ret); |
diff --git a/src/nsfont.m b/src/nsfont.m index 92e7d1154bf..4f95ee3a1a8 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Font back-end driver for the NeXT/Open/GNUstep and MacOSX window system. | 1 | /* Font back-end driver for the NeXT/Open/GNUstep and macOS window system. |
| 2 | See font.h | 2 | See font.h |
| 3 | Copyright (C) 2006-2016 Free Software Foundation, Inc. | 3 | Copyright (C) 2006-2016 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -500,7 +500,7 @@ static NSSet | |||
| 500 | { | 500 | { |
| 501 | NSCharacterSet *fset = [[fontMgr fontWithFamily: family | 501 | NSCharacterSet *fset = [[fontMgr fontWithFamily: family |
| 502 | traits: 0 weight: 5 size: 12.0] coveredCharacterSet]; | 502 | traits: 0 weight: 5 size: 12.0] coveredCharacterSet]; |
| 503 | /* Some fonts on OS X, maybe many on GNUstep, return nil. */ | 503 | /* Some fonts on macOS, maybe many on GNUstep, return nil. */ |
| 504 | if (fset == nil) | 504 | if (fset == nil) |
| 505 | fset = [NSCharacterSet characterSetWithRange: | 505 | fset = [NSCharacterSet characterSetWithRange: |
| 506 | NSMakeRange (0, 127)]; | 506 | NSMakeRange (0, 127)]; |
diff --git a/src/nsimage.m b/src/nsimage.m index 5b2534b9007..66aecd4289d 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Image support for the NeXT/Open/GNUstep and MacOSX window system. | 1 | /* Image support for the NeXT/Open/GNUstep and macOS window system. |
| 2 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software | 2 | Copyright (C) 1989, 1992-1994, 2005-2006, 2008-2016 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| @@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | Originally by Carl Edman | 21 | Originally by Carl Edman |
| 22 | Updated by Christian Limpach (chris@nice.ch) | 22 | Updated by Christian Limpach (chris@nice.ch) |
| 23 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) | 23 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) |
| 24 | MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) | 24 | macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net) |
| 25 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | 25 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
diff --git a/src/nsmenu.m b/src/nsmenu.m index 7d340e8ec83..f73c184dce7 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. | 1 | /* NeXT/Open/GNUstep and macOS Cocoa menu and toolbar module. |
| 2 | Copyright (C) 2007-2016 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2016 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -93,7 +93,7 @@ popup_activated (void) | |||
| 93 | /* -------------------------------------------------------------------------- | 93 | /* -------------------------------------------------------------------------- |
| 94 | Update menubar. Three cases: | 94 | Update menubar. Three cases: |
| 95 | 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up | 95 | 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up |
| 96 | just top-level menu strings (OS X), or goto case (2) (GNUstep). | 96 | just top-level menu strings (macOS), or goto case (2) (GNUstep). |
| 97 | 2) deep_p, submenu = nil: Recompute all submenus. | 97 | 2) deep_p, submenu = nil: Recompute all submenus. |
| 98 | 3) deep_p, submenu = non-nil: Update contents of a single submenu. | 98 | 3) deep_p, submenu = non-nil: Update contents of a single submenu. |
| 99 | -------------------------------------------------------------------------- */ | 99 | -------------------------------------------------------------------------- */ |
| @@ -584,7 +584,7 @@ x_activate_menubar (struct frame *f) | |||
| 584 | return; | 584 | return; |
| 585 | /*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */ | 585 | /*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */ |
| 586 | #ifdef NS_IMPL_GNUSTEP | 586 | #ifdef NS_IMPL_GNUSTEP |
| 587 | /* Don't know how to do this for anything other than OSX >= 10.5 | 587 | /* Don't know how to do this for anything other than Mac OS X 10.5 and later. |
| 588 | This is wrong, as it might run Lisp code in the event loop. */ | 588 | This is wrong, as it might run Lisp code in the event loop. */ |
| 589 | ns_update_menubar (frame, true, self); | 589 | ns_update_menubar (frame, true, self); |
| 590 | #endif | 590 | #endif |
| @@ -645,7 +645,7 @@ x_activate_menubar (struct frame *f) | |||
| 645 | 645 | ||
| 646 | keyEq = [self parseKeyEquiv: wv->key]; | 646 | keyEq = [self parseKeyEquiv: wv->key]; |
| 647 | #ifdef NS_IMPL_COCOA | 647 | #ifdef NS_IMPL_COCOA |
| 648 | /* OS X just ignores modifier strings longer than one character */ | 648 | /* macOS just ignores modifier strings longer than one character */ |
| 649 | if (keyEquivModMask == 0) | 649 | if (keyEquivModMask == 0) |
| 650 | title = [title stringByAppendingFormat: @" (%@)", keyEq]; | 650 | title = [title stringByAppendingFormat: @" (%@)", keyEq]; |
| 651 | #endif | 651 | #endif |
| @@ -1057,9 +1057,9 @@ update_frame_tool_bar (struct frame *f) | |||
| 1057 | /* Check if this is a separator. */ | 1057 | /* Check if this is a separator. */ |
| 1058 | if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt)) | 1058 | if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt)) |
| 1059 | { | 1059 | { |
| 1060 | /* Skip separators. Newer OSX don't show them, and on GNUstep they | 1060 | /* Skip separators. Newer macOS don't show them, and on |
| 1061 | are wide as a button, thus overflowing the toolbar most of | 1061 | GNUstep they are wide as a button, thus overflowing the |
| 1062 | the time. */ | 1062 | toolbar most of the time. */ |
| 1063 | continue; | 1063 | continue; |
| 1064 | } | 1064 | } |
| 1065 | 1065 | ||
diff --git a/src/nsselect.m b/src/nsselect.m index eba23932e65..b7c9148ee05 100644 --- a/src/nsselect.m +++ b/src/nsselect.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* NeXT/Open/GNUstep / MacOSX Cocoa selection processing for emacs. | 1 | /* NeXT/Open/GNUstep / macOS Cocoa selection processing for emacs. |
| 2 | Copyright (C) 1993-1994, 2005-2006, 2008-2016 Free Software | 2 | Copyright (C) 1993-1994, 2005-2006, 2008-2016 Free Software |
| 3 | Foundation, Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| @@ -21,7 +21,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | Originally by Carl Edman | 21 | Originally by Carl Edman |
| 22 | Updated by Christian Limpach (chris@nice.ch) | 22 | Updated by Christian Limpach (chris@nice.ch) |
| 23 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) | 23 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) |
| 24 | MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) | 24 | macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net) |
| 25 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | 25 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) |
| 26 | */ | 26 | */ |
| 27 | 27 | ||
diff --git a/src/nsterm.m b/src/nsterm.m index 4d9d10559ea..4f99a13c44e 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* NeXT/Open/GNUstep / MacOSX communication module. -*- coding: utf-8 -*- | 1 | /* NeXT/Open/GNUstep / macOS communication module. -*- coding: utf-8 -*- |
| 2 | 2 | ||
| 3 | Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2016 Free Software | 3 | Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2016 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| @@ -22,7 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | Originally by Carl Edman | 22 | Originally by Carl Edman |
| 23 | Updated by Christian Limpach (chris@nice.ch) | 23 | Updated by Christian Limpach (chris@nice.ch) |
| 24 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) | 24 | OpenStep/Rhapsody port by Scott Bender (sbender@harmony-ds.com) |
| 25 | MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net) | 25 | macOS/Aqua port by Christophe de Dinechin (descubes@earthlink.net) |
| 26 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) | 26 | GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu) |
| 27 | */ | 27 | */ |
| 28 | 28 | ||
| @@ -250,7 +250,7 @@ static unsigned convert_ns_to_X_keysym[] = | |||
| 250 | 0x1B, 0x1B /* escape */ | 250 | 0x1B, 0x1B /* escape */ |
| 251 | }; | 251 | }; |
| 252 | 252 | ||
| 253 | /* On OS X picks up the default NSGlobalDomain AppleAntiAliasingThreshold, | 253 | /* On macOS picks up the default NSGlobalDomain AppleAntiAliasingThreshold, |
| 254 | the maximum font size to NOT antialias. On GNUstep there is currently | 254 | the maximum font size to NOT antialias. On GNUstep there is currently |
| 255 | no way to control this behavior. */ | 255 | no way to control this behavior. */ |
| 256 | float ns_antialias_threshold; | 256 | float ns_antialias_threshold; |
| @@ -587,7 +587,7 @@ ns_load_path (void) | |||
| 587 | 587 | ||
| 588 | void | 588 | void |
| 589 | ns_init_locale (void) | 589 | ns_init_locale (void) |
| 590 | /* OS X doesn't set any environment variables for the locale when run | 590 | /* macOS doesn't set any environment variables for the locale when run |
| 591 | from the GUI. Get the locale from the OS and set LANG. */ | 591 | from the GUI. Get the locale from the OS and set LANG. */ |
| 592 | { | 592 | { |
| 593 | NSLocale *locale = [NSLocale currentLocale]; | 593 | NSLocale *locale = [NSLocale currentLocale]; |
| @@ -596,7 +596,7 @@ ns_init_locale (void) | |||
| 596 | 596 | ||
| 597 | @try | 597 | @try |
| 598 | { | 598 | { |
| 599 | /* It seems OS X should probably use UTF-8 everywhere. | 599 | /* It seems macOS should probably use UTF-8 everywhere. |
| 600 | 'localeIdentifier' does not specify the encoding, and I can't | 600 | 'localeIdentifier' does not specify the encoding, and I can't |
| 601 | find any way to get the OS to tell us which encoding to use, | 601 | find any way to get the OS to tell us which encoding to use, |
| 602 | so hard-code '.UTF-8'. */ | 602 | so hard-code '.UTF-8'. */ |
| @@ -718,7 +718,7 @@ ns_screen_margins (NSScreen *screen) | |||
| 718 | 718 | ||
| 719 | 719 | ||
| 720 | /* A screen margin between 1 and DOCK_IGNORE_LIMIT (inclusive) is | 720 | /* A screen margin between 1 and DOCK_IGNORE_LIMIT (inclusive) is |
| 721 | assumed to contain a hidden dock. OS X currently use 4 pixels for | 721 | assumed to contain a hidden dock. macOS currently use 4 pixels for |
| 722 | this, however, to be future compatible, a larger value is used. */ | 722 | this, however, to be future compatible, a larger value is used. */ |
| 723 | #define DOCK_IGNORE_LIMIT 6 | 723 | #define DOCK_IGNORE_LIMIT 6 |
| 724 | 724 | ||
| @@ -731,7 +731,7 @@ reserved for an hidden dock. */ | |||
| 731 | 731 | ||
| 732 | struct EmacsMargins margins = ns_screen_margins(screen); | 732 | struct EmacsMargins margins = ns_screen_margins(screen); |
| 733 | 733 | ||
| 734 | /* OS X (currently) reserved 4 pixels along the edge where a hidden | 734 | /* macOS (currently) reserved 4 pixels along the edge where a hidden |
| 735 | dock is located. Unfortunately, it's not possible to find the | 735 | dock is located. Unfortunately, it's not possible to find the |
| 736 | location and information about if the dock is hidden. Instead, | 736 | location and information about if the dock is hidden. Instead, |
| 737 | it is assumed that if the margin of an edge is less than | 737 | it is assumed that if the margin of an edge is less than |
| @@ -748,7 +748,7 @@ reserved for an hidden dock. */ | |||
| 748 | { | 748 | { |
| 749 | margins.top = 0; | 749 | margins.top = 0; |
| 750 | } | 750 | } |
| 751 | /* Note: This doesn't occur in current versions of OS X, but | 751 | /* Note: This doesn't occur in current versions of macOS, but |
| 752 | included for completeness and future compatibility. */ | 752 | included for completeness and future compatibility. */ |
| 753 | if (margins.bottom <= DOCK_IGNORE_LIMIT) | 753 | if (margins.bottom <= DOCK_IGNORE_LIMIT) |
| 754 | { | 754 | { |
| @@ -1027,7 +1027,7 @@ ns_update_begin (struct frame *f) | |||
| 1027 | #ifdef NS_IMPL_COCOA | 1027 | #ifdef NS_IMPL_COCOA |
| 1028 | if ([view isFullscreen] && [view fsIsNative]) | 1028 | if ([view isFullscreen] && [view fsIsNative]) |
| 1029 | { | 1029 | { |
| 1030 | // Fix reappearing tool bar in fullscreen for OSX 10.7 | 1030 | // Fix reappearing tool bar in fullscreen for Mac OS X 10.7 |
| 1031 | BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO; | 1031 | BOOL tbar_visible = FRAME_EXTERNAL_TOOL_BAR (f) ? YES : NO; |
| 1032 | NSToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar]; | 1032 | NSToolbar *toolbar = [FRAME_NS_VIEW (f) toolbar]; |
| 1033 | if (! tbar_visible != ! [toolbar isVisible]) | 1033 | if (! tbar_visible != ! [toolbar isVisible]) |
| @@ -1986,8 +1986,8 @@ ns_get_color (const char *name, NSColor **col) | |||
| 1986 | } | 1986 | } |
| 1987 | else if ([nsname isEqualToString: @"ns_selection_fg_color"]) | 1987 | else if ([nsname isEqualToString: @"ns_selection_fg_color"]) |
| 1988 | { | 1988 | { |
| 1989 | /* NOTE: OSX applications normally don't set foreground selection, but | 1989 | /* NOTE: macOS applications normally don't set foreground |
| 1990 | text may be unreadable if we don't. | 1990 | selection, but text may be unreadable if we don't. |
| 1991 | */ | 1991 | */ |
| 1992 | if ((new = [NSColor selectedTextColor]) != nil) | 1992 | if ((new = [NSColor selectedTextColor]) != nil) |
| 1993 | { | 1993 | { |
| @@ -3937,7 +3937,7 @@ ns_send_appdefined (int value) | |||
| 3937 | #ifdef NS_IMPL_COCOA | 3937 | #ifdef NS_IMPL_COCOA |
| 3938 | if (! send_appdefined) | 3938 | if (! send_appdefined) |
| 3939 | { | 3939 | { |
| 3940 | /* OSX 10.10.1 swallows the AppDefined event we are sending ourselves | 3940 | /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves |
| 3941 | in certain situations (rapid incoming events). | 3941 | in certain situations (rapid incoming events). |
| 3942 | So check if we have one, if not add one. */ | 3942 | So check if we have one, if not add one. */ |
| 3943 | NSEvent *appev = [NSApp nextEventMatchingMask:NSApplicationDefinedMask | 3943 | NSEvent *appev = [NSApp nextEventMatchingMask:NSApplicationDefinedMask |
| @@ -4816,7 +4816,7 @@ ns_term_init (Lisp_Object display_name) | |||
| 4816 | [outerpool release]; | 4816 | [outerpool release]; |
| 4817 | outerpool = [[NSAutoreleasePool alloc] init]; | 4817 | outerpool = [[NSAutoreleasePool alloc] init]; |
| 4818 | 4818 | ||
| 4819 | /* count object allocs (About, click icon); on OS X use ObjectAlloc tool */ | 4819 | /* count object allocs (About, click icon); on macOS use ObjectAlloc tool */ |
| 4820 | /*GSDebugAllocationActive (YES); */ | 4820 | /*GSDebugAllocationActive (YES); */ |
| 4821 | block_input (); | 4821 | block_input (); |
| 4822 | 4822 | ||
| @@ -4945,7 +4945,7 @@ ns_term_init (Lisp_Object display_name) | |||
| 4945 | 4945 | ||
| 4946 | ns_app_name = [[NSProcessInfo processInfo] processName]; | 4946 | ns_app_name = [[NSProcessInfo processInfo] processName]; |
| 4947 | 4947 | ||
| 4948 | /* Set up OS X app menu */ | 4948 | /* Set up macOS app menu */ |
| 4949 | 4949 | ||
| 4950 | NSTRACE_MSG ("Menu init"); | 4950 | NSTRACE_MSG ("Menu init"); |
| 4951 | 4951 | ||
| @@ -5017,7 +5017,7 @@ ns_term_init (Lisp_Object display_name) | |||
| 5017 | selector: @selector (trackingNotification:) | 5017 | selector: @selector (trackingNotification:) |
| 5018 | name: NSMenuDidEndTrackingNotification object: mainMenu]; | 5018 | name: NSMenuDidEndTrackingNotification object: mainMenu]; |
| 5019 | } | 5019 | } |
| 5020 | #endif /* MAC OS X menu setup */ | 5020 | #endif /* macOS menu setup */ |
| 5021 | 5021 | ||
| 5022 | /* Register our external input/output types, used for determining | 5022 | /* Register our external input/output types, used for determining |
| 5023 | applicable services and also drag/drop eligibility. */ | 5023 | applicable services and also drag/drop eligibility. */ |
| @@ -5245,7 +5245,7 @@ ns_term_shutdown (int sig) | |||
| 5245 | 5245 | ||
| 5246 | #ifdef NS_IMPL_COCOA | 5246 | #ifdef NS_IMPL_COCOA |
| 5247 | /* If no dialog and none of our frames have focus and it is a move, skip it. | 5247 | /* If no dialog and none of our frames have focus and it is a move, skip it. |
| 5248 | It is a mouse move in an auxiliary menu, i.e. on the top right on OSX, | 5248 | It is a mouse move in an auxiliary menu, i.e. on the top right on macOS, |
| 5249 | such as Wifi, sound, date or similar. | 5249 | such as Wifi, sound, date or similar. |
| 5250 | This prevents "spooky" highlighting in the frame under the menu. */ | 5250 | This prevents "spooky" highlighting in the frame under the menu. */ |
| 5251 | if (type == NSMouseMoved && [NSApp modalWindow] == nil) | 5251 | if (type == NSMouseMoved && [NSApp modalWindow] == nil) |
| @@ -5784,7 +5784,7 @@ not_in_argv (NSString *arg) | |||
| 5784 | 5784 | ||
| 5785 | NSTRACE ("[EmacsView keyDown:]"); | 5785 | NSTRACE ("[EmacsView keyDown:]"); |
| 5786 | 5786 | ||
| 5787 | /* Rhapsody and OS X give up and down events for the arrow keys */ | 5787 | /* Rhapsody and macOS give up and down events for the arrow keys */ |
| 5788 | if (ns_fake_keydown == YES) | 5788 | if (ns_fake_keydown == YES) |
| 5789 | ns_fake_keydown = NO; | 5789 | ns_fake_keydown = NO; |
| 5790 | else if ([theEvent type] != NSKeyDown) | 5790 | else if ([theEvent type] != NSKeyDown) |
| @@ -6018,7 +6018,7 @@ not_in_argv (NSString *arg) | |||
| 6018 | 6018 | ||
| 6019 | 6019 | ||
| 6020 | #ifdef NS_IMPL_COCOA | 6020 | #ifdef NS_IMPL_COCOA |
| 6021 | /* Needed to pick up Ctrl-tab and possibly other events that OS X has | 6021 | /* Needed to pick up Ctrl-tab and possibly other events that Mac OS X |
| 6022 | decided not to send key-down for. | 6022 | decided not to send key-down for. |
| 6023 | See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html | 6023 | See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html |
| 6024 | This only applies on Tiger and earlier. | 6024 | This only applies on Tiger and earlier. |
| @@ -7176,8 +7176,8 @@ not_in_argv (NSString *arg) | |||
| 7176 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 | 7176 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 |
| 7177 | unsigned val = (unsigned)[NSApp presentationOptions]; | 7177 | unsigned val = (unsigned)[NSApp presentationOptions]; |
| 7178 | 7178 | ||
| 7179 | // OSX 10.7 bug fix, the menu won't appear without this. | 7179 | // Mac OS X 10.7 bug fix, the menu won't appear without this. |
| 7180 | // val is non-zero on other OSX versions. | 7180 | // val is non-zero on other macOS versions. |
| 7181 | if (val == 0) | 7181 | if (val == 0) |
| 7182 | { | 7182 | { |
| 7183 | NSApplicationPresentationOptions options | 7183 | NSApplicationPresentationOptions options |
| @@ -7601,7 +7601,7 @@ not_in_argv (NSString *arg) | |||
| 7601 | unblock_input (); | 7601 | unblock_input (); |
| 7602 | 7602 | ||
| 7603 | /* | 7603 | /* |
| 7604 | drawRect: may be called (at least in OS X 10.5) for invisible | 7604 | drawRect: may be called (at least in Mac OS X 10.5) for invisible |
| 7605 | views as well for some reason. Thus, do not infer visibility | 7605 | views as well for some reason. Thus, do not infer visibility |
| 7606 | here. | 7606 | here. |
| 7607 | 7607 | ||
| @@ -8123,7 +8123,7 @@ not_in_argv (NSString *arg) | |||
| 8123 | [self setEnabled: YES]; | 8123 | [self setEnabled: YES]; |
| 8124 | 8124 | ||
| 8125 | /* Ensure auto resizing of scrollbars occurs within the emacs frame's view | 8125 | /* Ensure auto resizing of scrollbars occurs within the emacs frame's view |
| 8126 | locked against the top and bottom edges, and right edge on OS X, where | 8126 | locked against the top and bottom edges, and right edge on macOS, where |
| 8127 | scrollers are on right. */ | 8127 | scrollers are on right. */ |
| 8128 | #ifdef NS_IMPL_GNUSTEP | 8128 | #ifdef NS_IMPL_GNUSTEP |
| 8129 | [self setAutoresizingMask: NSViewMaxXMargin | NSViewHeightSizable]; | 8129 | [self setAutoresizingMask: NSViewMaxXMargin | NSViewHeightSizable]; |
| @@ -8730,14 +8730,14 @@ allowing it to be used at a lower level for accented character entry."); | |||
| 8730 | 8730 | ||
| 8731 | DEFVAR_LISP ("ns-auto-hide-menu-bar", ns_auto_hide_menu_bar, | 8731 | DEFVAR_LISP ("ns-auto-hide-menu-bar", ns_auto_hide_menu_bar, |
| 8732 | doc: /* Non-nil means that the menu bar is hidden, but appears when the mouse is near. | 8732 | doc: /* Non-nil means that the menu bar is hidden, but appears when the mouse is near. |
| 8733 | Only works on OSX 10.6 or later. */); | 8733 | Only works on Mac OS X 10.6 or later. */); |
| 8734 | ns_auto_hide_menu_bar = Qnil; | 8734 | ns_auto_hide_menu_bar = Qnil; |
| 8735 | 8735 | ||
| 8736 | DEFVAR_BOOL ("ns-use-native-fullscreen", ns_use_native_fullscreen, | 8736 | DEFVAR_BOOL ("ns-use-native-fullscreen", ns_use_native_fullscreen, |
| 8737 | doc: /*Non-nil means to use native fullscreen on OSX >= 10.7. | 8737 | doc: /*Non-nil means to use native fullscreen on Mac OS X 10.7 and later. |
| 8738 | Nil means use fullscreen the old (< 10.7) way. The old way works better with | 8738 | Nil means use fullscreen the old (< 10.7) way. The old way works better with |
| 8739 | multiple monitors, but lacks tool bar. This variable is ignored on OSX < 10.7. | 8739 | multiple monitors, but lacks tool bar. This variable is ignored on |
| 8740 | Default is t for OSX >= 10.7, nil otherwise. */); | 8740 | Mac OS X < 10.7. Default is t for 10.7 and later, nil otherwise. */); |
| 8741 | #ifdef HAVE_NATIVE_FS | 8741 | #ifdef HAVE_NATIVE_FS |
| 8742 | ns_use_native_fullscreen = YES; | 8742 | ns_use_native_fullscreen = YES; |
| 8743 | #else | 8743 | #else |
| @@ -8752,9 +8752,9 @@ Default is nil. */); | |||
| 8752 | ns_use_fullscreen_animation = NO; | 8752 | ns_use_fullscreen_animation = NO; |
| 8753 | 8753 | ||
| 8754 | DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace, | 8754 | DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace, |
| 8755 | doc: /*Non-nil means to use sRGB colorspace on OSX >= 10.7. | 8755 | doc: /*Non-nil means to use sRGB colorspace on Mac OS X 10.7 and later. |
| 8756 | Note that this does not apply to images. | 8756 | Note that this does not apply to images. |
| 8757 | This variable is ignored on OSX < 10.7 and GNUstep. */); | 8757 | This variable is ignored on Mac OS X < 10.7 and GNUstep. */); |
| 8758 | ns_use_srgb_colorspace = YES; | 8758 | ns_use_srgb_colorspace = YES; |
| 8759 | 8759 | ||
| 8760 | /* TODO: move to common code */ | 8760 | /* TODO: move to common code */ |
diff --git a/src/sysdep.c b/src/sysdep.c index 460166d119e..674e76db7a0 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -2337,7 +2337,7 @@ posix_close (int fd, int flag) | |||
| 2337 | closed, and retrying the close could inadvertently close a file | 2337 | closed, and retrying the close could inadvertently close a file |
| 2338 | descriptor allocated by some other thread. In other systems | 2338 | descriptor allocated by some other thread. In other systems |
| 2339 | (e.g., HP/UX) FD is not closed. And in still other systems | 2339 | (e.g., HP/UX) FD is not closed. And in still other systems |
| 2340 | (e.g., OS X, Solaris), maybe FD is closed, maybe not, and in a | 2340 | (e.g., macOS, Solaris), maybe FD is closed, maybe not, and in a |
| 2341 | multithreaded program there can be no way to tell. | 2341 | multithreaded program there can be no way to tell. |
| 2342 | 2342 | ||
| 2343 | So, in this case, pretend that the close succeeded. This works | 2343 | So, in this case, pretend that the close succeeded. This works |
diff --git a/src/unexmacosx.c b/src/unexmacosx.c index bdacc8b540b..f755f7fafd9 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Dump Emacs in Mach-O format for use on Mac OS X. | 1 | /* Dump Emacs in Mach-O format for use on macOS. |
| 2 | Copyright (C) 2001-2016 Free Software Foundation, Inc. | 2 | Copyright (C) 2001-2016 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -24,7 +24,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 24 | Mach-O format: the file loader.h, man pages for Mach-O and ld, old | 24 | Mach-O format: the file loader.h, man pages for Mach-O and ld, old |
| 25 | NEXTSTEP documents of the Mach-O format. The tool otool dumps the | 25 | NEXTSTEP documents of the Mach-O format. The tool otool dumps the |
| 26 | mach header (-h option) and the load commands (-l option) in a | 26 | mach header (-h option) and the load commands (-l option) in a |
| 27 | Mach-O file. The tool nm on Mac OS X displays the symbol table in | 27 | Mach-O file. The tool nm on macOS displays the symbol table in |
| 28 | a Mach-O file. For examples of unexec for the Mach-O format, see | 28 | a Mach-O file. For examples of unexec for the Mach-O format, see |
| 29 | the file unexnext.c in the GNU Emacs distribution, the file | 29 | the file unexnext.c in the GNU Emacs distribution, the file |
| 30 | unexdyld.c in the Darwin port of GNU Emacs 20.7, and unexdyld.c in | 30 | unexdyld.c in the Darwin port of GNU Emacs 20.7, and unexdyld.c in |
| @@ -33,7 +33,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | Read that to see what they do. This file was written completely | 33 | Read that to see what they do. This file was written completely |
| 34 | from scratch, making use of information from the above sources. */ | 34 | from scratch, making use of information from the above sources. */ |
| 35 | 35 | ||
| 36 | /* The Mac OS X implementation of unexec makes use of Darwin's `zone' | 36 | /* The macOS implementation of unexec makes use of Darwin's `zone' |
| 37 | memory allocator. All calls to malloc, realloc, and free in Emacs | 37 | memory allocator. All calls to malloc, realloc, and free in Emacs |
| 38 | are redirected to unexec_malloc, unexec_realloc, and unexec_free in | 38 | are redirected to unexec_malloc, unexec_realloc, and unexec_free in |
| 39 | this file. When temacs is run, all memory requests are handled in | 39 | this file. When temacs is run, all memory requests are handled in |
| @@ -49,7 +49,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 49 | block must be obtained by malloc and the old contents copied to | 49 | block must be obtained by malloc and the old contents copied to |
| 50 | it. */ | 50 | it. */ |
| 51 | 51 | ||
| 52 | /* Peculiarity of the Mach-O files generated by ld in Mac OS X | 52 | /* Peculiarity of the Mach-O files generated by ld in macOS |
| 53 | (possible causes of future bugs if changed). | 53 | (possible causes of future bugs if changed). |
| 54 | 54 | ||
| 55 | The file offset of the start of the __TEXT segment is zero. Since | 55 | The file offset of the start of the __TEXT segment is zero. Since |
| @@ -118,9 +118,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 118 | 118 | ||
| 119 | #include <assert.h> | 119 | #include <assert.h> |
| 120 | 120 | ||
| 121 | /* LC_DATA_IN_CODE is not defined in mach-o/loader.h on OS X 10.7. | 121 | /* LC_DATA_IN_CODE is not defined in mach-o/loader.h on Mac OS X 10.7. |
| 122 | But it is used if we build with "Command Line Tools for Xcode 4.5 | 122 | But it is used if we build with "Command Line Tools for Xcode 4.5 |
| 123 | (OS X Lion) - September 2012". */ | 123 | (Mac OS X Lion) - September 2012". */ |
| 124 | #ifndef LC_DATA_IN_CODE | 124 | #ifndef LC_DATA_IN_CODE |
| 125 | #define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */ | 125 | #define LC_DATA_IN_CODE 0x29 /* table of non-instructions in __text */ |
| 126 | #endif | 126 | #endif |