Skip Menu |

This queue is for tickets about the App-SD CPAN distribution.

Report information
The Basics
Id: 49115
Status: open
Priority: 0/
Queue: App-SD

People
Owner: Nobody in particular
Requestors: nelhage [...] ksplice.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Using EDITOR='emacsclient -c' fails from interactive shell
Date: Sat, 29 Aug 2009 03:39:01 -0400
To: bug-App-SD [...] rt.cpan.org
From: Nelson Elhage <nelhage [...] ksplice.com>
If I use an EDITOR of 'emacsclient -c' (This is with Emacs 23, -c causes it to open the file in new graphical window), and then launch the sd interactive prompt and do something involving the editor, it fails with: Error in editor - exit val = 16777215, signal = 127, coredump? = 128: Bad file descriptor at /usr/local/share/perl/5.10.0/Proc/InvokeEditor.pm line 192. If I use EDITOR='emacsclient -t' (Open a new editor on the current terminal), or just 'emacsclient' (Open the file in an existing frame), it work, as does not using the interactive shell, e.g. EDITOR='emacsclient -c' git sd config edit 'emacsclient -c' is my default EDITOR, and it works in every other app I've tried, so I don't really think it's horribly broken.
Had some fun code-diving, and the root cause appears to probably be a broken SIGWINCH handler in Term::Readline::Perl. I may file a bug against them if I can track it down further, but this is not your fault.