From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Change visibility for bracket links Date: Wed, 12 Oct 2016 14:21:13 +0200 Message-ID: <87h98hoj0m.fsf@nicolasgoaziou.fr> References: <87bmyyold3.fsf@nicolasgoaziou.fr> <871szlrkdh.fsf@gmx.us> <87zim9oo2m.fsf@nicolasgoaziou.fr> <87twchomel.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buIX5-0005Fl-UA for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 08:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buIX3-0000y0-P1 for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 08:21:14 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:40025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buIX3-0000xt-JR for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 08:21:13 -0400 In-Reply-To: <87twchomel.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 12 Oct 2016 13:08:02 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > I agree there=E2=80=99s a problem, but I find the proposed solution poten= tially > annoying... I understand. I thought the advantages would mitigate the drawbacks. In any case, I'd rather have a solution, active by default, and a way to disable it than no solution at all. > It is a problem. It's also a problem with super/subscripts as pointed out > earlier. Exactly. Ideally, the chosen solution could be applied to sub/superscripts too. > Here=E2=80=99s a quick-and-dirty "mockup" in Emacs 25.1. It doesn=E2=80= =99t work > properly, obviously, but try to move the cursor from left-to-right to get > a taste of what it could be like. Of course, the behavior could be > tweaked, e.g. characters displayed etc... > > (progn=20 > (setq prettify-symbols-alist > '(("[[https://www.very-long-links-that-might-be-obnoxious-when-exampned.= org/][" . "=E2=80=89") > ("]]" . "=E2=80=89")) > prettify-symbols-unprettify-at-point 'right-edge) > (prettify-symbols-mode) > (insert "\ntext before [[https://www.very-long-links-that-might-be-obno= xious-when-exampned.org/][my description]] text after\n")) Thank you. However, if I eval this in an Org buffer, the new line is properly inserted but nothing happens when point goes past the link. Am I missing something? Also, it doesn't seem to understand Org syntax, i.e., any "]]" would be prettified, even if they do not belong to an Org link. Regards, --=20 Nicolas Goaziou