From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [RFC] Change visibility for bracket links Date: Thu, 13 Oct 2016 14:19:46 +0200 Message-ID: <87pon4l9ul.fsf@gmx.us> References: <87bmyyold3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buezj-0006ir-UN for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 08:20:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buezi-0004OF-Vy for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 08:20:19 -0400 Received: from [195.159.176.226] (port=58261 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buezi-0004Ls-PO for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 08:20:18 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1buezW-0007aV-Ah for emacs-orgmode@gnu.org; Thu, 13 Oct 2016 14:20:06 +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 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. Rasmus