From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Bidirectional text and URLs Date: Mon, 01 Dec 2014 17:19:30 +0100 Message-ID: References: <87a93cngwv.fsf@uwakimon.sk.tsukuba.ac.jp> <837fyfml31.fsf@gnu.org> <874mtio7wh.fsf@uwakimon.sk.tsukuba.ac.jp> <83r3wml8kq.fsf@gnu.org> <83zjb9an0q.fsf@gnu.org> <831toka82r.fsf@gnu.org> <83oaro8km7.fsf@gnu.org> <83iohw824c.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1417450819 13069 80.91.229.3 (1 Dec 2014 16:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2014 16:20:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 01 17:20:12 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XvThp-00079f-Sz for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 17:20:10 +0100 Original-Received: from localhost ([::1]:60756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvThp-0007c4-Dt for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 11:20:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvThf-0007aV-UT for emacs-devel@gnu.org; Mon, 01 Dec 2014 11:20:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvTha-0003A9-4o for emacs-devel@gnu.org; Mon, 01 Dec 2014 11:19:59 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:41024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvThZ-00039j-QW; Mon, 01 Dec 2014 11:19:54 -0500 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XvThC-0005IR-VA; Mon, 01 Dec 2014 17:19:30 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEVYFiVjDxI+CiIJAjJO PWVLaZDc3utkfqG1Au1hAAACQ0lEQVQ4jW3TS3PaMBAAYJOknC1gmmsJmekVWBlfQ7RY1zQ2+JoZ yOqa1q7273clxSTNoAM2/kb7spzt0+L9l5WlS3uC9iIcDFQXweNlaCwzXQKQtTs/a8/QmiD6wo4a yi5Cg1/B9hHqc8QB3pOYD1Bh5WBr2D/lV7YP+xDxMYG6YfNjJFfmbT6KTwS+k6sYTfg329Fv+W22 ETyRa9rnXCIi/hVg/BWBiDosHqxDA9jgSPm+CTALYBvryQEcakRlGz0SkEh0tHXh1DWAB8CHW4ey 41ae00lDRdspQC/9IPs/AlUAByXRywxtL/2suQQJRXEZ8ZfcYs9FM1IIyzNsBNT9vT1JqXkH6wSO jgLSARJfSceSKAH614LcNvRqZSC3AvMIlr0JkGumlYxEYJWxAO8YiCUSIgtMIqhvO7RSrz3IEHVb L5WaJpBREL1K0wKrMa8TzDMVy+0SrMf94wB5BLm1Aar6LcH7rAKUAkuyTwHKY5oVB9DyojYOY/LN aZ6Fqe8CgNRZUrMM5RZmlY2pctrLUZRyJpp20oeKycenw1HLS4XQsnOYQIZYLTaAGCMptn0rodQi QA9rjU3MPTPsXYKVyiQIhkhFflOXRvfrAbpQUFD7qnsouueYYwCN8h14vobSw38AujHgt1PtqR6q ertbgJEdYEo/+cnUDbCVCRx4j3s5D3Jr71KD4exOQ46m0P5F6glFfQJAc2j9KNx/gkkEy3JK1LRV w6wG0PFDWsiRUPYzYIK7UC2bD9Cot+pjLWD+Dyt/FFkzkFF8AAAAAElFTkSuQmCC X-Now-Playing: Joni Mitchell's _Don Juan's Reckless Daughter_: "The Silky Veils of Ardor" X-Hashcash: 1:23:141201:eliz@gnu.org::6J5amXVbqSi8ghvm:0000012RN X-Hashcash: 1:23:141201:emacs-devel@gnu.org::Aj60aInK/+Hx1+gm:000000000000000000000000000000000000000000l0qZ In-Reply-To: <83iohw824c.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 Dec 2014 05:45:07 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1XvThC-0005IR-VA MailScanner-NULL-Check: 1418055571.83354@jA9SAfaZ7VErjYMLe/RBoQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 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:178589 Archived-At: Eli Zaretskii writes: > Anyway, if you want this, please show the API of the function -- what > it should return and how. Actually, I'm not sure. :-) Would it make any sense to have a function like `(displayed-directionality POSITION)' that returns either `right-to-left' or `left-to-right? If so, the URL-finding function would query about the start of the URL (which would normally be the HTTP part), and if that's `right-to-left', Here There Be Shenanigans. >> Yes, I want to unspoof the URL. Adding some markings to notify that >> this has been done would also be nice, perhaps by adding a 'warning face >> to the text or the like. > > Then putting a display property on the offending RLO might be the best > solution. On the RLO character itself or the URL affected by the RLO? I'd rather limit the impact of whatever we do to the URL itself, since the presentation of the URL is the user interface question here. > Yes, but adding RLOs or LROs just to undo some evil effect is > something I think we should avoid, because its effect is non-local and > can frequently be surprising and unintended. It is better to use > other means we have. Sure, if a different method is available that allows us to display these URLs in a non-spoofed way, I'm all for that. >> And displaying =E2=80=AEhttp://myspace.com/#/segami/moc.koobecaf//:sptth= =E2=80=AC with a >> couple of visible control characters doesn't really solve the problem, >> because most people will still assume that that's a link to Facebook, >> not to Myspace. Most people are not even aware that this bidi stuff >> exists. > > Under my suggestion to cover the overrides with a display property, > the URL will not be reversed on display. Did you try that? Oh, they won't? I thought you meant adding a display property to the RLO in addition to having it do what it normally does. So is your suggestion here to disable all RLO (etc.) characters in mail buffers? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no