aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-08-05 14:10:30 -0700
committerPaul Eggert2016-08-05 14:10:30 -0700
commitc1b5000d8c484d7acd39414119838c78eaaf9cca (patch)
treee179d9a26228aea7f586365f52eb9ec81bdcd856 /src
parentfe3225830d0817d3d7eee1dfb92e0deec641c9c5 (diff)
parentd841a03c5ee3e9a59a133474601f9bda190ee8fa (diff)
downloademacs-c1b5000d8c484d7acd39414119838c78eaaf9cca.tar.gz
emacs-c1b5000d8c484d7acd39414119838c78eaaf9cca.zip
Merge from origin/emacs-25
d841a03 ; Spelling fix a6ae479 Post AppDefined events from the main thread ONLY (bug#23934) d35d398 Update to the AUTHORS file for Bob Weiner 4d2f4df Revert "Fix local printer set to left aligned string formatter." cd1b4d6 Revert "Fix ses-delete-blanks to delete only blanks + documen... f7ceb8e Revert "Fix English." baa7abd Improve doc strings of 'gud-gdb' and 'gdb' aa4271a Fix doc string of 'minibuffer-message-timeout' b275cc7 Fix English. 3c97b0f Fix ses-delete-blanks to delete only blanks + documentation. 272391f profiler: document prefix arg for tree expansion 442cc39 Clarify usage of eshell-visual-options b443c3c Fix comment in files-in-below-directory 8a38e94 Fix local printer set to left aligned string formatter. 0f0b191 ; Fix typos in NEWS 6bdf687 ; * etc/NEWS: Remove temporary marks
Diffstat (limited to 'src')
-rw-r--r--src/data.c4
-rw-r--r--src/keyboard.c3
-rw-r--r--src/nsterm.h2
-rw-r--r--src/nsterm.m5
4 files changed, 6 insertions, 8 deletions
diff --git a/src/data.c b/src/data.c
index 5af590abed9..9a076741f78 100644
--- a/src/data.c
+++ b/src/data.c
@@ -630,8 +630,8 @@ global value outside of any lexical scope. */)
630} 630}
631 631
632/* FIXME: It has been previously suggested to make this function an 632/* FIXME: It has been previously suggested to make this function an
633 alias for symbol-function, but upon discussion at Debbug#23957, 633 alias for symbol-function, but upon discussion at Bug#23957,
634 there is a risk breaking backward compatiblity, as some users of 634 there is a risk breaking backward compatibility, as some users of
635 fboundp may expect `t' in particular, rather than any true 635 fboundp may expect `t' in particular, rather than any true
636 value. An alias is still welcome so long as the compatibility 636 value. An alias is still welcome so long as the compatibility
637 issues are addressed. */ 637 issues are addressed. */
diff --git a/src/keyboard.c b/src/keyboard.c
index ed4968486c3..f27ca0f86e0 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -11689,7 +11689,8 @@ suppressed only after special commands that leave
11689 11689
11690 DEFVAR_LISP ("minibuffer-message-timeout", Vminibuffer_message_timeout, 11690 DEFVAR_LISP ("minibuffer-message-timeout", Vminibuffer_message_timeout,
11691 doc: /* How long to display an echo-area message when the minibuffer is active. 11691 doc: /* How long to display an echo-area message when the minibuffer is active.
11692If the value is not a number, such messages don't time out. */); 11692If the value is a number, it should be specified in seconds.
11693If the value is not a number, such messages never time out. */);
11693 Vminibuffer_message_timeout = make_number (2); 11694 Vminibuffer_message_timeout = make_number (2);
11694 11695
11695 DEFVAR_LISP ("throw-on-input", Vthrow_on_input, 11696 DEFVAR_LISP ("throw-on-input", Vthrow_on_input,
diff --git a/src/nsterm.h b/src/nsterm.h
index 862ff2ec646..3d8b1a16a32 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -380,9 +380,9 @@ char const * nstrace_fullscreen_type_name (int);
380#endif 380#endif
381#ifdef NS_IMPL_GNUSTEP 381#ifdef NS_IMPL_GNUSTEP
382 BOOL applicationDidFinishLaunchingCalled; 382 BOOL applicationDidFinishLaunchingCalled;
383#endif
383@public 384@public
384 int nextappdefined; 385 int nextappdefined;
385#endif
386} 386}
387- (void)logNotification: (NSNotification *)notification; 387- (void)logNotification: (NSNotification *)notification;
388- (void)antialiasThresholdDidChange:(NSNotification *)notification; 388- (void)antialiasThresholdDidChange:(NSNotification *)notification;
diff --git a/src/nsterm.m b/src/nsterm.m
index 8da2ffe5b7f..dcc1e87280b 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3927,8 +3927,8 @@ ns_send_appdefined (int value)
3927{ 3927{
3928 NSTRACE_WHEN (NSTRACE_GROUP_EVENTS, "ns_send_appdefined(%d)", value); 3928 NSTRACE_WHEN (NSTRACE_GROUP_EVENTS, "ns_send_appdefined(%d)", value);
3929 3929
3930#ifdef NS_IMPL_GNUSTEP
3931 // GNUstep needs postEvent to happen on the main thread. 3930 // GNUstep needs postEvent to happen on the main thread.
3931 // Cocoa needs nextEventMatchingMask to happen on the main thread too.
3932 if (! [[NSThread currentThread] isMainThread]) 3932 if (! [[NSThread currentThread] isMainThread])
3933 { 3933 {
3934 EmacsApp *app = (EmacsApp *)NSApp; 3934 EmacsApp *app = (EmacsApp *)NSApp;
@@ -3938,7 +3938,6 @@ ns_send_appdefined (int value)
3938 waitUntilDone:YES]; 3938 waitUntilDone:YES];
3939 return; 3939 return;
3940 } 3940 }
3941#endif
3942 3941
3943 /* Only post this event if we haven't already posted one. This will end 3942 /* Only post this event if we haven't already posted one. This will end
3944 the [NXApp run] main loop after having processed all events queued at 3943 the [NXApp run] main loop after having processed all events queued at
@@ -5551,12 +5550,10 @@ not_in_argv (NSString *arg)
5551 ns_send_appdefined (-2); 5550 ns_send_appdefined (-2);
5552} 5551}
5553 5552
5554#ifdef NS_IMPL_GNUSTEP
5555- (void)sendFromMainThread:(id)unused 5553- (void)sendFromMainThread:(id)unused
5556{ 5554{
5557 ns_send_appdefined (nextappdefined); 5555 ns_send_appdefined (nextappdefined);
5558} 5556}
5559#endif
5560 5557
5561- (void)fd_handler:(id)unused 5558- (void)fd_handler:(id)unused
5562/* -------------------------------------------------------------------------- 5559/* --------------------------------------------------------------------------