From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#10835: 24.0.93; bidi-paragraph-direction slows down Shell mode Date: Sun, 19 Feb 2012 22:07:24 +0800 Message-ID: <87y5ry29yb.fsf@gnu.org> References: <87mx8idnji.fsf@gnu.org> <8762f6dn85.fsf@gnu.org> <837gzlwigg.fsf@gnu.org> <87wr7ljr5g.fsf@gnu.org> <8362f5wc15.fsf@gnu.org> <87y5s0yiwz.fsf@gnu.org> <87y5s0dd6q.fsf@gnu.org> <83y5s0v84w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329660490 24013 80.91.229.3 (19 Feb 2012 14:08:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2012 14:08:10 +0000 (UTC) Cc: 10835@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 19 15:08:09 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rz7Qo-0003gG-Pc for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Feb 2012 15:08:02 +0100 Original-Received: from localhost ([::1]:46523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rz7Qn-000545-QY for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Feb 2012 09:08:01 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rz7Qk-000516-CO for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2012 09:07:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rz7Qj-00048M-Do for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2012 09:07:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rz7Qj-00048I-CL for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2012 09:07:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rz7Sk-0002JK-D9 for bug-gnu-emacs@gnu.org; Sun, 19 Feb 2012 09:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Feb 2012 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10835 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10835-submit@debbugs.gnu.org id=B10835.13296605868855 (code B ref 10835); Sun, 19 Feb 2012 14:10:02 +0000 Original-Received: (at 10835) by debbugs.gnu.org; 19 Feb 2012 14:09:46 +0000 Original-Received: from localhost ([127.0.0.1]:45388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rz7ST-0002Il-7c for submit@debbugs.gnu.org; Sun, 19 Feb 2012 09:09:45 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:57281 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rz7SR-0002Ie-0e for 10835@debbugs.gnu.org; Sun, 19 Feb 2012 09:09:43 -0500 Original-Received: from bb121-6-68-155.singnet.com.sg ([121.6.68.155]:37977 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rz7QO-0004UI-Hn; Sun, 19 Feb 2012 09:07:37 -0500 In-Reply-To: <83y5s0v84w.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Feb 2012 10:49:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57007 Archived-At: Eli Zaretskii writes: > Yes, the overlays together with the long search for paragraph > beginning probably push the user experience from slightly below the > annoyance threshold to just above it. > ... > How about setting bidi-paragraph-direction in comint buffers to > left-to-right when the locale indicates that use of bidirectional > scripts is unlikely? We could use locale-language-names and an > additional small database of languages that need bidi, to make that > decision. WDYT? I'm not keen on bolting on this additional complexity. I don't see any better way out, so we might as well take the risk and switch to using text properties for color escape highlighting. I just committed a patch to do that, limiting the change to Shell mode and leaving the other users of ansi-color.el unaffected (and still using overlays). Thanks for helping with this bug. Hopefully the fix won't turn up any problems...