From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#727: compilation-disable-input Date: Thu, 04 Sep 2008 12:10:42 -0400 Message-ID: References: <874p5edjzd.fsf@cyd.mit.edu> Reply-To: Stefan Monnier , 727@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220545725 20529 80.91.229.12 (4 Sep 2008 16:28:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 16:28:45 +0000 (UTC) Cc: Perry Smith , 727@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 18:29:39 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KbHi5-0007Y3-Gn for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 18:29:29 +0200 Original-Received: from localhost ([127.0.0.1]:53146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbHh5-0000yN-TD for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 12:28:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbHgG-0000W6-Bc for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 12:27:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbHgE-0000UT-3s for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 12:27:35 -0400 Original-Received: from [199.232.76.173] (port=50931 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbHgE-0000UM-08 for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 12:27:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45951) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbHgD-0001g6-LS for bug-gnu-emacs@gnu.org; Thu, 04 Sep 2008 12:27:34 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84GRV1C024388; Thu, 4 Sep 2008 09:27:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m84GK6NK021413; Thu, 4 Sep 2008 09:20:06 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 16:20:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 727 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 727-submit@emacsbugs.donarmstrong.com id=B727.122054465918987 (code B ref 727); Thu, 04 Sep 2008 16:20:05 +0000 Original-Received: (at 727) by emacsbugs.donarmstrong.com; 4 Sep 2008 16:10:59 +0000 Original-Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m84GAsbt018976 for <727@emacsbugs.donarmstrong.com>; Thu, 4 Sep 2008 09:10:56 -0700 Original-Received: from alfajor.home (vpn-132-204-232-128.acd.umontreal.ca [132.204.232.128]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m84GBCrR003065; Thu, 4 Sep 2008 12:11:12 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 14F751C971; Thu, 4 Sep 2008 12:10:43 -0400 (EDT) In-Reply-To: <874p5edjzd.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 21 Aug 2008 19:30:30 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Level: X-NAI-Spam-Score: 0.7 X-NAI-Spam-Rules: 2 Rules triggered SUBJ_HAS_UNIQ_ID=0.7, RV3097=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 04 Sep 2008 12:27:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20146 Archived-At: >> I'm not sure what this is intended to do. Sending just one EOF >> character to a process creates one EOF if many conditions are met. >> But a second read from the same pty will continue to look for input. >> >> The following code: >> (when compilation-disable-input >> (condition-case nil >> (process-send-eof proc) >> ;; The process may have exited already. >> (error nil))) >> >> Causes my grep buffer to start with a ^D (the EOF character that >> process-send-eof sends). This goofs up the parsing of the lines. > I can't reproduce this (I don't see any ^D character in grep buffers). > Could you send a recipe for reproducing this bug, as well as your system > specs? I remember seeing exactly these kinds of ^D under Mac OS X where process-send-eof causes them (either for pipes or for ttys, can't remember which). I even added a workaround for this problem in pcvs.el's cvs-parse-process: (when (eq system-type 'darwin) ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on MacOSX ;; because of the call to `process-send-eof'. (save-excursion (goto-char (point-min)) (while (re-search-forward "^\\^D+" nil t) (let ((inhibit-read-only t)) (delete-region (match-beginning 0) (match-end 0)))))) Not sure if it's related. Stefan