all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* NS Port keeps crashing  when FN key combo is pressed.
@ 2010-01-14 21:48 Jimmy Yuen Ho Wong
  2010-01-14 22:54 ` David Reitter
  0 siblings, 1 reply; 4+ messages in thread
From: Jimmy Yuen Ho Wong @ 2010-01-14 21:48 UTC (permalink / raw)
  To: emacs-devel

Sometime since the last change few changes in nsterm.m, whenever I hit a 
function key combo, Emacs.app immediately crashes with no stack trace. 
I'm not sure what's happening.

I'm running on Mac OS X 10.5.8 PPC.


-- 
Jimmy Yuen Ho Wong




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: NS Port keeps crashing  when FN key combo is pressed.
  2010-01-14 21:48 NS Port keeps crashing when FN key combo is pressed Jimmy Yuen Ho Wong
@ 2010-01-14 22:54 ` David Reitter
       [not found]   ` <4B4FB7A6.6020603@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: David Reitter @ 2010-01-14 22:54 UTC (permalink / raw)
  To: wyuenho; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 998 bytes --]

On Jan 14, 2010, at 4:48 PM, Jimmy Yuen Ho Wong wrote:

> Sometime since the last change few changes in nsterm.m, whenever I hit a function key combo, Emacs.app immediately crashes with no stack trace. I'm not sure what's happening.
> 
> I'm running on Mac OS X 10.5.8 PPC.


Indeed it crashes, but getting a trace was no problem for me.

Try the patch below, which fixes the issue for me.
(I believe it does not need a Qmodifier_value attribute, as the function modifier isn't checked in xterm.c.)

- David


 
diff --git a/src/nsterm.m b/src/nsterm.m
index ff2e47a..ce6cca5 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6707,6 +6707,7 @@ syms_of_nsterm ()
   DEFSYM (Qmeta, "meta");
   DEFSYM (Qsuper, "super");
   DEFSYM (Qcontrol, "control");
+  DEFSYM (Qnone, "none");
   Fput (Qalt, Qmodifier_value, make_number (alt_modifier));
   Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier));
   Fput (Qmeta, Qmodifier_value, make_number (meta_modifier));



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 203 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: NS Port keeps crashing  when FN key combo is pressed.
       [not found]   ` <4B4FB7A6.6020603@gmail.com>
@ 2010-01-15  0:35     ` David Reitter
  2010-01-15  1:47       ` Chong Yidong
  0 siblings, 1 reply; 4+ messages in thread
From: David Reitter @ 2010-01-15  0:35 UTC (permalink / raw)
  To: emacs-devel@gnu.org discussions

[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]

Could someone ob bzr please apply the patch below?

syms_of_nsterm: define Qnone symbol.


diff --git a/src/nsterm.m b/src/nsterm.m
index ff2e47a..ce6cca5 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6707,6 +6707,7 @@ syms_of_nsterm ()
   DEFSYM (Qmeta, "meta");
   DEFSYM (Qsuper, "super");
   DEFSYM (Qcontrol, "control");
+  DEFSYM (Qnone, "none");
   Fput (Qalt, Qmodifier_value, make_number (alt_modifier));
   Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier));
   Fput (Qmeta, Qmodifier_value, make_number (meta_modifier));



On Jan 14, 2010, at 7:32 PM, Jimmy Yuen Ho Wong wrote:

> Yep this patch fixed it. Thanks!
> 
> JW
> 
> On 1/14/10 5:54 PM, David Reitter wrote:
>> On Jan 14, 2010, at 4:48 PM, Jimmy Yuen Ho Wong wrote:
>> 
>>> Sometime since the last change few changes in nsterm.m, whenever I hit a function key combo, Emacs.app immediately crashes with no stack trace. I'm not sure what's happening.
>>> 
>>> I'm running on Mac OS X 10.5.8 PPC.
>> 
>> 
>> Indeed it crashes, but getting a trace was no problem for me.
>> 
>> Try the patch below, which fixes the issue for me.
>> (I believe it does not need a Qmodifier_value attribute, as the function modifier isn't checked in xterm.c.)
>> 
>> - David


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 203 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: NS Port keeps crashing  when FN key combo is pressed.
  2010-01-15  0:35     ` David Reitter
@ 2010-01-15  1:47       ` Chong Yidong
  0 siblings, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2010-01-15  1:47 UTC (permalink / raw)
  To: David Reitter; +Cc: emacs-devel@gnu.org discussions

David Reitter <david.reitter@gmail.com> writes:

> Could someone ob bzr please apply the patch below?
>
> syms_of_nsterm: define Qnone symbol.

Thanks.  I checked in a slightly different patch.  The Qnone variable
needed to be moved over from nsfns.m.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-15  1:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14 21:48 NS Port keeps crashing when FN key combo is pressed Jimmy Yuen Ho Wong
2010-01-14 22:54 ` David Reitter
     [not found]   ` <4B4FB7A6.6020603@gmail.com>
2010-01-15  0:35     ` David Reitter
2010-01-15  1:47       ` Chong Yidong

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.