all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Josef Urban <urban@ktilinux.ms.mff.cuni.cz>
Subject: Re: Commenting invisible text
Date: Thu, 30 Sep 2004 15:50:03 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.33.0409301536100.14507-100000@ktilinux.ms.mff.cuni.cz> (raw)
In-Reply-To: <m14qlfncjj.fsf-monnier+emacs@gnu.org>


> > running 'comment-region on a block containing some invisible lines does 
> > not comment the invisible lines. I get this behavior with Hide/Show and 
> > also with other kinds of invisible text. 
> 
> Works for me,

Which Emacs version do you use? I have: 
"GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
2004-08-03 on raven, modified by Debian",
but the bug was also reported on some earlier SuSE version.
Here is a test example:

(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)))

the result is:
a
b
c;; 

if the fourth line is commented, it is:

;; a
;; b
;; c

Josef

  reply	other threads:[~2004-09-30 13:50 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 [this message]
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

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=Pine.LNX.4.33.0409301536100.14507-100000@ktilinux.ms.mff.cuni.cz \
    --to=urban@ktilinux.ms.mff.cuni.cz \
    /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.