emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Wittern <cwittern@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: how to best make characters invisible in a org-derived mode
Date: Thu, 02 May 2013 07:58:21 +0900	[thread overview]
Message-ID: <51819E0D.5090001@gmail.com> (raw)
In-Reply-To: <5180C791.2050008@easy-emacs.de>

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

  reply	other threads:[~2013-05-01 22:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-27  3:29 how to best make characters invisible in a org-derived mode Christian Wittern
2013-04-30 19:37 ` John Hendy
2013-05-01  7:43 ` Andreas Röhler
2013-05-01 22:58   ` Christian Wittern [this message]
2013-05-02  5:49     ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51819E0D.5090001@gmail.com \
    --to=cwittern@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).