all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Commenting invisible text
Date: Thu, 30 Sep 2004 15:57:40 -0400	[thread overview]
Message-ID: <jwvhdpfr0ps.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0409302124140.17912-100000@ktilinux.ms.mff.cuni.cz> (Josef Urban's message of "Thu, 30 Sep 2004 21:44:33 +0200 (CEST)")

>> > Does not work for me either. Did you try the example?
>> Which example?  I didn't see any example,

> It is in my today's e-mail to which you have replied :-).
> (progn
>   (find-file "foo.el")
>   (insert "a\nb\n\c\n")
>   (put-text-property (point-min) (point-max) 'invisible t)
>   (comment-region (point-min) (point-max)))

Sorry, I missed that part.  You use a non-ellipsis invisible property, so
it's a different behavior than what you get with outline-minor-mode or
hs-minor-mode.

> I have now tried with the Emacs-CVS version also the original problem 
> with Hide/Show, and it really works properly. This probably means that 
> commenting invisible overlays already works, but not invisible text 
> properties. Is it the intended behavior?

No, overlays and text-properties behave just the same in this respect.
The issue is whether the invisible text is really invisible or whether it's
replaced by an ellipsis (i.e. "...").  And yes, it's the intended behavior.


        Stefan

      reply	other threads:[~2004-09-30 19:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-30  9:26 Commenting invisible text Josef Urban
2004-09-30 12:55 ` Stefan
2004-09-30 13:50   ` Josef Urban
2004-09-30 14:56     ` Stefan Monnier
2004-09-30 15:42       ` Josef Urban
2004-09-30 17:44         ` Stefan Monnier
2004-09-30 19:44           ` Josef Urban
2004-09-30 19:57             ` Stefan Monnier [this message]

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

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

  git send-email \
    --in-reply-to=jwvhdpfr0ps.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.