From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Bug in font-lock/grep interaction Date: Thu, 14 Oct 2010 15:02:57 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1287061576 13673 80.91.229.12 (14 Oct 2010 13:06:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2010 13:06:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 14 15:06:15 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6NVe-0004N1-SW for ged-emacs-devel@m.gmane.org; Thu, 14 Oct 2010 15:06:15 +0200 Original-Received: from localhost ([127.0.0.1]:47303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6NVe-0001Mj-7Q for ged-emacs-devel@m.gmane.org; Thu, 14 Oct 2010 09:06:14 -0400 Original-Received: from [140.186.70.92] (port=45566 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6NSh-0007qY-J5 for emacs-devel@gnu.org; Thu, 14 Oct 2010 09:03:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6NSd-0002pq-S1 for emacs-devel@gnu.org; Thu, 14 Oct 2010 09:03:11 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6NSd-0002pD-Hk for emacs-devel@gnu.org; Thu, 14 Oct 2010 09:03:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P6NSa-0002Rr-Ic for emacs-devel@gnu.org; Thu, 14 Oct 2010 15:03:04 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Oct 2010 15:03:04 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 14 Oct 2010 15:03:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEX0yqP75rb537DOLzr6 4rPmf3afmBxJAAACbElEQVQ4jU1UQW4kIQwkTLjHLR7AeOl7S6jvi+W9o2H9/69sGWakJVISUY2r qLIJIfJeWjtp106EPyQhMIvUnrXUSJ/Vc3aAuSvzGV65f4AuG8B+faSrVFbfz6pHiGXV55BaGyFW wikRfZ8Q5TRnu26LqkqsAD6iHsPaZW3oWlIdEOyXeaPU2V5dKWMxgKdmib9am/OOaWxZkBu51v77 +9FaszuF8ha8AO4/Mc1maUKJX9wRANLpx+K808PGOUIiVwyg4oPUxmzThmGlXWsBxzQDxdqf9/MD CKVhs902prW72fcGYCCl8uMH/IRrCFtVzRTlNHuNwRPASPb8AJRPO19pBEMxO+1ry63Qd8QikOrC mjmwgurCGjOMTgOHgAVdpfQpOSPtMobzgyPEXapXRWYasBse5ge3V6q1KquckGw3PBmLA3HU7izq ANSGZH+fHUDV7k1CnNoKy335osM5VMAibA2+tDtAlmvcmVfxSu2eF645bHQnBy8/Cyo5ciHEELSu Ulk4uH2ebrsYfdj1zcEBOTlyj1FX5Lw5fvv3DtgrdAFw8O6rP06AGG18U6b/gDMt6nlfgS0+Cffa vZtsAeB4FdwEpAC820/01Nq3XuZgIe92P5JS2HJHLRbRcVC1APx+LOCqRwFwVN9CL3IpD/gE+oix VHR5daBqFYFBThJIClLrR3B2wQ/+QY8Y90yqMDXsq+vSjPxiP0gwUfqZQe2S0KQYQNJn35njNhgt KmiqNZpwV1eCiBuf9GIo3THj68lYQdEyrnjT0H4c8p7BPUKFPw+GPw1u4n5utt17wRL1R+L9sNAC RQmJq/wD+f63+8u38jwAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Toshimaru Nakamura's _Egrets_: "Tane" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:b51q896tjpGet/fny1kWPPSHnAQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131700 Archived-At: If you have (setq font-lock-global-modes nil) then grep won't work: grep -nH -e stream *.el comint.el:701:a TCP connection to be opened via `open-network-stream'. If there is already comint.el:727:a TCP connection to be opened via `open-network-stream'. If there is already comint.el:761: (open-network-stream name buffer (car command) (cdr command)) (That is, the text is unreadable and `C-x `' won't jump to the lines.) The following seems to fix the problem, but is probably the wrong solution: === modified file 'lisp/progmodes/grep.el' *** lisp/progmodes/grep.el 2010-05-21 20:43:04 +0000 --- lisp/progmodes/grep.el 2010-10-14 13:01:41 +0000 *************** *** 456,463 **** Set up `compilation-exit-message-function' and run `grep-setup-hook'." (when (eq grep-highlight-matches 'auto-detect) (grep-compute-defaults)) ! (unless (or (eq grep-highlight-matches 'auto-detect) ! (null grep-highlight-matches)) ;; `setenv' modifies `process-environment' let-bound in `compilation-start' ;; Any TERM except "dumb" allows GNU grep to use `--color=auto' (setenv "TERM" "emacs-grep") --- 456,464 ---- Set up `compilation-exit-message-function' and run `grep-setup-hook'." (when (eq grep-highlight-matches 'auto-detect) (grep-compute-defaults)) ! (when (and (not (or (eq grep-highlight-matches 'auto-detect) ! (null grep-highlight-matches))) ! font-lock-global-modes) ;; `setenv' modifies `process-environment' let-bound in `compilation-start' ;; Any TERM except "dumb" allows GNU grep to use `--color=auto' (setenv "TERM" "emacs-grep") -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen