From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Bidirectional text and URLs Date: Sat, 29 Nov 2014 12:04:17 -0500 Message-ID: References: <87zjbbdt0u.fsf@igel.home> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1417280671 9673 80.91.229.3 (29 Nov 2014 17:04:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 17:04:31 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 18:04:26 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 1XulRY-0007h1-0J for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 18:04:24 +0100 Original-Received: from localhost ([::1]:48274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XulRX-0005C8-Ju for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2014 12:04:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XulRT-0005Br-Kf for emacs-devel@gnu.org; Sat, 29 Nov 2014 12:04:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XulRS-0006IQ-Ik for emacs-devel@gnu.org; Sat, 29 Nov 2014 12:04:19 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XulRS-0006IM-Fw for emacs-devel@gnu.org; Sat, 29 Nov 2014 12:04:18 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XulRR-0005l7-EL; Sat, 29 Nov 2014 12:04:17 -0500 In-reply-to: <87zjbbdt0u.fsf@igel.home> (message from Andreas Schwab on Fri, 28 Nov 2014 20:28:17 +0100) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:178459 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > The RTL flag character in the example isn't part of the URL, it only > precedes it. (I couldn't see it in any case.) This suggests we need to provide a primitive to tell Lisp programs a guaranteed answer for which direction the text at a certain point is displayed in. Also, a primitive to verify that a certain region of text has no bidi strangeness within it. It could return the position of the first bidi strangeness in the region, or nil. On issues like this, better safe than sorry. The user who wants to override the safety measure can easily do that. For instance, inserting line breaks around the URL would make it be considered safe, right? I think the precaution I suggested about bidi flags inside the URL is needed also. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.