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: Re: bidi-display-reordering is now non-nil by default Date: Sun, 07 Aug 2011 13:21:41 -0400 Message-ID: <87bow116je.fsf@stupidchicken.com> 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> <83k4arvx05.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312737718 14510 80.91.229.12 (7 Aug 2011 17:21:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2011 17:21:58 +0000 (UTC) Cc: larsi@gnus.org, list-general@mohsen.1.banan.byname.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 07 19:21:51 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 1Qq72s-0007TD-Ia for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 19:21:50 +0200 Original-Received: from localhost ([::1]:32850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq72s-0001ac-1Q for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 13:21:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq72p-0001aX-76 for emacs-devel@gnu.org; Sun, 07 Aug 2011 13:21:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qq72o-0007BV-6u for emacs-devel@gnu.org; Sun, 07 Aug 2011 13:21:47 -0400 Original-Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]:43436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq72m-00073a-L7; Sun, 07 Aug 2011 13:21:44 -0400 Original-Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p77HLf6m026199 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 7 Aug 2011 13:21:42 -0400 In-Reply-To: <83k4arvx05.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Aug 2011 10:07:22 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.146 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:142966 Archived-At: Eli Zaretskii 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. > > I don't think this is a good idea. It requires users to know too much > about the reordering algorithm. From this discussion you may conclude > that those who need it will have that knowledge anyway, but I think > this conclusion would be wrong: the participants of this discussion > who argue for usage of these characters are not typical users. OK, how about introducing a function similar to the following? (defun string-mark-left-to-right (str) "Return a string based on STR that can be embedded in LTR text. If STR ends in right-to-left (RTL) script, return a string consisting of STR followed by a left-to-right mark (LRM) character. Otherwise, return STR." (if --??--this-string-needs-an-lrm--??-- (concat str "\u200E") str)) (Can you tell us how to fill in the missing piece above?) *** lisp/gnus/gnus-sum.el 2011-08-05 23:29:17 +0000 --- lisp/gnus/gnus-sum.el 2011-08-07 17:20:07 +0000 *************** *** 5357,5362 **** --- 5357,5367 ---- gnus-summary-same-subject subject)) (t gnus-summary-same-subject))) + + (if gnus-tmp-subject-or-nil + (setq gnus-tmp-subject-or-nil + (string-mark-left-to-right gnus-tmp-subject-or-nil))) + (if (and (eq gnus-summary-make-false-root 'adopt) (= gnus-tmp-level 1) (memq number gnus-tmp-gathered))