unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sacha Chua <sacha@free.net.ph>
Subject: Re: last character on line different when behind invis text?
Date: 26 Aug 2002 13:12:49 +0800	[thread overview]
Message-ID: <87ofbq5hke.fsf@free.net.ph> (raw)
In-Reply-To: <200208260036.g7Q0aO912379@wijiji.santafe.edu>

Richard Stallman <rms@gnu.org> writes:

> What appears to have changed in CVS is that c-x = on the end of a line with
> invisible characters in it, actually reveals the last invisible character,
> instead of the new line.
> 
> Can you provide a precise test case?  It is not feasible to think
> about what's going on here without one.

Related test case:

Killing a line that ends with invisible text results in killing the
next line as well, even if it has visible text that is clearly not
part of the first line. To wit:

After an emacs -q, eval this in a scratch buffer:

(insert-string
   (concat
      "Line 1 with " (propertize "invisible text." 'invisible \t 'intangible t)
    "\nLine 2 with " (propertize "invisible text." 'invisible t 'intangible t)
    "\nLine 3 with visible text.\n"))

Output:
Line 1 with 
Line 2 with 
Line 3 with visible text.

Position point on line 1 (say, on the n) and kill the line.

I expect output to be:
Li
Line 2 with
Line 3 with visible text.

But output is:
Li

Strange. Please explain behavior of end-of-visible-line? I've been
staring at this piece of code and I know what it does, but not why it
makes sense to skip over visible characters that are part of a different
line.

-- 
Sacha Chua <sacha@free.net.ph> - 4 BS CS Ateneo geekette
interests: emacs, gnu/linux, wearables, teaching compsci

  reply	other threads:[~2002-08-26  5:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-24 13:59 last character on line different when behind invis text? Damien Elmes
2002-08-26  0:36 ` Richard Stallman
2002-08-26  5:12   ` Sacha Chua [this message]
2002-08-26  5:40     ` Damien Elmes
2002-08-29 15:28       ` Damien Elmes
2002-08-31 16:58       ` Richard Stallman
2002-09-06 15:41         ` Damien Elmes
2002-09-07 10:29           ` Richard Stallman
2002-09-10 15:25             ` Damien Elmes

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ofbq5hke.fsf@free.net.ph \
    --to=sacha@free.net.ph \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).