From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Subject: Re: how to best make characters invisible in a org-derived mode Date: Thu, 02 May 2013 07:49:27 +0200 Message-ID: <5181FE67.3000508@easy-emacs.de> References: <517B462D.5010408@gmail.com> <5180C791.2050008@easy-emacs.de> <51819E0D.5090001@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXmMS-0007qx-EG for emacs-orgmode@gnu.org; Thu, 02 May 2013 01:47:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXmMR-0000Xp-K5 for emacs-orgmode@gnu.org; Thu, 02 May 2013 01:47:20 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:64776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXmMR-0000XK-Av for emacs-orgmode@gnu.org; Thu, 02 May 2013 01:47:19 -0400 In-Reply-To: <51819E0D.5090001@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 02.05.2013 00:58, schrieb Christian Wittern: > Hi Andreas, Hi John > > Thank both of you for trying to get me on track. > > On 2013-05-01 16:43, Andreas Röhler wrote: >> maybe have a look how >> >> ar-hide-bracketed-in-line-atpt >> >> for example is implemented. > I can't actually find this function, but I get the general point from the files in Emacs Werkstatt. > > What tripped me up originally that simply setting a region to 'invisible worked in fundamental mode, but not in org-mode. > > I found the solution after I finally understood what > (info "(elisp) Invisible Text") > was trying to tell me: > - first set the desired region(s) to an arbitrary symbol, like my-symbol: > (overlay-put (make-overlay beginning end) 'invisible 'my-symbol) > - next add this symbol to 'invisibility' spec : > (add-to-invisibility-spec 'my-symbol) > > After straighting this out I am now a happy camper, enjoying my uncluttered display. > > All the best, > > Christian > > > ar-hide-bracketed-in-line-atpt seems vanished indeed, something got broken. Thanks pointing at. Andreas