From unknown Sat Aug 16 11:40:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9998: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in shell mode Resent-From: "Nelson H. F. Beebe" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2011 00:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9998 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9998@debbugs.gnu.org Cc: beebe@math.utah.edu X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132079676613146 (code B ref -1); Wed, 09 Nov 2011 00:00:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Nov 2011 23:59:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNvZd-0003Pz-Kz for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:25 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNvZb-0003Pm-8n for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNvZT-00030k-9C for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:48500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvZT-00030g-4D for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:15 -0500 Received: from eggs.gnu.org ([140.186.70.92]:36024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvZS-0005Uk-9E for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 18:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNvZR-00030M-2k for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 18:59:14 -0500 Received: from mail.math.utah.edu ([155.101.98.135]:49496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvZQ-00030B-TC for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 18:59:13 -0500 Received: from psi.math.utah.edu (psi.math.utah.edu [155.101.96.19]) by mail.math.utah.edu (8.14.4/8.14.4) with ESMTP id pA8NgiPf027262; Tue, 8 Nov 2011 16:42:44 -0700 (MST) Received: from psi.math.utah.edu (localhost [127.0.0.1]) by psi.math.utah.edu (8.14.4/8.14.4) with ESMTP id pA8NgiPx013371; Tue, 8 Nov 2011 16:42:44 -0700 (MST) Received: (from beebe@localhost) by psi.math.utah.edu (8.14.4/8.14.4/Submit) id pA8NgiBk013370; Tue, 8 Nov 2011 16:42:44 -0700 (MST) Date: Tue, 8 Nov 2011 16:42:44 -0700 (MST) From: "Nelson H. F. Beebe" X-US-Mail: "Department of Mathematics, 110 LCB, University of Utah, 155 S 1400 E RM 233, Salt Lake City, UT 84112-0090, USA" X-Telephone: +1 801 581 5254 X-FAX: +1 801 585 1640, +1 801 581 4148 X-URL: http://www.math.utah.edu/~beebe Message-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (mail.math.utah.edu [155.101.98.135]); Tue, 08 Nov 2011 16:42:44 -0700 (MST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.4 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) 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@math.utah.edu - - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - ------------------------------------------------------------------------------- From unknown Sat Aug 16 11:40:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9998: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in shell mode Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2011 08:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9998 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Nelson H. F. Beebe" Cc: 9998@debbugs.gnu.org Received: via spool by 9998-submit@debbugs.gnu.org id=B9998.132082774628229 (code B ref 9998); Wed, 09 Nov 2011 08:36:02 +0000 Received: (at 9998) by debbugs.gnu.org; 9 Nov 2011 08:35:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RO3dJ-0007LF-Et for submit@debbugs.gnu.org; Wed, 09 Nov 2011 03:35:46 -0500 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RO3dG-0007L7-VH for 9998@debbugs.gnu.org; Wed, 09 Nov 2011 03:35:43 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RO3dB-0001vb-Fi; Wed, 09 Nov 2011 03:35:37 -0500 From: Glenn Morris References: X-Spook: Lexis-Nexis Ron Brown mindwar halcon Echelon Majic X-Ran: /QC[Q?3E[KWRV"A)Xh"pe{_$uH"Y:Cc+&98X:uu7I;X$PMqPJ}r`-(Qo|F"HoeMY~Z1!rA X-Hue: black X-Attribution: GM Date: Wed, 09 Nov 2011 03:35:37 -0500 In-Reply-To: (Nelson H. F. Beebe's message of "Tue, 8 Nov 2011 16:42:44 -0700 (MST)") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) "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? From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 06 03:44:14 2011 Received: (at control) by debbugs.gnu.org; 6 Dec 2011 08:44:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXqdK-0004zF-DG for submit@debbugs.gnu.org; Tue, 06 Dec 2011 03:44:14 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXqdH-0004z3-PN; Tue, 06 Dec 2011 03:44:12 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RXqcg-0000pR-4Q; Tue, 06 Dec 2011 03:43:34 -0500 From: Glenn Morris To: 9998-done@debbugs.gnu.org Subject: Re: bug#9998: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in shell mode References: X-Spook: bomb Cohiba Adriatic smuggle Commecen SCUD missile Centro X-Ran: 8}ij@G|MZ~J+V@wZEy!YZ?v?62i0CNOKa$+$^>/({'U(e4]+%#ktI"p|BS:o06b/Nu8e~9 X-Hue: magenta X-Attribution: GM Date: Tue, 06 Dec 2011 03:43:33 -0500 Message-ID: <6nty5e5buy.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) 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. From unknown Sat Aug 16 11:40:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Nelson H. F. Beebe" Subject: bug#9998: closed (Re: bug#9998: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in shell mode) Message-ID: References: <6nty5e5buy.fsf@fencepost.gnu.org> X-Gnu-PR-Message: they-closed 9998 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: unreproducible moreinfo wontfix Reply-To: 9998@debbugs.gnu.org Date: Tue, 06 Dec 2011 08:45:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1323161102-19265-1" This is a multi-part message in MIME format... ------------=_1323161102-19265-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9998: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in s= hell mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9998@debbugs.gnu.org. --=20 9998: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9998 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1323161102-19265-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9998-done) by debbugs.gnu.org; 6 Dec 2011 08:44:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXqdK-0004zD-1d for submit@debbugs.gnu.org; Tue, 06 Dec 2011 03:44:14 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXqdH-0004z3-PN; Tue, 06 Dec 2011 03:44:12 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RXqcg-0000pR-4Q; Tue, 06 Dec 2011 03:43:34 -0500 From: Glenn Morris To: 9998-done@debbugs.gnu.org Subject: Re: bug#9998: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in shell mode References: X-Spook: bomb Cohiba Adriatic smuggle Commecen SCUD missile Centro X-Ran: 8}ij@G|MZ~J+V@wZEy!YZ?v?62i0CNOKa$+$^>/({'U(e4]+%#ktI"p|BS:o06b/Nu8e~9 X-Hue: magenta X-Attribution: GM Date: Tue, 06 Dec 2011 03:43:33 -0500 Message-ID: <6nty5e5buy.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9998-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) 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. ------------=_1323161102-19265-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Nov 2011 23:59:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNvZd-0003Pz-Kz for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:25 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNvZb-0003Pm-8n for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNvZT-00030k-9C for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:48500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvZT-00030g-4D for submit@debbugs.gnu.org; Tue, 08 Nov 2011 18:59:15 -0500 Received: from eggs.gnu.org ([140.186.70.92]:36024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvZS-0005Uk-9E for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 18:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNvZR-00030M-2k for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 18:59:14 -0500 Received: from mail.math.utah.edu ([155.101.98.135]:49496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNvZQ-00030B-TC for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 18:59:13 -0500 Received: from psi.math.utah.edu (psi.math.utah.edu [155.101.96.19]) by mail.math.utah.edu (8.14.4/8.14.4) with ESMTP id pA8NgiPf027262; Tue, 8 Nov 2011 16:42:44 -0700 (MST) Received: from psi.math.utah.edu (localhost [127.0.0.1]) by psi.math.utah.edu (8.14.4/8.14.4) with ESMTP id pA8NgiPx013371; Tue, 8 Nov 2011 16:42:44 -0700 (MST) Received: (from beebe@localhost) by psi.math.utah.edu (8.14.4/8.14.4/Submit) id pA8NgiBk013370; Tue, 8 Nov 2011 16:42:44 -0700 (MST) Date: Tue, 8 Nov 2011 16:42:44 -0700 (MST) From: "Nelson H. F. Beebe" To: bug-gnu-emacs@gnu.org X-US-Mail: "Department of Mathematics, 110 LCB, University of Utah, 155 S 1400 E RM 233, Salt Lake City, UT 84112-0090, USA" X-Telephone: +1 801 581 5254 X-FAX: +1 801 585 1640, +1 801 581 4148 X-URL: http://www.math.utah.edu/~beebe Subject: emacs 22.3 (and later) breaks C-d (comint-delchar-or-maybe-eof) in shell mode Message-ID: X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (mail.math.utah.edu [155.101.98.135]); Tue, 08 Nov 2011 16:42:44 -0700 (MST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: submit Cc: beebe@math.utah.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) 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@math.utah.edu - - 155 S 1400 E RM 233 beebe@acm.org beebe@computer.org - - Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ - ------------------------------------------------------------------------------- ------------=_1323161102-19265-1--