From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Josef Urban Newsgroups: gmane.emacs.devel Subject: Re: Commenting invisible text Date: Thu, 30 Sep 2004 15:50:03 +0200 (CEST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1096552082 3116 80.91.229.6 (30 Sep 2004 13:48:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2004 13:48:02 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 30 15:47:53 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CD1Hl-0001Jz-00 for ; Thu, 30 Sep 2004 15:47:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD1O9-0000sR-FG for ged-emacs-devel@m.gmane.org; Thu, 30 Sep 2004 09:54:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD1O3-0000sL-5d for emacs-devel@gnu.org; Thu, 30 Sep 2004 09:54:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD1O2-0000s9-K5 for emacs-devel@gnu.org; Thu, 30 Sep 2004 09:54:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD1O2-0000s6-Hn for emacs-devel@gnu.org; Thu, 30 Sep 2004 09:54:22 -0400 Original-Received: from [195.113.20.71] (helo=smtp1.ms.mff.cuni.cz) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CD1HZ-0001ON-Fc for emacs-devel@gnu.org; Thu, 30 Sep 2004 09:47:41 -0400 Original-Received: from ktilinux.ms.mff.cuni.cz (ktilinux.ms.mff.cuni.cz [195.113.17.207]) by smtp1.ms.mff.cuni.cz (8.12.11/8.12.11) with ESMTP id i8UDldPT050042 for ; Thu, 30 Sep 2004 15:47:39 +0200 (CEST) (envelope-from urban@ktilinux.ms.mff.cuni.cz) Original-Received: from localhost (urban@localhost) by ktilinux.ms.mff.cuni.cz (8.11.6/linuxconf) with ESMTP id i8UDo4O16847 for ; Thu, 30 Sep 2004 15:50:04 +0200 Original-To: In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27701 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27701 > > 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