diff options
| author | Glenn Morris | 2018-12-02 10:32:24 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-12-02 10:32:24 -0800 |
| commit | b6935dbe1816379dd6a9ffc14b2eaa4435003187 (patch) | |
| tree | 1417fc291003192db440de9e69cc1269edd80c33 | |
| parent | e8586d46f774283b4efe9f34e3a6570d1a19edfa (diff) | |
| parent | 317b3547820bf2468c1c0e9b5bed1bde94aeb544 (diff) | |
| download | emacs-b6935dbe1816379dd6a9ffc14b2eaa4435003187.tar.gz emacs-b6935dbe1816379dd6a9ffc14b2eaa4435003187.zip | |
Merge from origin/emacs-26
317b354 ; Add notes about cross-compiling macOS versions
4b176eb Fix macOS run-time feature check
c03574b * etc/NEWS-*: Fix capitalization of "Emacs"
# Conflicts:
# etc/NEWS
| -rw-r--r-- | etc/NEWS.1-17 | 2 | ||||
| -rw-r--r-- | etc/NEWS.18 | 2 | ||||
| -rw-r--r-- | etc/NEWS.19 | 2 | ||||
| -rw-r--r-- | etc/NEWS.20 | 2 | ||||
| -rw-r--r-- | etc/NEWS.21 | 2 | ||||
| -rw-r--r-- | etc/NEWS.26 | 5 | ||||
| -rw-r--r-- | nextstep/INSTALL | 29 | ||||
| -rw-r--r-- | src/nsterm.m | 4 |
8 files changed, 41 insertions, 7 deletions
diff --git a/etc/NEWS.1-17 b/etc/NEWS.1-17 index c74cc3de71a..0ee3a2a11ce 100644 --- a/etc/NEWS.1-17 +++ b/etc/NEWS.1-17 | |||
| @@ -4,7 +4,7 @@ Copyright (C) 1985-1986, 2006-2018 Free Software Foundation, Inc. | |||
| 4 | See the end of the file for license conditions. | 4 | See the end of the file for license conditions. |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | This file is about changes in emacs versions 1 through 17. | 7 | This file is about changes in Emacs versions 1 through 17. |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | 10 | ||
diff --git a/etc/NEWS.18 b/etc/NEWS.18 index 81b1a396543..2c014d26029 100644 --- a/etc/NEWS.18 +++ b/etc/NEWS.18 | |||
| @@ -4,7 +4,7 @@ Copyright (C) 1988, 2006-2018 Free Software Foundation, Inc. | |||
| 4 | See the end of the file for license conditions. | 4 | See the end of the file for license conditions. |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | This file is about changes in emacs version 18. | 7 | This file is about changes in Emacs version 18. |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | 10 | ||
diff --git a/etc/NEWS.19 b/etc/NEWS.19 index 1f84e87cefc..66eadb8e24a 100644 --- a/etc/NEWS.19 +++ b/etc/NEWS.19 | |||
| @@ -4,7 +4,7 @@ Copyright (C) 1993-1995, 2001, 2006-2018 Free Software Foundation, Inc. | |||
| 4 | See the end of the file for license conditions. | 4 | See the end of the file for license conditions. |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | This file is about changes in emacs versions 19. | 7 | This file is about changes in Emacs versions 19. |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | 10 | ||
diff --git a/etc/NEWS.20 b/etc/NEWS.20 index 398148bf573..d4a5b8cbb79 100644 --- a/etc/NEWS.20 +++ b/etc/NEWS.20 | |||
| @@ -7,7 +7,7 @@ See the end of the file for license conditions. | |||
| 7 | Please send Emacs bug reports to bug-gnu-emacs@gnu.org. | 7 | Please send Emacs bug reports to bug-gnu-emacs@gnu.org. |
| 8 | If possible, use M-x report-emacs-bug. | 8 | If possible, use M-x report-emacs-bug. |
| 9 | 9 | ||
| 10 | This file is about changes in emacs version 20. | 10 | This file is about changes in Emacs version 20. |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | 13 | ||
diff --git a/etc/NEWS.21 b/etc/NEWS.21 index ea4f4212ee0..4a22109e0b5 100644 --- a/etc/NEWS.21 +++ b/etc/NEWS.21 | |||
| @@ -4,7 +4,7 @@ Copyright (C) 2000-2018 Free Software Foundation, Inc. | |||
| 4 | See the end of the file for license conditions. | 4 | See the end of the file for license conditions. |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | This file is about changes in emacs version 21. | 7 | This file is about changes in Emacs version 21. |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | 10 | ||
diff --git a/etc/NEWS.26 b/etc/NEWS.26 index 399508cacc5..043573e3fca 100644 --- a/etc/NEWS.26 +++ b/etc/NEWS.26 | |||
| @@ -178,6 +178,11 @@ optional argument to do so. | |||
| 178 | 178 | ||
| 179 | * Changes in Emacs 26.2 on Non-Free Operating Systems | 179 | * Changes in Emacs 26.2 on Non-Free Operating Systems |
| 180 | 180 | ||
| 181 | ** macOS features can now be detected at run-time as well as at | ||
| 182 | build-time. See nextstep/INSTALL for details. | ||
| 183 | (This change was actually made in Emacs 26.1, but was undocumented and | ||
| 184 | not called out in its NEWS.) | ||
| 185 | |||
| 181 | 186 | ||
| 182 | * Installation Changes in Emacs 26.1 | 187 | * Installation Changes in Emacs 26.1 |
| 183 | 188 | ||
diff --git a/nextstep/INSTALL b/nextstep/INSTALL index 64f8f8fcf70..726a897c371 100644 --- a/nextstep/INSTALL +++ b/nextstep/INSTALL | |||
| @@ -45,6 +45,35 @@ files will be installed under whatever 'prefix' is set to (defaults to | |||
| 45 | require 'sudo' for "make install"). | 45 | require 'sudo' for "make install"). |
| 46 | 46 | ||
| 47 | 47 | ||
| 48 | Targeting different macOS versions | ||
| 49 | ---------------------------------- | ||
| 50 | |||
| 51 | The Emacs build process automatically enables or disables macOS | ||
| 52 | features according to the version of macOS it is being built on. It | ||
| 53 | is possible to override this automatic configuration if you are | ||
| 54 | targeting a different version of macOS, or wish to build one | ||
| 55 | executable that is able to enable or disable features at run-time. | ||
| 56 | |||
| 57 | To build a version compatible with an older version of macOS use this | ||
| 58 | flag: | ||
| 59 | |||
| 60 | -DMAC_OS_X_VERSION_MIN_REQUIRED=x | ||
| 61 | |||
| 62 | and to build for a newer version of macOS: | ||
| 63 | |||
| 64 | -DMAC_OS_X_VERSION_MAX_ALLOWED=x | ||
| 65 | |||
| 66 | For example, to enable run-time checks for features available between | ||
| 67 | macOS 10.6, and 10.12 inclusive: | ||
| 68 | |||
| 69 | ./configure --with-ns CFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=1060 \ | ||
| 70 | -DMAC_OS_X_VERSION_MAX_ALLOWED=101200 -g3 -O2" | ||
| 71 | |||
| 72 | The macOS version numbers are formatted as 10x0 for macOS up to 10.10, | ||
| 73 | and 10xx00 for macOS 10.10 and above. A full list is provided in | ||
| 74 | /usr/include/AvailabilityMacros.h. | ||
| 75 | |||
| 76 | |||
| 48 | Installation | 77 | Installation |
| 49 | ------------ | 78 | ------------ |
| 50 | 79 | ||
diff --git a/src/nsterm.m b/src/nsterm.m index 6ba867d27c0..6c285f0abb7 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1949,7 +1949,7 @@ x_set_parent_frame (struct frame *f, Lisp_Object new_value, Lisp_Object old_valu | |||
| 1949 | [[child parentWindow] removeChildWindow:child]; | 1949 | [[child parentWindow] removeChildWindow:child]; |
| 1950 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 | 1950 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 |
| 1951 | #if MAC_OS_X_VERSION_MIN_REQUIRED < 101000 | 1951 | #if MAC_OS_X_VERSION_MIN_REQUIRED < 101000 |
| 1952 | if ([child respondsToSelector:@selector(setAccessibilitySubrole:)] | 1952 | if ([child respondsToSelector:@selector(setAccessibilitySubrole:)]) |
| 1953 | #endif | 1953 | #endif |
| 1954 | [child setAccessibilitySubrole:NSAccessibilityStandardWindowSubrole]; | 1954 | [child setAccessibilitySubrole:NSAccessibilityStandardWindowSubrole]; |
| 1955 | #endif | 1955 | #endif |
| @@ -1963,7 +1963,7 @@ x_set_parent_frame (struct frame *f, Lisp_Object new_value, Lisp_Object old_valu | |||
| 1963 | ordered: NSWindowAbove]; | 1963 | ordered: NSWindowAbove]; |
| 1964 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 | 1964 | #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 |
| 1965 | #if MAC_OS_X_VERSION_MIN_REQUIRED < 101000 | 1965 | #if MAC_OS_X_VERSION_MIN_REQUIRED < 101000 |
| 1966 | if ([child respondsToSelector:@selector(setAccessibilitySubrole:)] | 1966 | if ([child respondsToSelector:@selector(setAccessibilitySubrole:)]) |
| 1967 | #endif | 1967 | #endif |
| 1968 | [child setAccessibilitySubrole:NSAccessibilityFloatingWindowSubrole]; | 1968 | [child setAccessibilitySubrole:NSAccessibilityFloatingWindowSubrole]; |
| 1969 | #endif | 1969 | #endif |