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 11:27:01 +0200 Message-ID: <87wphdq5ne.fsf@gmx.us> References: <87bmyyold3.fsf@nicolasgoaziou.fr> <520C9DD6-7764-4B07-8E7A-FB42CC0CDF8A@dagertech.net> <2B66CB76-BBC4-4345-A310-CD034130DA1D@dagertech.net> <8737kamo01.fsf@nicolasgoaziou.fr> <659b40e8-927b-0cb5-3bfa-a47426d5c5d8@dagertech.net> <87twcolm8v.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]:44958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buFru-0001p2-Vl for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 05:30:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buFrq-0008Gu-Q2 for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 05:30:33 -0400 Received: from [195.159.176.226] (port=33387 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buFrq-0008G8-JE for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 05:30:30 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1buFrQ-0004cn-Pt for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 11:30:04 +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: > Hello, > > Clément Pit--Claudel writes: > >> What about having our cake and eating it too? :) We could do just the >> same as what prettify-symbols-mode does with its >> prettify-symbols-unprettify-at-point variable. Namely, we could show >> the brackets when point is at the edge of a link, and hide them >> otherwise. The same trick could be applied to subscripts (I have >> working code for that for a different project, at >> https://github.com/cpitclaudel/company-coq/blob/master/company-coq.el#L4287). >> >> Wouldn't this preserve the flow of reading, while allowing for easier >> editing? > > I have the feeling that it would cause some visual "jumping" when the > link is very different (e.g., wider) than its visible pars. Some links > tend to be very long. So showing the full link is not an option. We can limit it to a certain number of characters and expand it, like when the width of table columns is limited. BTW: I don’t find that prettify-symbols-mode with (setq prettify-symbols-unprettify-at-point 'right-edge) ruins the reading flow. On the contrary, I would love to port org-entities to use this functionality for at display in buffers. Rasmus -- Together we will make the possible totalllly impossible!