From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [RFC] Change visibility for bracket links Date: Wed, 12 Oct 2016 14:47:41 +0200 Message-ID: <877f9dohsi.fsf@gmx.us> References: <87bmyyold3.fsf@nicolasgoaziou.fr> <871szlrkdh.fsf@gmx.us> <87zim9oo2m.fsf@nicolasgoaziou.fr> <87twchomel.fsf@gmx.us> <87h98hoj0m.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buIxM-0007xy-Tw for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 08:48:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buIxI-0008Ky-K0 for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 08:48:24 -0400 Received: from [195.159.176.226] (port=33348 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buIxI-0008KH-CR for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 08:48:20 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1buIwv-0003mI-2H for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 14:47:57 +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: emacs-orgmode@gnu.org Nicolas Goaziou writes: >> Here’s a quick-and-dirty "mockup" in Emacs 25.1. It doesn’t 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 >> (setq prettify-symbols-alist >> '(("[[https://www.very-long-links-that-might-be-obnoxious-when-exampned.org/][" . " ") >> ("]]" . " ")) >> prettify-symbols-unprettify-at-point 'right-edge) >> (prettify-symbols-mode) >> (insert "\ntext before [[https://www.very-long-links-that-might-be-obnoxious-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. No, I meant for it eval in the *scratch* buffer. It merely shows how it might look with a similar mechanism to prettify-symbols-mode. Of course, it lacks all care to details that would make it nice. I suspect it would suffers from the jumping that Nick, and I guess you as well, was advocating against... Here’s a recording of my screen: https://webmshare.com/6wqWB (I hope the site isn’t annoying; it works fine in Fx with uBlock and I tried in the chromium as well w/o any ad-blocking). Rasmus -- And when I’m finished thinking, I have to die a lot