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 13:08:02 +0200 Message-ID: <87twchomel.fsf@gmx.us> References: <87bmyyold3.fsf@nicolasgoaziou.fr> <871szlrkdh.fsf@gmx.us> <87zim9oo2m.fsf@nicolasgoaziou.fr> 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]:38310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buHOK-0002Wf-MP for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 07:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buHOI-0008FK-0a for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 07:08:08 -0400 Received: from mout.gmx.net ([212.227.17.20]:51075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buHOH-0008F0-Mx for emacs-orgmode@gnu.org; Wed, 12 Oct 2016 07:08:05 -0400 Received: from W530 ([178.162.199.197]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MexlN-1bWOkP1SKP-00OUap for ; Wed, 12 Oct 2016 13:08:04 +0200 In-Reply-To: <87zim9oo2m.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 12 Oct 2016 12:32:01 +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: > A "good writing experience" includes a "good editing experience", or so > I think. I'm suggesting to solve some problems related to the latter, > under certain circumstances I explained in my original post.=20 I agree there=E2=80=99s a problem, but I find the proposed solution potenti= ally annoying... > The `org-link' face is not enough, as pointed out, because it's not > a matter of making the links stand out in the buffer. I see. >> Cl=C3=A9ment suggestion of a using something akin to prettify symbols mo= de is >> great, though. We could limit the length of the url being shown. It can >> always be edited with e.g. "C-c =E2=80=99" or, as currently, "C-c C-l". > > The problem is not really about editing the link itself, but editing > around the link. The problem also arises for the text just before or > just after the link. "C-c C-l" cannot help here. It is a problem. It's also a problem with super/subscripts as pointed out earlier. > I cannot tell, however, if Cl=C3=A9ment's suggestion is good or not. This= is > why I'd like to see a mock of the result, if anyone wants to implement > one. Here=E2=80=99s a quick-and-dirty "mockup" in Emacs 25.1. It doesn=E2=80=99= 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=20 (setq prettify-symbols-alist '(("[[https://www.very-long-links-that-might-be-obnoxious-when-exampned.or= g/][" . "=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-obnoxi= ous-when-exampned.org/][my description]] text after\n")) Rasmus --=20 However beautiful the theory, one should occasionally look at the evidence