From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Add a function to test for invisible characters? Date: Mon, 23 Jun 2008 21:34:43 +0200 Message-ID: <485FFAD3.4010007@gmail.com> References: <485FC25F.4090407@gmail.com> <485FF15C.9000104@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214249714 23241 80.91.229.12 (23 Jun 2008 19:35:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2008 19:35:14 +0000 (UTC) Cc: Carsten Dominik , Kenichi Handa , Emacs Devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 23 21:35:59 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 1KArpT-0006Gf-My for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 21:35:55 +0200 Original-Received: from localhost ([127.0.0.1]:44193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAroe-0004nT-3V for ged-emacs-devel@m.gmane.org; Mon, 23 Jun 2008 15:35:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAroZ-0004n7-OG for emacs-devel@gnu.org; Mon, 23 Jun 2008 15:34:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAroZ-0004mv-A6 for emacs-devel@gnu.org; Mon, 23 Jun 2008 15:34:59 -0400 Original-Received: from [199.232.76.173] (port=57778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAroZ-0004ms-7T for emacs-devel@gnu.org; Mon, 23 Jun 2008 15:34:59 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:53864) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KAroY-0007tQ-Ko for emacs-devel@gnu.org; Mon, 23 Jun 2008 15:34:58 -0400 Original-Received: from c83-254-145-59.bredband.comhem.se ([83.254.145.59]:63653 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KAroW-0007DI-9J; Mon, 23 Jun 2008 21:34:57 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <485FF15C.9000104@gmail.com> X-Antivirus: avast! (VPS 080623-0, 2008-06-23), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.145.59 X-Scan-Result: No virus found in message 1KAroW-0007DI-9J. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KAroW-0007DI-9J de3fc0bc40f0a44948c36f61edd2839c X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:99805 Archived-At: 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: isearch.el (isearch-range-invisible) nxml-outln.el (nxml-outline-pre-adjust-point, nxml-outline-adjust-point, nxml-back-to-section-start) org-exp.el (org-find-visible, org-find-invisible) org.el (org-cycle, org-cycle-show-empty-lines, org-invisible-p, org-invisible-p2) outline.el (outline-invisible-p) ps-def.el (ps-generate-postscript-with-faces1) reveal.el (reveal-open-new-overlays) simple.el (newline, forward-visible-line, end-of-visible-line, move-end-of-line) mac-win.el (mac-ts-update-active-input-area) reftex-ref.el (reftex-show-entry) I have tried to cc the maintainers here.