From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: bidi-display-reordering is now non-nil by default Date: Sat, 06 Aug 2011 18:16:23 +0200 Organization: Organization?!? Message-ID: <87ipqaseg8.fsf@fencepost.gnu.org> References: <87fwlm7fam.fsf@fencepost.gnu.org> <87bowa7dza.fsf@fencepost.gnu.org> <877h6y7chn.fsf@fencepost.gnu.org> <831ux6cv5o.fsf@gnu.org> <87d3gpku3o.fsf@gnus.org> <834o1ypa2b.fsf@gnu.org> <87aabnn3mz.fsf@stupidchicken.com> <83mxfnwwyd.fsf@gnu.org> <87ipqbzogt.fsf@stupidchicken.com> <83liv7wqhe.fsf@gnu.org> <87liv75xsh.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312647412 30365 80.91.229.12 (6 Aug 2011 16:16:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2011 16:16:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 06 18:16:49 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 1QpjYO-0003ix-JO for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2011 18:16:48 +0200 Original-Received: from localhost ([::1]:46120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpjYO-0005lC-3j for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2011 12:16:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpjYI-0005l6-Va for emacs-devel@gnu.org; Sat, 06 Aug 2011 12:16:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpjYF-0007tf-09 for emacs-devel@gnu.org; Sat, 06 Aug 2011 12:16:42 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:44262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpjYE-0007s1-MV for emacs-devel@gnu.org; Sat, 06 Aug 2011 12:16:38 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QpjYD-0003cy-N1 for emacs-devel@gnu.org; Sat, 06 Aug 2011 18:16:37 +0200 Original-Received: from p508e9cce.dip.t-dialin.net ([80.142.156.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Aug 2011 18:16:37 +0200 Original-Received: from dak by p508e9cce.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Aug 2011 18:16:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508e9cce.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:8+HxAJ7F2JFKqFbgfsNgKSv0wHk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:142934 Archived-At: Lars Magne Ingebrigtsen writes: > Chong Yidong writes: > >> Still, it seems better not to change Gnus to proactively insert LRM >> characters, but leave it to those users who care to customize it as >> necessary. In the default value of gnus-summary-line-format, >> >> "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n" >> >> the subject (%s) is followed by a newline. If a user wants to change >> this to include, say, the article number, that could be done via >> >> "%U%R%z%I%(%[%4L: %-23,23f%]%) %s\u200E%N\n" > > After reading through (ok, skimming :-) this thread, I'm also leaning > towards this as the solution (or "solution") for Emacs 24.1 at least. > > However, there are complications. :-) > In other words, the segmentation characters probably has to be > inserted in the format spec explicitly by users that customise this > thing. Which just seems like a bad interface. Well, then how about letting format do the job? It could make sure that %s does not spill its direction into the surroundings, by enclosing it with appropriate marks if required. Basically format first analyses the reading direction of each character of the format string, and when a format specification would change this direction after filling it, it gets surrounded by appropriate directional marks that keep it from spilling. If this seems too automagic, one could use format specs like %| to indicate points where format could insert directional specifiers that keep directionality from moving across. -- David Kastrup