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: Sat, 29 Nov 2014 18:49:21 +0100 Organization: Programmerer Ingebrigtsen 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1417283395 18356 80.91.229.3 (29 Nov 2014 17:49:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 17:49:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 18:49:48 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 1Xum9T-0004ol-UE for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 18:49:48 +0100 Original-Received: from localhost ([::1]:48371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xum9T-0006yU-Hx for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 12:49:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xum9K-0006yD-8x for emacs-devel@gnu.org; Sat, 29 Nov 2014 12:49:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xum9D-0001po-Vr for emacs-devel@gnu.org; Sat, 29 Nov 2014 12:49:38 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xum9D-0001pg-Oq for emacs-devel@gnu.org; Sat, 29 Nov 2014 12:49:31 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xum9B-0004gQ-Q1 for emacs-devel@gnu.org; Sat, 29 Nov 2014 18:49:29 +0100 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 18:49:29 +0100 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Nov 2014 18:49:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEWGRzs5EBcdCA/7zKr0 vZnprYnJiWxXHR/wi9pIAAACMElEQVQ4jW2ST4+bMBDFZ6uNfY25cK259APA7nklTM6VgunV6pbJ Fa/azNfvG0Noou0okeD9mH/PpvZThBBinAhPXdv2N7VvO4AhRnptzy9t+/4IRoA3fp/ivINuz+iG 9xDP/UOLAk4B4supD7cUBehOA/P8ymm46d2qRyofjMMYz2vzrdIGQuheznuHBxBO57XKJxACvu63 x0cQ/gsGJjmEvrsHQ+Rkq6ZpZL7vMa2ix7+5jrs+Ud3sUX+dw7jpvAN3FPo2xy0APiAeSYisOH+4 A9mQGEPWOVc9gCcMqqqrGu9NUWErwBdREV83O8BIM0C9AQxdwIj1kgFwXkHj3Q102PgKAL1RcMvA gaIt008Aj8Wdrr/QPOtJT3YFlRZCijfT9R54ba7be8O8lirAb60RACOu3JAWWOIbbVsy4A2pi5Ot CVNpDb/5SzZiDbYi9OT/+d7AS108WbhqtyqIj3pBqQFAkgJ3O5FGxBpcdKajFZJN9i47t9g/yOAn QQ+pSnfnRGpZ0u9xmJIrIMPYyrkaLwDPGPayAfUdwCoYnztskbOrCRXgCABZuxCbHkZVqKx3oMRC ljkZOgx20XRk5Fqyy7XV8zR8YKwgK8D3OV+/03giZpPEYKxM2lOTDj+of8XBcRL8dKoStfxiE94g xwsyxNoVIGNmHhKcSkR8ESYdt87YyEBIhCuYCkiENbJufSyjXmC8wGPNwCXByoQ3MrEUWTC1kCse kZ4MaTAvZdC/z+UL8cX/aVIAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Bob Hund's _Sover Aldrig_: =?iso-8859-1?Q?=22Ist=E4llet_F?= =?iso-8859-1?Q?=F6r?= Musik: =?iso-8859-1?Q?F=F6rvirring=22?= User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:u//GBuIQizJWlUaa2mm1xrT65PY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:178467 Archived-At: Phishing using this method is a problem mainly on the web and in mail, so I wonder whether the solution we're looking for would be applied to main and web modes instead of having a more general mechanism. It seems pretty clear that stuff like ‮http://myspace.com/#/segami/moc.koobecaf//:sptth where you have a buffer with only left-to-right text, but then you have a single right-to-left indicator, is suspicious. And since Latin characters are strongly left-to-right, you don't get confusing URLs in the middle of right-to-left text: הממשלה בכך שהוא http://myspace.com/#/segami/moc.koobecaf//:sptth "משתף פעולה עם (I hope that's nothing rude, I just cut'n'pasted text at random from a Hebrew web page.) So... would a possible solution here be as simple as removing all right-to-left indicators in mail and web modes if those right-to-left indicators apply to URLs? That is, after the modes mark the regions it thinks are URLs, then they would check if there are any RTL characters that apply to the regions that it thinks are URLs? But currently Emacs doesn't really have a mechanism for querying the directionality of a buffer region, I think? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no