From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#895: slow processing of process output Date: Wed, 06 Jul 2011 20:50:00 +0200 Message-ID: References: <6D56BDCE22F94C77B10AB679E92860C6@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309983324 6525 80.91.229.12 (6 Jul 2011 20:15:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 20:15:24 +0000 (UTC) Cc: 895@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 22:15:18 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QeYVA-0002LK-EZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2011 22:15:16 +0200 Original-Received: from localhost ([::1]:37884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeYV8-0006Ri-NH for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2011 16:15:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeXBh-0007in-Ej for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 14:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeXBf-00019T-2X for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 14:51:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeXBe-00019J-KY for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2011 14:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QeXBd-0002Q2-Ut; Wed, 06 Jul 2011 14:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2011 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 895 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 895-submit@debbugs.gnu.org id=B895.13099782279245 (code B ref 895); Wed, 06 Jul 2011 18:51:01 +0000 Original-Received: (at 895) by debbugs.gnu.org; 6 Jul 2011 18:50:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeXB5-0002P4-1B for submit@debbugs.gnu.org; Wed, 06 Jul 2011 14:50:27 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QeXB2-0002Or-Js for 895@debbugs.gnu.org; Wed, 06 Jul 2011 14:50:25 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QeXAo-0000SM-1f; Wed, 06 Jul 2011 20:50:10 +0200 In-Reply-To: <6D56BDCE22F94C77B10AB679E92860C6@us.oracle.com> (Drew Adams's message of "Wed, 6 Jul 2011 10:58:35 -0700") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Demdike Stare's _Tryptych (2): Liberation Through Hearing_: "Matilda's Dream" X-Hashcash: 1:23:110706:drew.adams@oracle.com::Bk3elmnRM7ozp3tS:00000000000000000000000000000000000000008/YC X-Hashcash: 1:23:110706:895@debbugs.gnu.org::0nPrlRFanogbVn1r:000000000000000000000000000000000000000000jXFv X-Hashcash: 1:23:110706:monnier@iro.umontreal.ca::8dnDg7sl/Ucw1177:00000000000000000000000000000000000019y8j X-MailScanner-ID: 1QeXAo-0000SM-1f MailScanner-NULL-Check: 1310583010.57599@wkeZ+fuZLJ36arVmLEwKjA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 06 Jul 2011 14:51:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48121 Archived-At: "Drew Adams" writes: > Absolutely. But there is no reason to conflate "[having] the `M-x > grep' command be less...shell-script-ey" with doing the highlighting > in Lisp. Why do you want less shell-script-ey? For the very simple use cases, having "grep -nH -e " seems like a distraction. But I usually want it more shell-script-ey than less -- that `M-x grep' adds "/dev/null" at the end has often annoyed me greatly, because you can't then say "grep foo *.el | grep -v bar". > That is what I did, IIUYC. The relevant bit of the compile+20.el code: > > ;; Remember `grep-pattern' for highlighting, if highlighting is possible. > (cond (;; Quoted pattern (either "..." or '...') Yeah, That's what I was thinking of. :-) > FWIW, I think the Emacs Dev approach of using external `grep' > highlighting is generally not bad (but there have been a few bugs that > needed to be fixed along the way). Yes, it's a good idea, but there are these corner cases where it doesn't work quite well. Like when you have some (implicit) commands in the pipeline that reacts badly to being run in a terminal, like the guy who did a "git log" (or something?), and git then started "less", because it thought it was in a terminal. So to me it looks like the best long-term general solution is to bind `process-connection-type' to nil in compile.el, and fix the highlighting in Emacs Lisp, like your code does. Perhaps. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/