all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-devel@gnu.org
Subject: Re: invisible
Date: Thu, 29 Nov 2007 00:23:20 +0100	[thread overview]
Message-ID: <87r6ia3qfr.fsf@escher.local.home> (raw)
In-Reply-To: 474C65FF.3070403@gmx.at

On Tue, 27 Nov 2007 19:46:23 +0100 martin rudalics <rudalics@gmx.at> wrote:

>> It turns out that it's also a good behavior in the sense that you can
>> get the other two behaviors (ignore all invisible text properties and
>> obey all invisible text properties) in the following way:
>>
>>    (let ((buffer-invisibility-spec nil)) (current-column))
>
> It's not just neat, it's splendid.  We can dispense with that
> rear-nonstickyness and DTRT with plain rear-sticky, invisible
> text.  Stephen, please try with the attached patch, it should
> work out of the box.

I'm afraid it did not, which puzzles me in view of the confidence you
expressed.  I wonder if we did something different again.  I did emacs
-Q, evalled line-move-finish and line-move-to-column with your patch
applied and evalled the sexps in your test file lmii.txt.  Here are the
results I got:

1. 
  i. with '(invisible t):
    fl-1
     Starting with point on or after the `l' of `line7', cursor moves
     to the `l' of line6, then the `l' of line4, then the `l' of line2,
     then the `l' of line1.
    C-p
    a. Starting with point on or after the `i' of `line7', cursor moves
       successively to the corresponding column of the preceding line.
    b. Starting with point on the `l' of `line7', cursor moves to the `l'
       of line6, then the `l' of line4, then the `l' of line2, then the
       `l' of line1.

  ii. with '(invisible t rear-nonsticky t):
    fl-1
     Starting with point on or after the `l' of `line7', cursor moves
     successively to the `l' of the preceding line.
    C-p
     Starting with point on the `l' of `line7', cursor moves
     successively to the corresponding column of the preceding line.

I also tested making line4 invisible (add-text-properties 19 25 ...),
which one of the original bug reports was about:

2. 
  i. with '(invisible t):
    fl-1
     Starting with point with point anywhere on line7, cursor moves
     successively to the `l' of the preceding line.
    C-p
     Starting with point anywhere on line7, cursor moves to the
     corresponding column of line6, then to the corresponding 
     column of line5, then to the `l' of line5, then back to the
     goal column in line3 and likewise with line2 and line1.
    C-n
     Starting with point anywhere on line1 or line2, cursor moves to the
     corresponding column of the next line.  Continuing from line3, C-n
     move cursor to the `l' of line5, and with the next C-n to the
     previous goal column in line5.  Subsequent C-n's move the cursor to
     the next line also at the same column.

  ii. with '(invisible t rear-nonsticky t):
    fl-1
     Starting with point with point anywhere on line7, cursor moves
     to the `l' of line6, then to the `l' of line5, then to the end of
     line3, then to the `l' of line2 and likewise line1.
    C-p
     Starting with point anywhere on line7, cursor moves to the
     corresponding column of line6, then to the corresponding column of
     line5, then to the `l' of line5, then to the end of line3, then
     back to the goal column in line2 and likewise in line1.
    C-n
     a. Starting with point on the `l' of line1, line2, or line3, cursor
        moves to the `l' of the next line.  Continuing with C-n at
        line3, cursor moves to the `i' of line5, then to the `l' of
        line6 and likewise line7.  However, if, after reaching the `i'
        line5 with C-n, I then type C-p, cursor moves first to the `l'
        of line5, then to the `l' of line3 (not, as above, to the end of
        line2), and to the `l' of line2 and line1.
     b. Starting with point on any position but the `l' of line1 or
        line2, cursor moves to the corresponding column of the next
        line.  Continuing from line3, cursor moves to the `l' of line5,
        then to the original goal column in line5 and likewise in line6
        and line7.

Steve Berman

  parent reply	other threads:[~2007-11-28 23:23 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040225.150142.12214540.kazu@iijlab.net>
     [not found] ` <q5gvfluxljk.fsf@lucent.com>
     [not found]   ` <200402282128.i1SLSuY15359@raven.dms.auburn.edu>
     [not found]     ` <200402290224.i1T2Oip15705@raven.dms.auburn.edu>
2007-11-09 21:59       ` invisible Stephen Berman
2007-11-18  0:35         ` invisible Stephen Berman
2007-11-18 15:27           ` invisible martin rudalics
2007-11-23 12:24             ` invisible Stephen Berman
2007-11-23 14:25               ` invisible martin rudalics
2007-11-23 18:19                 ` invisible Stephen Berman
2007-11-23 19:59                   ` invisible martin rudalics
2007-11-23 20:31                     ` invisible Stephen Berman
2007-11-23 21:52                       ` invisible martin rudalics
2007-11-23 23:04                         ` invisible Stephen Berman
2007-11-24  9:33                           ` invisible martin rudalics
2007-11-24 10:11                             ` invisible Johan Bockgård
2007-11-24 10:30                               ` invisible martin rudalics
2007-11-24 10:34                                 ` invisible martin rudalics
2007-11-24 19:50                             ` invisible Stephen Berman
2007-11-24 22:26                               ` invisible martin rudalics
2007-11-26  3:25                                 ` invisible Stefan Monnier
2007-11-26  8:02                                   ` invisible martin rudalics
2007-11-26 15:17                                     ` invisible Stefan Monnier
2007-11-26 19:10                                       ` invisible martin rudalics
2007-11-26 20:19                                         ` invisible Stefan Monnier
2007-11-26  3:20                             ` invisible Stefan Monnier
2007-11-26  7:59                               ` invisible martin rudalics
2007-11-26 15:29                                 ` invisible Stefan Monnier
2007-11-26 19:09                                   ` invisible martin rudalics
2007-11-26 20:16                                     ` invisible Stefan Monnier
2007-11-27 13:11                                       ` invisible martin rudalics
2007-11-27 18:46                                       ` invisible martin rudalics
2007-11-27 22:44                                         ` invisible Stefan Monnier
2007-11-28  9:16                                           ` invisible martin rudalics
2007-11-28 19:20                                             ` invisible Stefan Monnier
2007-11-28 22:41                                               ` invisible martin rudalics
2007-11-28 23:23                                         ` Stephen Berman [this message]
2007-11-29 10:15                                           ` invisible martin rudalics
2007-11-29 16:13                                             ` invisible Stefan Monnier
2007-11-29  1:04                                         ` invisible Richard Stallman
2007-11-29 10:26                                           ` invisible martin rudalics
2007-11-29 15:57                                             ` invisible Stefan Monnier
2007-11-29 16:36                                               ` invisible martin rudalics
2007-11-29 18:53                                                 ` invisible Stefan Monnier
2007-11-29 19:55                                                   ` invisible martin rudalics
2007-11-30 17:19                                               ` invisible martin rudalics
2007-11-30 18:59                                                 ` invisible Stefan Monnier
2007-11-30 22:09                                                   ` invisible martin rudalics
2007-12-01  3:11                                                     ` invisible Stefan Monnier
2007-12-01  9:44                                                       ` invisible martin rudalics
2007-12-01 20:41                                                         ` invisible Stefan Monnier
2007-12-02  1:15                                                           ` invisible Johan Bockgård
2007-12-02  9:47                                                           ` invisible martin rudalics
2007-11-23 14:37               ` invisible martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r6ia3qfr.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.