emacs-devel
[Top][All Lists]
Advanced

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

Re: invisible


From: martin rudalics
Subject: Re: invisible
Date: Fri, 23 Nov 2007 22:52:12 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> It's the same as before: C-p skips lines 5 and 3 with rear-nonsticky
> nil, does not skip with rear-nonsticky t, and (forward-line -1) does not
> skip regardless of rear-nonstickiness.  I tested on GNU Emacs 23.0.50.1
> (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2007-11-21.  Could the
> differences between what you and I see be related to the EOL difference
> between MS Windows and Unix?  Can other users of these systems who are
> following this thread try these tests and report their observations?

Hmmm... I think I see why you don't see it.  With emacs -Q visit the
attached file, evaluate fl-1 and the first progn, move point before
line7 and do M-x fl-1 twice.  Undo the changes, evaluate the second
progn and do the same movement again.  Can you see the difference now?
line1
line2
line3
line4
line5
line6
line7

(defun fl-1 ()
  (interactive)
  (forward-line -1))

(progn
  (add-text-properties 12 13 '(invisible t))
  (add-text-properties 18 19 '(invisible t))
  (add-text-properties 24 25 '(invisible t))
  (add-text-properties 30 31 '(invisible t))
  (setq line-move-ignore-invisible nil))

(progn
  (add-text-properties 12 13 '(invisible t rear-nonsticky t))
  (add-text-properties 18 19 '(invisible t rear-nonsticky t))
  (add-text-properties 24 25 '(invisible t rear-nonsticky t))
  (add-text-properties 30 31 '(invisible t rear-nonsticky t))
  (setq line-move-ignore-invisible nil))

reply via email to

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