aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2017-11-02 21:01:04 -0700
committerPaul Eggert2017-11-02 21:01:04 -0700
commitc66a3944edca6150c9252e15a0ea75c96225481b (patch)
tree888bfa31967a17c174ba61d0a8547dd64658060a /src
parent770f245cdf2cf9e74e49bb32afb77562d9b1ad6d (diff)
parent7f089aa5f6d208209b2cfef8e0d3d9530e191248 (diff)
downloademacs-c66a3944edca6150c9252e15a0ea75c96225481b.tar.gz
emacs-c66a3944edca6150c9252e15a0ea75c96225481b.zip
Merge from origin/emacs-26
7f089aa5f6 Require seq in rmc.el 53aaad1dfc Make an example code introduced in the Gnus info work (bug... 7b29db222f Enable gnus-read-ephemeral-* to run multiple times (bug#29... 015f0bb2d8 Port thread.c to OpenBSD ARM ad68bbd0da Fix another "wrong side of point" error in CC Mode. 646e56e150 Fix Bug#28959 685fd77959 Fix duplicate .o file on QNX e562356c3f Fix two js indentation problems b8cf159bbc Update documentation for windows build 46540a1c7a Fix a "wrong side of point" error in CC Mode. Fixes bug #... 57ca409111 Fix autoload of flymake from elisp-mode during bootstrap (... aee0bc8775 Fix non-native fullscreen on NS (bug#28872) d6c1a9cb8a ; Fix author email address in test/lisp/url/url-tramp-test... 761c630766 Fix Bug#28982 628b653209 Fix windows build errors e8a06a5f9a Fix compile warning for non-w32 builds 0c536a20fb Display commit in package description, if available (Bug#2... 1d83257a1d Port to QNX 19667f44ef * configure.ac: Tweak libcurses diagnostic. 3fc05cfaec Scripts to automate windows binary distribution 928a106939 Fix Edebug specs for map-let and with-maps-do 46f2ee0d4c * test/lisp/net/tramp-tests.el (tramp-test41-delay-load): ... b51009d7f0 * admin/authors.el (authors-canonical-author-name): Ignore... a015db90e3 * test/lisp/progmodes/sql-tests.el (sql-tests-postgres-lis... 529a9c09d3 Further work on Bug#28889 c6deabaf4d Improve Tramp backward compatibility 8093e82e42 Improve backward compatibility of tramp-tests.el 46cdc01daa Fix some ‘window-normalize-’ prefixed functions (Bug#28947) 6360611457 Port to OpenIndiana a012ec766c Don't fill keywords after Emacs Lisp docstring b7c4aa951c Refactor c-forward-token-2 with new function c-forward-ove... 3aee7be62e Avoid unnecessary rounding errors in timestamps 2bfa42855b Fix xdg timestamp error on 32-bit Emacs 237e96bc52 Test that advice doesn't trigger bytecomp warnings (Bug#28... d719ea6ad5 Another fix for unsafe directory error message (Bug#865) b060e091c3 Handle https url for debbugs mbox (Bug#28831) 9e4265ef91 Ignore string properties when saving eshell history (Bug#2... 0f286ca85a Fix Bug#28889
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m18
-rw-r--r--src/thread.c2
-rw-r--r--src/unexelf.c15
3 files changed, 22 insertions, 13 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 709e905ec8f..a382e5f7130 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6804,14 +6804,19 @@ not_in_argv (NSString *arg)
6804 6804
6805 if (! [self isFullscreen]) 6805 if (! [self isFullscreen])
6806 { 6806 {
6807 int toolbar_height;
6807#ifdef NS_IMPL_GNUSTEP 6808#ifdef NS_IMPL_GNUSTEP
6808 // GNUstep does not always update the tool bar height. Force it. 6809 // GNUstep does not always update the tool bar height. Force it.
6809 if (toolbar && [toolbar isVisible]) 6810 if (toolbar && [toolbar isVisible])
6810 update_frame_tool_bar (emacsframe); 6811 update_frame_tool_bar (emacsframe);
6811#endif 6812#endif
6812 6813
6814 toolbar_height = FRAME_TOOLBAR_HEIGHT (emacsframe);
6815 if (toolbar_height < 0)
6816 toolbar_height = 35;
6817
6813 extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe) 6818 extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe)
6814 + FRAME_TOOLBAR_HEIGHT (emacsframe); 6819 + toolbar_height;
6815 } 6820 }
6816 6821
6817 if (wait_for_tool_bar) 6822 if (wait_for_tool_bar)
@@ -6858,11 +6863,12 @@ not_in_argv (NSString *arg)
6858 SET_FRAME_GARBAGED (emacsframe); 6863 SET_FRAME_GARBAGED (emacsframe);
6859 cancel_mouse_face (emacsframe); 6864 cancel_mouse_face (emacsframe);
6860 6865
6861 /* The next two lines appear to be setting the frame to the same 6866 /* The next two lines set the frame to the same size as we've
6862 size as it already is. Why are they there? */ 6867 already set above. We need to do this when we switch back
6863 // wr = NSMakeRect (0, 0, neww, newh); 6868 from non-native fullscreen, in other circumstances it appears
6864 6869 to be a noop. (bug#28872) */
6865 // [view setFrame: wr]; 6870 wr = NSMakeRect (0, 0, neww, newh);
6871 [view setFrame: wr];
6866 6872
6867 // to do: consider using [NSNotificationCenter postNotificationName:]. 6873 // to do: consider using [NSNotificationCenter postNotificationName:].
6868 [self windowDidMove: // Update top/left. 6874 [self windowDidMove: // Update top/left.
diff --git a/src/thread.c b/src/thread.c
index c03cdda0fae..6f12d796ff9 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -26,7 +26,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
26#include "coding.h" 26#include "coding.h"
27#include "syssignal.h" 27#include "syssignal.h"
28 28
29static struct thread_state main_thread; 29static struct thread_state alignas (GCALIGNMENT) main_thread;
30 30
31struct thread_state *current_thread = &main_thread; 31struct thread_state *current_thread = &main_thread;
32 32
diff --git a/src/unexelf.c b/src/unexelf.c
index 1cdcfeb44e4..756de5835ce 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -58,9 +58,11 @@ what you give them. Help stamp out software-hoarding! */
58#include <sys/types.h> 58#include <sys/types.h>
59#include <unistd.h> 59#include <unistd.h>
60 60
61#if !defined (__NetBSD__) && !defined (__OpenBSD__) 61#ifdef __QNX__
62#include <elf.h> 62# include <sys/elf.h>
63#endif /* not __NetBSD__ and not __OpenBSD__ */ 63#elif !defined __NetBSD__ && !defined __OpenBSD__
64# include <elf.h>
65#endif
64#include <sys/mman.h> 66#include <sys/mman.h>
65#if defined (_SYSTYPE_SYSV) 67#if defined (_SYSTYPE_SYSV)
66#include <sys/elf_mips.h> 68#include <sys/elf_mips.h>
@@ -222,7 +224,6 @@ unexec (const char *new_name, const char *old_name)
222{ 224{
223 int new_file, old_file; 225 int new_file, old_file;
224 off_t new_file_size; 226 off_t new_file_size;
225 void *new_break;
226 227
227 /* Pointers to the base of the image of the two files. */ 228 /* Pointers to the base of the image of the two files. */
228 caddr_t old_base, new_base; 229 caddr_t old_base, new_base;
@@ -326,11 +327,13 @@ unexec (const char *new_name, const char *old_name)
326 if (old_bss_index == -1) 327 if (old_bss_index == -1)
327 fatal ("no bss section found"); 328 fatal ("no bss section found");
328 329
330 void *no_break = (void *) (intptr_t) -1;
331 void *new_break = no_break;
329#ifdef HAVE_SBRK 332#ifdef HAVE_SBRK
330 new_break = sbrk (0); 333 new_break = sbrk (0);
331#else
332 new_break = (byte *) old_bss_addr + old_bss_size;
333#endif 334#endif
335 if (new_break == no_break)
336 new_break = (byte *) old_bss_addr + old_bss_size;
334 new_bss_addr = (ElfW (Addr)) new_break; 337 new_bss_addr = (ElfW (Addr)) new_break;
335 bss_size_growth = new_bss_addr - old_bss_addr; 338 bss_size_growth = new_bss_addr - old_bss_addr;
336 new_data2_size = bss_size_growth; 339 new_data2_size = bss_size_growth;