From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Setting bidi-paragraph-direction in comint modes Date: Tue, 14 Feb 2012 14:35:52 +0800 Message-ID: <87vcn9zzuf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329201374 23029 80.91.229.3 (14 Feb 2012 06:36:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2012 06:36:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 07:36:13 2012 Return-path: Envelope-to: ged-emacs-devel@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 1RxBzi-00025i-Fc for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2012 07:36:07 +0100 Original-Received: from localhost ([::1]:59562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxBzh-00013g-4j for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2012 01:36:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxBzd-00013O-MX for emacs-devel@gnu.org; Tue, 14 Feb 2012 01:36:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxBzc-0007wD-Px for emacs-devel@gnu.org; Tue, 14 Feb 2012 01:36:01 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:47940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxBzc-0007w9-NN for emacs-devel@gnu.org; Tue, 14 Feb 2012 01:36:00 -0500 Original-Received: from [155.69.19.37] (port=57661 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RxBzb-0007xt-W7 for emacs-devel@gnu.org; Tue, 14 Feb 2012 01:36:00 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148600 Archived-At: Any objections to setting bidi-paragraph-direction to `left-to-right' in Comint and derived modes? The bidi code appears to lead to a performance regression. You can observe this with 1. emacs -Q 2. M-x shell RET 3. ls /usr/share/doc (Prints about 2000 lines on my computer) 4. Repeat step 3 many times. As the buffer gets to about 8000 lines, redisplay slows to a crawl. Setting bidi-paragraph-direction to `left-to-right' fixes this (mostly; it's still a touch slower than in Emacs 23). AFAICT, bidi paragraphs don't make sense in Comint-like modes anyway.