From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Commenting invisible text Date: Thu, 30 Sep 2004 15:57:40 -0400 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 1096574322 9143 80.91.229.6 (30 Sep 2004 19:58:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2004 19:58:42 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 30 21:58:30 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 1CD74Q-00033C-00 for ; Thu, 30 Sep 2004 21:58:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD7Ao-0006Fh-VR for ged-emacs-devel@m.gmane.org; Thu, 30 Sep 2004 16:05:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD7Ac-0006Fc-AZ for emacs-devel@gnu.org; Thu, 30 Sep 2004 16:04:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD7Ab-0006FQ-UG for emacs-devel@gnu.org; Thu, 30 Sep 2004 16:04:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD7Ab-0006FN-SK for emacs-devel@gnu.org; Thu, 30 Sep 2004 16:04:53 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD73f-0003bZ-I2 for emacs-devel@gnu.org; Thu, 30 Sep 2004 15:57:43 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 167D18282B4; Thu, 30 Sep 2004 15:57:43 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 074914AC06D; Thu, 30 Sep 2004 15:57:41 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id E89CA8CA23; Thu, 30 Sep 2004 15:57:40 -0400 (EDT) Original-To: Josef Urban In-Reply-To: (Josef Urban's message of "Thu, 30 Sep 2004 21:44:33 +0200 (CEST)") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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:27745 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27745 >> > 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