unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew Kurn <kurn@sfu.ca>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 10072@debbugs.gnu.org
Subject: bug#10072: 23.3; invisible text
Date: Sun, 20 Nov 2011 16:03:21 -0800	[thread overview]
Message-ID: <20111121000321.GA19808@sfu.ca> (raw)
In-Reply-To: <jwvbos6k29o.fsf-monnier+emacs@gnu.org>

On Sun 20 Nov 2011 15:30 -0500, Stefan Monnier wrote:
> 
> > Let me propose this wording:
> > -----------
[. . .]
> > ---------
> 
> Thanks.  I installed the text below instead (which is closer to what
> really happens).
> 

Sorry, but I didn't receive this latest version.  Could you re-send
it?



> > As an opinion, I add that it would be more intuitive if it worked
> > differently -- the way described in the original example -- but
> > I can live with this once it is clearly explained.  (The problem
> > is, of course, that ^X= should always name a visible character,
> > and the one that the cursor is over.)
> 
> The use of a block cursor that covers the "next visible char" indeed
> tends to make people assume that point is right before that visible
> char, but if you use a different cursor this is much less true.
> 


Agreed.


> In any case the driving factor is to try and avoid the case where
> self-insert-command inserts invisible text, which is also
> very confusing.  Another advantage of the current behavior is that it
> lets the author choose where to place point, by setting
> stickiness appropriately, so you can get Emacs to indeed place the
> cursor right in front of the next visible char.

Yes, I understand your thinking.

Right this moment, I don't have access to the latest version
of Emacs, so I am not sure of the relevance of this remark:
However, I was experimenting with invisibility in overlays
and I found it was possible to insert invisible text.  

I suspect that the philosophy of the command-loop-move-point
thingy is to move point so that invisible text will not be
inserted in /any/ case.  So there's another possible bug.


> 
> >> The code that moves point out of invisible chunks of text does not
> >> always work, indeed, because it is only applied to the current
> >> buffer (or maybe the selected-window?) after a command.
> > Yes, I see.  This might need clarification in the text also.
> 
> Fundamentally it's a bug, and I generally don't like to document bugs.


On this point I disagree with you very strongly.  It's much /more/
important to document bugs than any other aspect of the code.  I have
told several students this from time to time, and, like you, they
tend to resist the idea.

I gather that there is no great push on to remedy this behavior,
so this bug may hang around for some time . . .

Anyhow, I'm pretty happy with my improved understanding, so I'm
grateful for your help.  Are you a volunteer?  I guess that FSF
doesn't have enough money to employ a staff of programmers to
deal with this sort of correspondence.

Andrew






  reply	other threads:[~2011-11-21  0:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-18 19:14 bug#10072: 23.3; invisible text Andrew Kurn
2011-11-20  4:57 ` Stefan Monnier
2011-11-20 10:24   ` Andrew Kurn
2011-11-20 20:30     ` Stefan Monnier
2011-11-21  0:03       ` Andrew Kurn [this message]
2011-11-21  0:27         ` Drew Adams
2011-11-21 11:12           ` Andrew Kurn
2011-11-21  2:27         ` Stefan Monnier
2011-11-21 11:37           ` Andrew Kurn

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=20111121000321.GA19808@sfu.ca \
    --to=kurn@sfu.ca \
    --cc=10072@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).