GNU bug report logs - #9998
emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in shell mode

Previous Next

Package: emacs;

Reported by: "Nelson H. F. Beebe" <beebe <at> math.utah.edu>

Date: Wed, 9 Nov 2011 00:00:01 UTC

Severity: normal

Tags: moreinfo, unreproducible, wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9998 in the body.
You can then email your comments to 9998 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9998; Package emacs. (Wed, 09 Nov 2011 00:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Nelson H. F. Beebe" <beebe <at> math.utah.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 09 Nov 2011 00:00:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Nelson H. F. Beebe" <beebe <at> math.utah.edu>
To: bug-gnu-emacs <at> gnu.org
Cc: beebe <at> math.utah.edu
Subject: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in
	shell mode
Date: Tue, 8 Nov 2011 16:42:44 -0700 (MST)
A user (who works at another university with independently-managed
computer systems) just reported to me that C-d does not end input in
shell mode in an emacs session.

I verified the problem locally with emacs 22.3 and 23.3 and 24.0.91.
It works correctly in 22.1.

Was this an intentional change?

The command documentation describes this expected behavior:

    C-d runs the command comint-delchar-or-maybe-eof
    which is an interactive compiled Lisp function in
    `/home/share/emacs/22.1/lisp/comint.elc'.
    It is bound to C-d.
    (comint-delchar-or-maybe-eof ARG)

    Delete ARG characters forward or send an EOF to subprocess.
    Sends an EOF only if point is at the end of the buffer and there
    is no input.

My tests were done with commands like this:

	 /usr/local/bin/emacs-22.1 -q --no-site-file &

so as to avoid any influence from private or local startup files.

A temporary workaround in recent emacs versions is a shell HERE-document:

% cat << EOF > outfile
a
b
c
EOF

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe <at> math.utah.edu  -
- 155 S 1400 E RM 233                       beebe <at> acm.org  beebe <at> computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9998; Package emacs. (Wed, 09 Nov 2011 08:36:02 GMT) Full text and rfc822 format available.

Message #8 received at 9998 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: "Nelson H. F. Beebe" <beebe <at> math.utah.edu>
Cc: 9998 <at> debbugs.gnu.org
Subject: Re: bug#9998: emacs 22.3 (and later) breaks C-d
	(comint-delchar-or-maybe-eof) in shell mode
Date: Wed, 09 Nov 2011 03:35:37 -0500
"Nelson H. F. Beebe" wrote:

> computer systems) just reported to me that C-d does not end input in
> shell mode in an emacs session.
>
> I verified the problem locally with emacs 22.3 and 23.3 and 24.0.91.
> It works correctly in 22.1.

It works for me in Emacs 22, 23, and current trunk, on both Debian and
RHEL with the bash shell. Perhaps you could give details of your system
and shell. Also, what actually happens when you press C-d?





Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 06 Dec 2011 08:45:01 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 06 Dec 2011 08:45:02 GMT) Full text and rfc822 format available.

Notification sent to "Nelson H. F. Beebe" <beebe <at> math.utah.edu>:
bug acknowledged by developer. (Tue, 06 Dec 2011 08:45:02 GMT) Full text and rfc822 format available.

Message #15 received at 9998-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 9998-done <at> debbugs.gnu.org
Subject: Re: bug#9998: emacs 22.3 (and later) breaks C-d
	(comint-delchar-or-maybe-eof) in shell mode
Date: Tue, 06 Dec 2011 03:43:33 -0500
tag 9998 wontfix
stop

This bug is being closed because it could not be reproduced and there
was no response to a request for more information.
If you reply with the requested information it can be reopened if needed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 03 Jan 2012 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.