GNU bug report logs - #846
Bug in handling invisible text, and bug in Pmail.

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Mon, 1 Sep 2008 06:20:03 UTC

Severity: normal

Tags: wontfix

Merged with 869

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 846 in the body.
You can then email your comments to 846 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Richard M. Stallman" <rms <at> gnu.org>
To: pmr <at> pajato.com, emacs-pretest-bug <at> gnu.org
Subject: Bug in handling invisible text, and bug in Pmail.
Date: Mon, 01 Sep 2008 02:11:33 -0400
In Pmail I had a message that looked like this
(I changed his host name for privacy's sake):

----------------------------------------------------------------------
To: rms <at> gnu.org
Subject: sorry that I was distracted with phone calls 
From: Brand <at> xyzxysxysbb.com
Reply-to: brand <at> xyzxysxysbb.com
Date: Thu, 21 Aug 2008 18:46:37 -0700
X-BABYL-V6-ATTRIBUTES: A------



Two other ideas to run past you when time permits.

/w

----------------------------------------------------------------------

and I wanted to copy that into an outgoing message.
So I typed C-x h M-w, went to *mail* and inserted it.
What this inserted appears below.  It was quite a surprise.

It seems there is a lot of invisible text at the beginning of
the buffer, and two different values of point display at the same
place on the screen.  These places are 934995 and 9351405.
(point-min) returns 934995, and that's where M-< moves point to.
Typing C-f C-b moves point to 9351405.  I gather that those two
positions surround the invisible text.	

I think this is a bug in the command loop's handling of invisible
text -- it should not be the case that C-f C-b changes point.

I think it is also a bug in Pmail.  Pmail should set the buffer boundaries
after that text, rather than making it invisible.

If Pmail is fixed, then it won't trigger the invisible text bug.
But I think it needs to be fixed anyway.


----------------------------------------------------------------------
From Brand <at> xyzxysxysbb.com  Fri Aug 22 01:11:22 2008
X-Coding-System: undecided-unix
Return-path: <Brand <at> xyzxysxysbb.com>
Envelope-to: rms <at> gnu.org
Delivery-date: Fri, 22 Aug 2008 01:11:22 -0400
Received: from mx10.gnu.org ([199.232.76.166]:43206)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <Brand <at> xyzxysxysbb.com>)
	id 1KWOvi-0001Cl-Jw
	for rms <at> gnu.org; Fri, 22 Aug 2008 01:11:22 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <Brand <at> xyzxysxysbb.com>)
	id 1KWOwz-0000Ti-Nv
	for rms <at> gnu.org; Fri, 22 Aug 2008 01:12:44 -0400
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python
X-Spam-Level: 
X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,
	FORGED_RCVD_HELO,NO_REAL_NAME autolearn=no version=3.1.0
Received: from sh.day.org ([198.102.73.65]:47087)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <Brand <at> xyzxysxysbb.com>)
	id 1KWOwz-0000T4-E6
	for rms <at> gnu.org; Fri, 22 Aug 2008 01:12:41 -0400
X-Client-Authorized: MaGic Cook1e
Received: from vree.xyzxysxysbb.com (sh.day.org [198.102.73.65])
	by sh.day.org (Postfix) with ESMTPS id 18A9EC6988A39
	for <rms <at> gnu.org>; Thu, 21 Aug 2008 22:12:38 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
	by vree.xyzxysxysbb.com (8.13.7/8.13.7) with ESMTP id m7M1kbEs004491
	for <rms <at> gnu.org>; Thu, 21 Aug 2008 18:46:46 -0700
Message-Id: <200808220146.m7M1kbEs004491 <at> vree.xyzxysxysbb.com>
To: rms <at> gnu.org
Subject: sorry that I was distracted with phone calls 
From: Brand <at> xyzxysxysbb.com
Reply-to: brand <at> xyzxysxysbb.com
Date: Thu, 21 Aug 2008 18:46:37 -0700
X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized.
X-BABYL-V6-ATTRIBUTES: A------



Two other ideas to run past you when time permits.

/w

----------------------------------------------------------------------




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 846 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: rms <at> gnu.org
Cc: 846 <at> debbugs.gnu.org
Subject: Re: Bug in C-n
Date: Mon, 01 Sep 2008 14:12:10 -0400
I can't reproduce this.  However, I fixed a similar bug a couple of days
ago; could you try to reproduce this problem with the latest sources?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #15 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: rms <at> gnu.org
Cc: 846 <at> debbugs.gnu.org, pmr <at> pajato.com, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#846: Bug in handling invisible text, and bug in Pmail.
Date: Mon, 01 Sep 2008 16:37:39 -0400
> I think this is a bug in the command loop's handling of invisible
> text -- it should not be the case that C-f C-b changes point.

There are various desirable behaviors w.r.t invisible text, and you
can't have them all at the same time.  I.e. the above "bug" is
a conscious decision.

It's been with us for a while now and hasn't caused any real bug report
yet (other than reports such as this one, that is; which complain on
principle rather than because of some real problem introduced by this
behavior).  So I'd rather leave it as is.

Now as for the Pmail-specific part of your bug-report, I can't help you
right now.  Is this different from Rmail's behavior?


        Stefan




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #25 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Richard M. Stallman" <rms <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>, 846 <at> debbugs.gnu.org
Cc: pmr <at> pajato.com, 846 <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org,
        bug-gnu-emacs <at> gnu.org
Subject: Re: bug#846: Bug in handling invisible text, and bug in Pmail.
Date: Mon, 01 Sep 2008 21:09:53 -0400
    > I think this is a bug in the command loop's handling of invisible
    > text -- it should not be the case that C-f C-b changes point.

    There are various desirable behaviors w.r.t invisible text, and you
    can't have them all at the same time.

I know that better than anyone, and I thought about this a long time.
The command loop used to have code to make sure that there weren't
two different possible point values that would display as the same place.

    It's been with us for a while now

Did you change my decision?  If so, when did that happen?

				      and hasn't caused any real bug report
    yet (other than reports such as this one, that is; which complain on
    principle rather than because of some real problem

It was a real problem, even though Pmail should not use invisible text
for this.  It led to confusing behavior in this case, and it will be
confusing in every case where invisible text is used.

If people have not complained, maybe it is because the use of 
invisible text is rare.  What other modes use invisible text?








Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #40 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: rms <at> gnu.org
Cc: 846 <at> debbugs.gnu.org, pmr <at> pajato.com, emacs-pretest-bug <at> gnu.org,
        bug-gnu-emacs <at> gnu.org
Subject: Re: bug#846: Bug in handling invisible text, and bug in Pmail.
Date: Mon, 01 Sep 2008 22:36:44 -0400
>> I think this is a bug in the command loop's handling of invisible
>> text -- it should not be the case that C-f C-b changes point.

>     There are various desirable behaviors w.r.t invisible text, and you
>     can't have them all at the same time.

> I know that better than anyone, and I thought about this a long time.
> The command loop used to have code to make sure that there weren't
> two different possible point values that would display as the same place.

When was that?  How did it do that?

>     It's been with us for a while now
> Did you change my decision?

What decision?

> If so, when did that happen?

The relevant piece of code is adjust_point_for_property, which used to
make point move over images and char-compositions and which I extended
in Emacs-22 (IIRC) to move over invisible text as well (making it
automatically somewhat-intangible).

> 				      and hasn't caused any real bug report
>     yet (other than reports such as this one, that is; which complain on
>     principle rather than because of some real problem

> It was a real problem, even though Pmail should not use invisible text
> for this.  It led to confusing behavior in this case, and it will be
> confusing in every case where invisible text is used.

Could you re-explain the problem you encountered, then?  Re-reading your
original bug-report I still can't see where this difference between point
before and after C-f C-b introduced a problem.

> If people have not complained, maybe it is because the use of 
> invisible text is rare.  What other modes use invisible text?

Indeed, most complaints around invisible text have to do with the
invisibility itself rather than details of how point is handed in
its presence.  So invisible text is rare because it's inherently
problematic (and should hence be avoided whenever possible).


        Stefan






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Merged 846 869. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 03 Sep 2008 16:10:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Reiner Steib <Reiner.Steib <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #57 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Reiner Steib <reinersteib+gmane <at> imap.cc>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 846 <at> debbugs.gnu.org, rms <at> gnu.org, pmr <at> pajato.com,
        bug-gnu-emacs <at> gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#846: Bug in handling invisible text, and bug in Pmail.
Date: Tue, 23 Sep 2008 22:44:49 +0200
On Tue, Sep 02 2008, Stefan Monnier wrote:

>> If people have not complained, maybe it is because the use of 
>> invisible text is rare.  What other modes use invisible text?
>
> Indeed, most complaints around invisible text have to do with the
> invisibility itself rather than details of how point is handed in
> its presence.  So invisible text is rare because it's inherently
> problematic (and should hence be avoided whenever possible).

Gnus message mode used invisible text to hide headers while composing
a news/mail message.  But it was changed to use narrowing instead:

,----[ gnus/ChangeLog ]
| 2004-11-22  Romain Francoise  <romain <at> orebokech.com>
| 
| 	* message.el (message-header-format-alist): Add `From' in list
| 	so that it can be sorted.
| 	(message-fix-before-sending): Widen and sort headers before
| 	sending.
| 	(message-hide-headers): Use narrowing to hide headers by moving
| 	them to the top of the buffer and narrowing to the region
| 	underneath.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Reiner Steib <Reiner.Steib <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#846; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Reiner Steib <Reiner.Steib <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Tags added: wontfix Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Thu, 26 Feb 2009 04:05:06 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 846 <at> debbugs.gnu.org and rms <at> gnu.org Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 28 Jul 2011 00:29:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 25 Aug 2011 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.