* master fails to build on macOS
@ 2018-01-15 23:23 John Wiegley
2018-01-16 1:21 ` Paul Eggert
0 siblings, 1 reply; 3+ messages in thread
From: John Wiegley @ 2018-01-15 23:23 UTC (permalink / raw)
To: emacs-devel
I'm seeing this after pulling just now:
--8<---------------cut here---------------start------------->8---
builder for '/nix/store/vwpdsg0sw2nwxr186jhxagvja436pm02-emacs-27.0.50.drv' failed with exit code 2; last 10 log lines:
keyboard.c:5466:11: error: use of undeclared identifier 'used_mouse_menu'
if (used_mouse_menu)
^
keyboard.c:5467:10: error: use of undeclared identifier 'used_mouse_menu'
*used_mouse_menu = true;
^
2 errors generated.
make[1]: *** [Makefile:381: keyboard.o] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-emacs-27.0.50.drv-0/master/src'
make: *** [Makefile:418: src] Error 2
--8<---------------cut here---------------end--------------->8---
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: master fails to build on macOS
2018-01-15 23:23 master fails to build on macOS John Wiegley
@ 2018-01-16 1:21 ` Paul Eggert
2018-01-16 1:37 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggert @ 2018-01-16 1:21 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
John Wiegley wrote:
> keyboard.c:5466:11: error: use of undeclared identifier 'used_mouse_menu'
I installed the attached seemingly-obvious fix. I don't use macOS, though, so
another pair of eyes would be helpful.
[-- Attachment #2: 0001-Fix-macOS-breakage-in-make_lispy_event.patch --]
[-- Type: text/x-patch, Size: 1233 bytes --]
From 747a2f061e13fe1584babbb4ae458559be479817 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 15 Jan 2018 17:18:42 -0800
Subject: [PATCH] Fix macOS breakage in make_lispy_event
Problem reported by John Wiegley in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00499.html
* src/keyboard.c (kbd_buffer_get_event) [HAVE_NS]:
Act on used_mouse_menu here...
(make_lispy_event) [HAVE_NS]: ... instead of here.
---
src/keyboard.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/keyboard.c b/src/keyboard.c
index 64ad8b2..75fbe45 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3907,6 +3907,9 @@ kbd_buffer_get_event (KBOARD **kbp,
#endif
#if defined (HAVE_NS)
case NS_TEXT_EVENT:
+ if (used_mouse_menu)
+ *used_mouse_menu = true;
+ FALLTHROUGH;
#endif
#ifdef HAVE_NTGUI
case END_SESSION_EVENT:
@@ -5463,8 +5466,6 @@ make_lispy_event (struct input_event *event)
#ifdef HAVE_NS
case NS_TEXT_EVENT:
- if (used_mouse_menu)
- *used_mouse_menu = true;
return list1 (intern (event->code == KEY_NS_PUT_WORKING_TEXT
? "ns-put-working-text"
: "ns-unput-working-text"));
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: master fails to build on macOS
2018-01-16 1:21 ` Paul Eggert
@ 2018-01-16 1:37 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2018-01-16 1:37 UTC (permalink / raw)
To: emacs-devel
>> keyboard.c:5466:11: error: use of undeclared identifier 'used_mouse_menu'
> I installed the attached seemingly-obvious fix. I don't use macOS, though,
> so another pair of eyes would be helpful.
Thanks. I actually committed the same patch yesterday, but according to
evidence I failed to push it.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-16 1:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 23:23 master fails to build on macOS John Wiegley
2018-01-16 1:21 ` Paul Eggert
2018-01-16 1:37 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.