From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bidi at startup Date: Wed, 22 Jun 2011 11:32:02 -0400 Message-ID: References: <83y60vumy9.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308756774 31247 80.91.229.12 (22 Jun 2011 15:32:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2011 15:32:54 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 22 17:32:47 2011 Return-path: Envelope-to: ged-emacs-devel@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 1QZPQ0-0004Ff-32 for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2011 17:32:40 +0200 Original-Received: from localhost ([::1]:54558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZPPy-0000NJ-Ka for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2011 11:32:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZPPV-0000KK-77 for emacs-devel@gnu.org; Wed, 22 Jun 2011 11:32:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZPPT-0008WN-LU for emacs-devel@gnu.org; Wed, 22 Jun 2011 11:32:08 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:64694 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZPPQ-0008VM-Qi; Wed, 22 Jun 2011 11:32:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAJQKAk5FxL0s/2dsb2JhbABUpw54iHO/doYtBJ1shCY X-IronPort-AV: E=Sophos;i="4.65,406,1304308800"; d="scan'208";a="116910432" Original-Received: from 69-196-189-44.dsl.teksavvy.com (HELO pastel.home) ([69.196.189.44]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 22 Jun 2011 11:32:02 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 458B458EC9; Wed, 22 Jun 2011 11:32:02 -0400 (EDT) In-Reply-To: <83y60vumy9.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 21 Jun 2011 20:13:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:140853 Archived-At: >> >> Is it used when we run emacs with -batch? >> That doesn't matter for preloading. > I think it does, because temacs is normally run with -batch. I don't see how that's relevant. > No. stdout is not a display device in this context; a text terminal > is. When Emacs writes to stdout from `message' and such likes, the > result doesn't trigger redisplay, and thus doesn't invoke the > reordering. Good. > What I was saying was that "emacs -batch" does not need reordering > services, because text we write to stdout should not be reordered. > Therefore, I think bidi-display-reordering should be initialized to > nil in xdisp.c, then set to t during startup if Emacs is invoked > interactively or as a daemon. Do you agree? No. I still don't see the harm in setting it to t all the time. >From what you're saying bidi only happens during redisplay and redisplay does not happen in --batch mode, so the setting of bidi-display-reordering is irrelevant in such a situation and might as well be the same as in other cases. Stefan