unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
@ 2012-12-19  6:35 Tim Daly Jr.
  2012-12-19  8:55 ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Tim Daly Jr. @ 2012-12-19  6:35 UTC (permalink / raw)
  To: 13222


If you ssh someplace in shell mode and hit C-c C-c, it kills the ssh
process.  It wasn't always that way.  The intended effect is just to
kill the foreground process on the remote host, as if you'd hit C-c
at a terminal.


In GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2012-08-27 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1138
Configured using:
 `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
 '--with-ns' 'build_alias=i686-apple-darwin'
 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Shell

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-> c a t SPC / e t c / i n i t / n o v a - n e t * 
<return> C-p C-f C-f C-f C-SPC C-e M-w M-> C-y <return> 
c h r o o t SPC / m n t / l a t e s t SPC b a s h <return> 
M-p M-p <return> c a t SPC / e t c / n o v a / n o 
v a . c o n f <return> y i n s t SPC l s SPC | g r 
e p SPC o b b <return> k C-a C-k c SPC / <backspace> 
<backspace> d SPC / e t c / g l a n c e <return> <return> 
l s <return> c a t SPC g l a n c e - a p i . c o n 
f <return> M-v M-v M-> g r r p SPC <backspace> <backspace> 
<backspace> e p SPC % SPC * <return> C-x C-f C-g M-p 
<return> <f3> <f1> q u i t <return> p s SPC a u x w 
w | g r e p SPC z o o k e e e <backspace> p e r <return> 
p w d <return> l s SPC / m n t / l a t e s t <return> 
l s <return> s e r v e r C-a C-k y i n s t SPC s t 
s a r <backspace> <backspace> <backspace> a r t SPC 
z o o k e e k e <backspace> <backspace> p e r _ s e 
r v e r <return> M-p M-b M-b M-b M-d i <return> <f2> 
<f3> M-p M-n <f2> M-x r e p o r t - b u g <return>

Recent messages:
Mark saved where search started
Mark set [2 times]
(No changes need to be saved)
Mark saved where search started [2 times]
/var/log 
Mark set [3 times]
Mark saved where search started [2 times]
No match
Mark saved where search started
Mark set [5 times]
Quit

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils mule-util rect nxml-uchnm rng-xsd xsd-regexp
rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse
rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln
nxml-rap nxml-util nxml-glyph nxml-enc xmltok conf-mode newcomment
derived cl byte-opt bytecomp byte-compile cconv macroexp vc-dispatcher
vc-svn jka-compr tabify man assoc make-mode cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-git
help-mode view pcmpl-unix dired-aux misearch multi-isearch sh-script
executable dired shell pcomplete warnings iswitchb compile comint
regexp-opt ansi-color advice help-fns advice-preload xcscope ring
easymenu slime-autoloads edmacro kmacro time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)






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

* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
  2012-12-19  6:35 bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT Tim Daly Jr.
@ 2012-12-19  8:55 ` Andreas Schwab
  2012-12-21 20:02   ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2012-12-19  8:55 UTC (permalink / raw)
  To: Tim Daly Jr.; +Cc: 13222

"Tim Daly Jr." <tim@tenkan.org> writes:

> If you ssh someplace in shell mode and hit C-c C-c, it kills the ssh
> process.  It wasn't always that way.  The intended effect is just to
> kill the foreground process on the remote host, as if you'd hit C-c
> at a terminal.

It looks like Darwin doesn't have SIGNALS_VIA_CHARACTERS defined.  Since
it's BSD-like I'd guess it really should.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
  2012-12-19  8:55 ` Andreas Schwab
@ 2012-12-21 20:02   ` Glenn Morris
  2012-12-21 21:12     ` Tim Daly Jr.
  2012-12-23 12:06     ` Jan Djärv
  0 siblings, 2 replies; 8+ messages in thread
From: Glenn Morris @ 2012-12-21 20:02 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 13222, Tim Daly Jr.

Andreas Schwab wrote:

> "Tim Daly Jr." <tim@tenkan.org> writes:
>
>> If you ssh someplace in shell mode and hit C-c C-c, it kills the ssh
>> process.  It wasn't always that way.  The intended effect is just to
>> kill the foreground process on the remote host, as if you'd hit C-c
>> at a terminal.
>
> It looks like Darwin doesn't have SIGNALS_VIA_CHARACTERS defined.  Since
> it's BSD-like I'd guess it really should.

Could someone with a Mac try this out with the emacs-24 branch, and see
if it fixes the issue and doesn't cause any obvious problems?
One way to do it is to run configure as normal, then edit src/config.h
and uncomment

#define SIGNALS_VIA_CHARACTERS 1

(Seems surprising this has not been reported before. AFAICS, S_VIA_C has
never been defined on Darwin, so this issue should be present in Emacs
23 as well. Would be good if someone could check that too.)





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

* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
  2012-12-21 20:02   ` Glenn Morris
@ 2012-12-21 21:12     ` Tim Daly Jr.
  2012-12-23 12:06     ` Jan Djärv
  1 sibling, 0 replies; 8+ messages in thread
From: Tim Daly Jr. @ 2012-12-21 21:12 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13222, Andreas Schwab

I had it in emacs 23 as well.  I'll do a build of the latest with that change RSN.

Thanks,
Tim

On Dec 21, 2012, at 12:02 PM, Glenn Morris wrote:

> Andreas Schwab wrote:
> 
>> "Tim Daly Jr." <tim@tenkan.org> writes:
>> 
>>> If you ssh someplace in shell mode and hit C-c C-c, it kills the ssh
>>> process.  It wasn't always that way.  The intended effect is just to
>>> kill the foreground process on the remote host, as if you'd hit C-c
>>> at a terminal.
>> 
>> It looks like Darwin doesn't have SIGNALS_VIA_CHARACTERS defined.  Since
>> it's BSD-like I'd guess it really should.
> 
> Could someone with a Mac try this out with the emacs-24 branch, and see
> if it fixes the issue and doesn't cause any obvious problems?
> One way to do it is to run configure as normal, then edit src/config.h
> and uncomment
> 
> #define SIGNALS_VIA_CHARACTERS 1
> 
> (Seems surprising this has not been reported before. AFAICS, S_VIA_C has
> never been defined on Darwin, so this issue should be present in Emacs
> 23 as well. Would be good if someone could check that too.)






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

* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
  2012-12-21 20:02   ` Glenn Morris
  2012-12-21 21:12     ` Tim Daly Jr.
@ 2012-12-23 12:06     ` Jan Djärv
  2012-12-23 20:12       ` Glenn Morris
  1 sibling, 1 reply; 8+ messages in thread
From: Jan Djärv @ 2012-12-23 12:06 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13222, Andreas Schwab, Tim Daly Jr.

Hello.

The problem exists in 23.  Defining SIGNALS_VIA_CHARACTERS fixes the issue.

	Jan D.

21 dec 2012 kl. 21:02 skrev Glenn Morris <rgm@gnu.org>:

> Andreas Schwab wrote:
> 
>> "Tim Daly Jr." <tim@tenkan.org> writes:
>> 
>>> If you ssh someplace in shell mode and hit C-c C-c, it kills the ssh
>>> process.  It wasn't always that way.  The intended effect is just to
>>> kill the foreground process on the remote host, as if you'd hit C-c
>>> at a terminal.
>> 
>> It looks like Darwin doesn't have SIGNALS_VIA_CHARACTERS defined.  Since
>> it's BSD-like I'd guess it really should.
> 
> Could someone with a Mac try this out with the emacs-24 branch, and see
> if it fixes the issue and doesn't cause any obvious problems?
> One way to do it is to run configure as normal, then edit src/config.h
> and uncomment
> 
> #define SIGNALS_VIA_CHARACTERS 1
> 
> (Seems surprising this has not been reported before. AFAICS, S_VIA_C has
> never been defined on Darwin, so this issue should be present in Emacs
> 23 as well. Would be good if someone could check that too.)
> 
> 






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

* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
  2012-12-23 12:06     ` Jan Djärv
@ 2012-12-23 20:12       ` Glenn Morris
  2012-12-24  1:03         ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-12-23 20:12 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 13222, Andreas Schwab, Tim Daly Jr.

Jan Djärv wrote:

> The problem exists in 23.  Defining SIGNALS_VIA_CHARACTERS fixes the issue.

Thanks. Any opinion on whether this change should go into emacs-24 or
trunk? Since the issue is present in 23 as well, that suggests trunk.
But if it's a safe fix, might as well go in emacs-24.





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

* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
  2012-12-23 20:12       ` Glenn Morris
@ 2012-12-24  1:03         ` Stefan Monnier
  2012-12-24 10:33           ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2012-12-24  1:03 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13222, Andreas Schwab, Tim Daly Jr.

>> The problem exists in 23.  Defining SIGNALS_VIA_CHARACTERS fixes the issue.
> Thanks.  Any opinion on whether this change should go into emacs-24 or
> trunk? Since the issue is present in 23 as well, that suggests trunk.
> But if it's a safe fix, might as well go in emacs-24.

It sounds like it can go into emacs-24.


        Stefan





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

* bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT
  2012-12-24  1:03         ` Stefan Monnier
@ 2012-12-24 10:33           ` Andreas Schwab
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2012-12-24 10:33 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 13222-done, Tim Daly Jr.

Done.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

end of thread, other threads:[~2012-12-24 10:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-19  6:35 bug#13222: 24.2; C-c C-c in shell mode on OSX sends SIGINT Tim Daly Jr.
2012-12-19  8:55 ` Andreas Schwab
2012-12-21 20:02   ` Glenn Morris
2012-12-21 21:12     ` Tim Daly Jr.
2012-12-23 12:06     ` Jan Djärv
2012-12-23 20:12       ` Glenn Morris
2012-12-24  1:03         ` Stefan Monnier
2012-12-24 10:33           ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).