From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: Re: how to best make characters invisible in a org-derived mode Date: Thu, 02 May 2013 07:58:21 +0900 Message-ID: <51819E0D.5090001@gmail.com> References: <517B462D.5010408@gmail.com> <5180C791.2050008@easy-emacs.de> 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]:50869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXfyj-0006l0-Nq for emacs-orgmode@gnu.org; Wed, 01 May 2013 18:58:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXfyi-00087T-S5 for emacs-orgmode@gnu.org; Wed, 01 May 2013 18:58:25 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:43831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXfyi-00086Q-MB for emacs-orgmode@gnu.org; Wed, 01 May 2013 18:58:24 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz10so7546pad.30 for ; Wed, 01 May 2013 15:58:23 -0700 (PDT) Received: from mbp3.local (p4189-ipngn100407kyoto.kyoto.ocn.ne.jp. [180.48.107.189]) by mx.google.com with ESMTPSA id az5sm2394685pbc.18.2013.05.01.15.58.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 May 2013 15:58:22 -0700 (PDT) In-Reply-To: <5180C791.2050008@easy-emacs.de> 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 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 -- Christian Wittern, Kyoto