[Top][All Lists]

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

Re: more problems with line-move

From: Richard Stallman
Subject: Re: more problems with line-move
Date: Thu, 04 Mar 2004 11:42:08 -0500

These problems don't happen for me.  Instead, what happens
for me is that `intangible' properties seem to have no effect.
What happened?

Anyway, to address the theoretical question of what C-n should do:

    What principle should get priority:

    1.  Try to avoid skipping lines if there are `tangible' characters on them.

    2.  Preserve the column.

I think #1 should get priority.  If there is any possible point
position in a line, C-n should move to than line.  Among the various
possible point positions in the line, it should choose the one
that comes closest to the desired column.

Date: Sun, 29 Feb 2004 21:36:55 -0600 (CST)
X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to
        address@hidden using -f
From: Luc Teirlinck <address@hidden>
To: address@hidden
Subject: more problems with line-move
Sender: address@hidden

The following problems are different from the ones discussed in the
related thread "invisible" in that they involve visible intangible.  I
mentioned such problems before (in October), but since we are
discussing line-move, it might be good to remember that these problems

Unlike invisible intangible, visible intangible seems to have no
problems with an intangible newline, as long as the character after
that newline is not intangible.  If it is intangible however, trouble

Visit the following file with emacs -q:

===File ~/lines=============================================

No trailing whitespace, but trailing newline.

M-: (put-text-property 10 18 'intangible t)
M-: (put-text-property 25 32 'intangible t)

Now there are several places where C-n and C-p get stuck.

Examples for C-n: the `line' of line2; the `l' of line5.

Example for C-p: the `i' of line6; Just after the `3' of line3.

Even if there were no such obvious bugs, there still would be the
question about what the appropriate bug free behavior should be.

What principle should get priority:

1.  Try to avoid skipping lines if there are `tangible' characters on them.

2.  Preserve the column.

For instance, with point on the `1' of line1, C-n goes to the very end
of line3, logical according to principle 2.  According to principle 1,
it should go to the `e' of line2.  The answer really depends on what
the `intangible' property is supposed to be used for.



Emacs-pretest-bug mailing list

reply via email to

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