From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "ken manheimer" Newsgroups: gmane.emacs.devel Subject: Re: Add a function to test for invisible characters? Date: Mon, 23 Jun 2008 16:21:29 -0400 Message-ID: <2cd46e7f0806231321s702ed051r7efbe7c2963ef651@mail.gmail.com> References: <485FC25F.4090407@gmail.com> <485FF15C.9000104@gmail.com> <485FFAD3.4010007@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214252508 1564 80.91.229.12 (23 Jun 2008 20:21:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 20:21:48 +0000 (UTC) Cc: Kenichi Handa , Emacs Devel , Stefan Monnier , Carsten Dominik To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 22:22:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KAsYW-0005bX-Qd for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 22:22:29 +0200 Original-Received: from localhost ([127.0.0.1]:38367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAsXh-0005ml-8Y for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 16:21:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAsXd-0005mP-I0 for emacs-devel@gnu.org; Mon, 23 Jun 2008 16:21:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAsXb-0005ly-LJ for emacs-devel@gnu.org; Mon, 23 Jun 2008 16:21:32 -0400 Original-Received: from [199.232.76.173] (port=49571 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAsXb-0005lv-FO for emacs-devel@gnu.org; Mon, 23 Jun 2008 16:21:31 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.236]:17437) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KAsXb-0006oC-6b for emacs-devel@gnu.org; Mon, 23 Jun 2008 16:21:31 -0400 Original-Received: by wx-out-0506.google.com with SMTP id h28so1032931wxd.24 for ; Mon, 23 Jun 2008 13:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Nx7FH67qZIxIyVoCHztMO0aRv0HKAODXVNMGu6typQo=; b=TbAl5qhUMzXlhDnIlKqMpNNQZBrVE8qJnBa8Ij2FjzeAeH/S9zLOoH7uSG0D7D0zMK DVpoAHFNl3bnnrzp5QbZx41EcHB++fM+G951t3SCdFrQ+9D2/v1SosgyaGpkPEDFrPN0 U06cHOJDZLweNClzJgWAnAc54PbWhX/pvRAzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=a8HhPlCJD7qkpHNsZ9rPDEY/EbL+gt5n7w7QRLtcBmIZJMsh3Bgg1+tUb9Skcbqdqj HomhHC+oxcqTcMDkTCnf8CUm5hGmFJeUqwNIlN+CQRxPEyz1uxvOnhcXiH69SF1ylxBm L4o41mAkgJDw0WedQeado3HbI7D4zeaUjqEJQ= Original-Received: by 10.143.33.12 with SMTP id l12mr4462064wfj.272.1214252489840; Mon, 23 Jun 2008 13:21:29 -0700 (PDT) Original-Received: by 10.114.201.14 with HTTP; Mon, 23 Jun 2008 13:21:29 -0700 (PDT) In-Reply-To: <485FFAD3.4010007@gmail.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99807 Archived-At: On Mon, Jun 23, 2008 at 3:34 PM, Lennart Borgman (gmail) wrote: > Lennart Borgman (gmail) wrote: >> >> Stefan Monnier wrote: >>>> >>>> I asked some time ago if a function to test if a character is >>>> invisible. I think nothing has been done to this, or am I mistaken? >>> >>> It's called `invisible-p'. >> >> >> Ah, thanks, there it is. Very nice. > > I grepped for "'invisible" to see if there were any places where this > should/could be used. In some cases I do not understand what should be done. > For example allout.el has > > (defsubst allout-hidden-p (&optional pos) > "Non-nil if the character after point is invisible." > (eq (get-char-property (or pos (point)) 'invisible) 'allout)) > > However here are a some that I think maybe should use invisible-p or perhaps > test a little bit more careful: > [...] i think you inferred correctly that i deliberately didn't use invisible-p. that's because i needed to detect points that are hidden specifically by allout, not for some other purpose. i guess i the docstring should be clearer about that. -- ken http://myriadicity.net