emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add a function to test for invisible characters?


From: Lennart Borgman (gmail)
Subject: Re: Add a function to test for invisible characters?
Date: Mon, 23 Jun 2008 21:34:43 +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

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]