From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [RFC] Change visibility for bracket links Date: Thu, 13 Oct 2016 12:13:44 -0400 Message-ID: <87wphc8bwn.fsf@gmail.com> References: <87bmyyold3.fsf@nicolasgoaziou.fr> <87twcgl9vi.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buieW-0006VX-NG for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 12:14:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buieR-00031L-7o for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 12:14:39 -0400 Received: from [195.159.176.226] (port=47931 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buieR-0002yY-1L for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 12:14:35 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1buieC-0002Id-En for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 18:14:20 +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 Rasmus writes: > Hi, > > Nicolas Goaziou writes: > >> [[uri][description]] >> >> is displayed as >> >> [description] >> >> instead of >> >> description >> >> and >> >> [[uri]] >> >> is displayed as >> >> [uri] >> >> instead of >> >> uri > > How about showing boundaries only when the cursor is near "hidden" text? > This would also work for emphasized text when org-hide-emphasis-markers is > non-nil. When the cursor is far away from a link it is only using its > respective face, namely org-link or bold or whatever. Example, where "|" > is the cursor: > > Pre| text description post text > ^^^^^^^^^^^ > a link, org-link face > > Pre| text bold text text > ^^^^^^^^^ > bold face > > But when the cursor is next to the link or emphasized text markers are > shown. > > Pre text |[description] post text > Pre text |*bold text* post text > > It would not cause much jumping. Of course, for people who wants to avoid > jumping altogether org-hide-emphasis-markers could be set to nil. It > would arguably make org-hide-emphasis-markers more useful for emphasized > text as well. > I'm worried that this would be computationally prohibitive. -- Nick