GNU bug report logs - #21368
25.0.50; Core navigation commands fail in a multi-line intangible text with fringe

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Vitalie Spinu <spinuvit@HIDDEN>; dated Fri, 28 Aug 2015 15:48:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 31 Aug 2015 12:55:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 31 08:55:30 2015
Received: from localhost ([127.0.0.1]:43522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZWOcT-0006yS-AT
	for submit <at> debbugs.gnu.org; Mon, 31 Aug 2015 08:55:29 -0400
Received: from b2bfep13.mx.upcmail.net ([62.179.121.58]:59565)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <xdsl0000474440@HIDDEN>) id 1ZWOcQ-0006yJ-C8
 for 21368 <at> debbugs.gnu.org; Mon, 31 Aug 2015 08:55:27 -0400
Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep13.mx.upcmail.net
 (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP
 id <20150831125524.TEHF2939.b2bfep13-int.chello.at@HIDDEN>
 for <21368 <at> debbugs.gnu.org>; Mon, 31 Aug 2015 14:55:24 +0200
Received: from iznogoud.viz ([91.119.90.166]) by edge12.upcmail.net with edge
 id BQvQ1r0073bM2xX0CQvQ7N; Mon, 31 Aug 2015 14:55:24 +0200
X-SourceIP: 91.119.90.166
Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD))
 (envelope-from <wolfgang@HIDDEN>)
 id 1ZWOcN-000P8C-OP; Mon, 31 Aug 2015 14:55:23 +0200
From: Wolfgang Jenkner <wjenkner@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible
 text	with	fringe
Date: Mon, 31 Aug 2015 14:54:27 +0200
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <857foenmmh.fsf@HIDDEN>
 <87613xkiz5.fsf@HIDDEN> <85613xn4lu.fsf@HIDDEN>
 <87fv312e46.fsf@HIDDEN> <85twrhnddn.fsf@HIDDEN>
 <83lhcs250e.fsf@HIDDEN> <85mvx8olpv.fsf@HIDDEN>
Message-ID: <85egijipms.fsf@HIDDEN>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21368
Cc: spinuvit@HIDDEN, 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sun, Aug 30 2015, Wolfgang Jenkner wrote:

> On Sun, Aug 30 2015, Eli Zaretskii wrote:
>
> [I wrote]
>>> That's perhaps
>>> 
>>>   commit 84e0b7dad6f1a8e53261f9b96f5a9080fea681a4
>>>   Author: Stefan Monnier <monnier@HIDDEN>
>>>   Date:   Mon Apr 13 15:51:15 2015 -0400
>>> 
>>>   Deprecate `intangible' and `point-entered' properties
>>
>> I don't think so, because I have a build from May 1, and the problem
>> with backward-char is not there.
>
> Ah, sorry then.  In any case, using the stuff introduced by this change
> works for the OP's example.

I properly bisected commits for the month of May and it gives

  commit d090be146176e9acee89fdaadc86e2eb26209ef5
  Author: Stefan Monnier <monnier@HIDDEN>
  Date:   Wed May 27 11:52:28 2015 -0400

  Change inhibit-point-motion-hooks to t

  * src/textprop.c (syms_of_textprop): Default Vinhibit_point_motion_hooks
  to t and document it as obsolete.


Indeed, with the following definition (where both the `intangible' text
property and the use of `inhibit-point-motion-hooks' are deprecated now)
point is placed on the "f" of "fringe" (not on the "d" of "dummy"), and
so M-: (backward-char) works.

(defun insert-with-fringe ()
  (interactive)
  (let (inhibit-point-motion-hooks)
    (insert
     "      "
     (concat
      (propertize "fringe" 'display (list 'left-fringe 'filled-square font-lock-doc-face)
		  'intangible 'test)
      (propertize "dummy\n" 'display "AAA\n" 'font-lock-face font-lock-doc-face
		  'intangible 'test))
     "some more text")
    (previous-line)))


Of course, this is not really the original subject of this bug report,
I think...




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 30 Aug 2015 15:11:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 30 11:11:13 2015
Received: from localhost ([127.0.0.1]:42846 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZW4GH-0006Ej-6H
	for submit <at> debbugs.gnu.org; Sun, 30 Aug 2015 11:11:13 -0400
Received: from b2bfep14.mx.upcmail.net ([62.179.121.59]:45328)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <xdsl0000474440@HIDDEN>) id 1ZW4GF-0006EY-Ll
 for 21368 <at> debbugs.gnu.org; Sun, 30 Aug 2015 11:11:12 -0400
Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep14.mx.upcmail.net
 (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP
 id <20150830151110.NALJ11791.b2bfep14-int.chello.at@HIDDEN>
 for <21368 <at> debbugs.gnu.org>; Sun, 30 Aug 2015 17:11:10 +0200
Received: from iznogoud.viz ([91.119.127.41]) by edge11.upcmail.net with edge
 id B3B81r00S0tjEJ30B3B8c1; Sun, 30 Aug 2015 17:11:10 +0200
X-SourceIP: 91.119.127.41
Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD))
 (envelope-from <wolfgang@HIDDEN>)
 id 1ZW4GC-0000YS-1N; Sun, 30 Aug 2015 17:11:08 +0200
From: Wolfgang Jenkner <wjenkner@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible
 text	with	fringe
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <857foenmmh.fsf@HIDDEN>
 <87613xkiz5.fsf@HIDDEN> <85613xn4lu.fsf@HIDDEN>
 <87fv312e46.fsf@HIDDEN> <85twrhnddn.fsf@HIDDEN>
 <83lhcs250e.fsf@HIDDEN>
Date: Sun, 30 Aug 2015 17:11:08 +0200
In-Reply-To: <83lhcs250e.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 30 Aug
 2015 18:02:57 +0300")
Message-ID: <85mvx8olpv.fsf@HIDDEN>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21368
Cc: spinuvit@HIDDEN, 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sun, Aug 30 2015, Eli Zaretskii wrote:

[I wrote]
>> That's perhaps
>> 
>>   commit 84e0b7dad6f1a8e53261f9b96f5a9080fea681a4
>>   Author: Stefan Monnier <monnier@HIDDEN>
>>   Date:   Mon Apr 13 15:51:15 2015 -0400
>> 
>>   Deprecate `intangible' and `point-entered' properties
>
> I don't think so, because I have a build from May 1, and the problem
> with backward-char is not there.

Ah, sorry then.  In any case, using the stuff introduced by this change
works for the OP's example.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 30 Aug 2015 15:03:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 30 11:03:15 2015
Received: from localhost ([127.0.0.1]:42842 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZW48Z-00063j-5v
	for submit <at> debbugs.gnu.org; Sun, 30 Aug 2015 11:03:15 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:37821)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1ZW48X-00063b-3Q
 for 21368 <at> debbugs.gnu.org; Sun, 30 Aug 2015 11:03:13 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
 a-mtaout22.012.net.il (HyperSendmail v2007.08) id
 <0NTW00600HMP7L00@HIDDEN> for 21368 <at> debbugs.gnu.org;
 Sun, 30 Aug 2015 18:02:50 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NTW00511HSQL9C0@HIDDEN>;
 Sun, 30 Aug 2015 18:02:50 +0300 (IDT)
Date: Sun, 30 Aug 2015 18:02:57 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible
 text	with	fringe
In-reply-to: <85twrhnddn.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Wolfgang Jenkner <wjenkner@HIDDEN>
Message-id: <83lhcs250e.fsf@HIDDEN>
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <857foenmmh.fsf@HIDDEN>
 <87613xkiz5.fsf@HIDDEN> <85613xn4lu.fsf@HIDDEN>
 <87fv312e46.fsf@HIDDEN> <85twrhnddn.fsf@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 21368
Cc: spinuvit@HIDDEN, 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Wolfgang Jenkner <wjenkner@HIDDEN>
> Date: Sun, 30 Aug 2015 14:55:45 +0200
> Cc: 21368 <at> debbugs.gnu.org
> 
> On Sun, Aug 30 2015, Vitalie Spinu wrote:
> 
> > Prior to 1st of April 2015 the (backward-char 1) used to work with the above
> > example. Something changed between 1st of April and 1st of June and as a
> > consequence the point is now stuck even with the above example. I
> 
> That's perhaps
> 
>   commit 84e0b7dad6f1a8e53261f9b96f5a9080fea681a4
>   Author: Stefan Monnier <monnier@HIDDEN>
>   Date:   Mon Apr 13 15:51:15 2015 -0400
> 
>   Deprecate `intangible' and `point-entered' properties

I don't think so, because I have a build from May 1, and the problem
with backward-char is not there.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 30 Aug 2015 12:56:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 30 08:56:44 2015
Received: from localhost ([127.0.0.1]:42538 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZW2A8-0001yv-0T
	for submit <at> debbugs.gnu.org; Sun, 30 Aug 2015 08:56:44 -0400
Received: from b2bfep14.mx.upcmail.net ([62.179.121.59]:52174)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <xdsl0000474440@HIDDEN>) id 1ZW2A3-0001ye-BT
 for 21368 <at> debbugs.gnu.org; Sun, 30 Aug 2015 08:56:40 -0400
Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep14.mx.upcmail.net
 (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP
 id <20150830125637.MHKP11791.b2bfep14-int.chello.at@HIDDEN>
 for <21368 <at> debbugs.gnu.org>; Sun, 30 Aug 2015 14:56:37 +0200
Received: from iznogoud.viz ([91.119.127.41]) by edge11.upcmail.net with edge
 id B0wd1r00N0tjEJ30B0wd5H; Sun, 30 Aug 2015 14:56:37 +0200
X-SourceIP: 91.119.127.41
Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD))
 (envelope-from <wolfgang@HIDDEN>)
 id 1ZW2A0-0000Su-Sy; Sun, 30 Aug 2015 14:56:36 +0200
From: Wolfgang Jenkner <wjenkner@HIDDEN>
To: Vitalie Spinu <spinuvit@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
Date: Sun, 30 Aug 2015 14:55:45 +0200
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <857foenmmh.fsf@HIDDEN>
 <87613xkiz5.fsf@HIDDEN> <85613xn4lu.fsf@HIDDEN>
 <87fv312e46.fsf@HIDDEN>
Message-ID: <85twrhnddn.fsf@HIDDEN>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sun, Aug 30 2015, Vitalie Spinu wrote:

> Prior to 1st of April 2015 the (backward-char 1) used to work with the above
> example. Something changed between 1st of April and 1st of June and as a
> consequence the point is now stuck even with the above example. I

That's perhaps

  commit 84e0b7dad6f1a8e53261f9b96f5a9080fea681a4
  Author: Stefan Monnier <monnier@HIDDEN>
  Date:   Mon Apr 13 15:51:15 2015 -0400

  Deprecate `intangible' and `point-entered' properties

The change was documented in a NEWS entry:

** Obsolete text properties `intangible', `point-entered', and `point-left'.
Replaced by properties `cursor-intangible' and `cursor-sensor-functions',
implemented by the new `cursor-intangible-mode' and
`cursor-sensor-mode' minor modes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 30 Aug 2015 11:46:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 30 07:46:16 2015
Received: from localhost ([127.0.0.1]:42507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZW13w-0000LR-1I
	for submit <at> debbugs.gnu.org; Sun, 30 Aug 2015 07:46:16 -0400
Received: from mail-wi0-f174.google.com ([209.85.212.174]:35886)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <spinuvit@HIDDEN>) id 1ZW13t-0000LI-4v
 for 21368 <at> debbugs.gnu.org; Sun, 30 Aug 2015 07:46:13 -0400
Received: by wicfv10 with SMTP id fv10so40152261wic.1
 for <21368 <at> debbugs.gnu.org>; Sun, 30 Aug 2015 04:46:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:message-id:user-agent
 :mime-version:content-type;
 bh=9ntiDZngsmJ4ma3euBz7G+PrNWddK3paKO0/XLoHEHU=;
 b=hWWdEPqgyVxnVMYt7f5yI9kSuLuuRXMY4uYwpxVL5jMMFrIdFHNlsl7fuqJOU2lA0l
 HFkCoV5C3FkCsrmJ9khw2LHUtHLzgFxWuyFOvJK7z7QbJ2fx/E7Pac00Kh9IyWYBtBiO
 NK1S/5FlfRaBjualh5Sg4Ejnx0rVmDwDLQryCQurKaTC845yOrtqa+sPagNWyyMcsN+E
 6ww3KfQyZI45Cbq14eC3vEQni9t59WZHzKbbnxpIUj8kKivf+/nCIn99b3RTbY3yDMK5
 iCsCPJTIfwqxAOjsojP2xS8C17ILEWnOXvvp2BEwmlJ7nM6KWmkzZhrvlV3DPqv5iVW7
 sP4Q==
X-Received: by 10.180.9.162 with SMTP id a2mr13344006wib.95.1440935172502;
 Sun, 30 Aug 2015 04:46:12 -0700 (PDT)
Received: from localhost (ma-130-115-177-160.mobile-devices.eur.nl.
 [130.115.177.160])
 by smtp.gmail.com with ESMTPSA id lq9sm17034644wjb.35.2015.08.30.04.46.11
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 30 Aug 2015 04:46:11 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: Wolfgang Jenkner <wjenkner@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <857foenmmh.fsf@HIDDEN>
 <87613xkiz5.fsf@HIDDEN> <85613xn4lu.fsf@HIDDEN>
Date: Sun, 30 Aug 2015 13:46:17 +0200
Message-ID: <87fv312e46.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


>> On Sat, Aug 29 2015 23:53, Wolfgang Jenkner wrote:

> However, fd93edb from 2015-03-27 behaves in the same way as trunk does,
> in *scratch*, too.

It turned out to be more nuanced.

I can reproduce M-x (backward-char 1) behavior on emacs 24.3.1. So that's not
new. The new part shows only when the 'intangible property is set:

     
     (defun insert-with-fringe ()
       (interactive)
       (insert
        "      "
        (concat
         (propertize "fringe" 'display (list 'left-fringe 'filled-square font-lock-doc-face)
     		'intangible 'test)
         (propertize "dummy\n" 'display "AAA\n" 'font-lock-face font-lock-doc-face
     		'intangible 'test))
        "some more text")
       (previous-line))


Prior to 1st of April 2015 the (backward-char 1) used to work with the above
example. Something changed between 1st of April and 1st of June and as a
consequence the point is now stuck even with the above example. I wasn't able to
build emacs on commits between April 1st and June 1st.


  Vitalie




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 21:54:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 17:54:05 2015
Received: from localhost ([127.0.0.1]:42344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVo4a-0003p7-OQ
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 17:54:04 -0400
Received: from b2bfep16.mx.upcmail.net ([62.179.121.61]:50036)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <xdsl0000474440@HIDDEN>) id 1ZVo4Y-0003oh-EG
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 17:54:03 -0400
Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep16.mx.upcmail.net
 (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP
 id <20150829215238.LGSK28037.b2bfep16-int.chello.at@HIDDEN>
 for <21368 <at> debbugs.gnu.org>; Sat, 29 Aug 2015 23:52:38 +0200
Received: from iznogoud.viz ([85.127.80.152]) by edge11.upcmail.net with edge
 id Altq1r00L3HAcl90BltqTB; Sat, 29 Aug 2015 23:53:50 +0200
X-SourceIP: 85.127.80.152
Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD))
 (envelope-from <wolfgang@HIDDEN>)
 id 1ZVo4L-0000Kj-UD; Sat, 29 Aug 2015 23:53:50 +0200
From: Wolfgang Jenkner <wjenkner@HIDDEN>
To: Vitalie Spinu <spinuvit@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <857foenmmh.fsf@HIDDEN>
 <87613xkiz5.fsf@HIDDEN>
Date: Sat, 29 Aug 2015 23:53:49 +0200
In-Reply-To: <87613xkiz5.fsf@HIDDEN> (Vitalie Spinu's message of "Sat, 29
 Aug 2015 21:11:42 +0200")
Message-ID: <85613xn4lu.fsf@HIDDEN>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sat, Aug 29 2015, Vitalie Spinu wrote:

>> However, I tried your test case with emacs trunk fd93edb built on 2015-03-27
>
>> In particular, the first backward-char (however invoked) brings point (which
>> does not visually move) 6 positions back (from the "d" of "dummy" to the "f"
>> of "fringe"); the next backward-char moves point by one position back to the
>> last space character before "fringe".
>
> This doesn't happen in current trunk, M-: (backward-char 1) doesn't move the
> pointer.

I guess you tested this in the *scratch* buffer, whereas I tested it in
a fundamental-mode buffer.

In *scratch* point seems indeed to be stuck on the "d" of "dummy" while
in fundamental-mode the behaviour is like I described it above.

However, fd93edb from 2015-03-27 behaves in the same way as trunk does,
in *scratch*, too.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 20:14:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 16:14:41 2015
Received: from localhost ([127.0.0.1]:42315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVmWP-0001SY-4q
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 16:14:41 -0400
Received: from mtaout21.012.net.il ([80.179.55.169]:35090)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1ZVmWM-0001SM-FJ
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 16:14:39 -0400
Received: from conversion-daemon.a-mtaout21.012.net.il by
 a-mtaout21.012.net.il (HyperSendmail v2007.08) id
 <0NTV005000WMNL00@HIDDEN> for 21368 <at> debbugs.gnu.org;
 Sat, 29 Aug 2015 23:14:37 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NTV0051F1KCMN40@HIDDEN>;
 Sat, 29 Aug 2015 23:14:37 +0300 (IDT)
Date: Sat, 29 Aug 2015 23:14:42 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
In-reply-to: <871telkip4.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Vitalie Spinu <spinuvit@HIDDEN>
Message-id: <83y4gt26od.fsf@HIDDEN>
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <83oahq36al.fsf@HIDDEN>
 <87a8t9kj51.fsf@HIDDEN> <871telkip4.fsf@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Vitalie Spinu <spinuvit@HIDDEN>
> Cc: 21368 <at> debbugs.gnu.org
> Date: Sat, 29 Aug 2015 21:17:43 +0200
> 
> Well, I just recalled why I didn't use overlays when I wrote that visual
> breakpoints code about 5 years ago. I wanted the breakpoints to be moved with
> the text on copy/paste. With overlays that's not possible.

You can use overlays only for displaying the breakpoint, and use text
properties to indicate a breakpoint.

Or override the copy/paste commands to reinstate the overlay at the
new place.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 20:11:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 16:11:29 2015
Received: from localhost ([127.0.0.1]:42311 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVmTJ-0001Lo-HP
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 16:11:29 -0400
Received: from mtaout27.012.net.il ([80.179.55.183]:50001)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1ZVmTH-0001Ld-Lj
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 16:11:28 -0400
Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il
 (HyperSendmail v2007.08) id <0NTV0030019NLV00@HIDDEN> for
 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 23:08:18 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NTV00MS319TPY50@HIDDEN>; Sat, 29 Aug 2015 23:08:18 +0300 (IDT)
Date: Sat, 29 Aug 2015 23:11:32 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
In-reply-to: <87a8t9kj51.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Vitalie Spinu <spinuvit@HIDDEN>
Message-id: <83zj1926tn.fsf@HIDDEN>
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <83oahq36al.fsf@HIDDEN>
 <87a8t9kj51.fsf@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Vitalie Spinu <spinuvit@HIDDEN>
> Cc: 21368 <at> debbugs.gnu.org
> Date: Sat, 29 Aug 2015 21:08:10 +0200
> 
> > What is a relatively recent change?  The C-b part or the M-x part?
> 
> The M-x part. Aka, invoking `backward-char` from programs.

I wonder what change that could be.

> > text around.  (Btw, yet another solution is to disable line-move-visual in
> > these cases -- would that be a good idea in those real-life examples?)
> 
> So the core of the issue is `line-move-visual`?

Yes.  Without it, previous-line just goes to the previous physical
line.  With it, Emacs needs to decide where to put point, and that's
not easy when invisible text is involved, because we can only put
point on some buffer position.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 19:17:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 15:17:47 2015
Received: from localhost ([127.0.0.1]:42295 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVldL-0007zQ-2x
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 15:17:47 -0400
Received: from mail-wi0-f177.google.com ([209.85.212.177]:38605)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVldJ-0007zF-0C
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 15:17:45 -0400
Received: by wicne3 with SMTP id ne3so187808wic.1
 for <21368 <at> debbugs.gnu.org>; Sat, 29 Aug 2015 12:17:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=3oxjof6lJW9+yLU4NokhZkwx83ySa9Jy6W45b7A2GHE=;
 b=CMnTc9vIyAGEiIkoF/zRG1VV3Xjkdvl/N0WEb3eUPJ7/rlUXi8XXdN1y/e+alDoxml
 1bsTvPj5S+BtKsFJdRkhOwYy96avG5GOr0dNKkYw+wyDmBkSaY+D0RzRvjpy5z64V3BN
 oLXERtiSjFGnV0rOJFnW3cS6KUr1L25s/znsQyAXsHpv9KEiJzQhe8Vs6qmw868+Nd0T
 OKmtkO1woGLIwe7S3CzQWFH6KmMCgHZo8Lr0R1P5Qz20qKtPQQJa/9PENle2Cevgh5dW
 pl63woqIOvxbv9W88+O5Wdg5MHarQBXGxWxlhA75cKUkj3TfcenmG57+loiSsAP01yVs
 P4bw==
X-Received: by 10.194.121.131 with SMTP id lk3mr17308216wjb.77.1440875864491; 
 Sat, 29 Aug 2015 12:17:44 -0700 (PDT)
Received: from localhost ([143.176.214.220])
 by smtp.gmail.com with ESMTPSA id p3sm9808800wib.16.2015.08.29.12.17.43
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 29 Aug 2015 12:17:43 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <83oahq36al.fsf@HIDDEN>
 <87a8t9kj51.fsf@HIDDEN>
Date: Sat, 29 Aug 2015 21:17:43 +0200
In-Reply-To: <87a8t9kj51.fsf@HIDDEN> (Vitalie Spinu's message of "Sat, 29
 Aug 2015 21:08:10 +0200")
Message-ID: <871telkip4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)



>> On Sat, Aug 29 2015 21:08, Vitalie Spinu wrote:


>> Can't you use an overlay to show the bitmap on the fringe?  

> Indeed. Thanks. It will surely work for breakpoints use case.

Well, I just recalled why I didn't use overlays when I wrote that visual
breakpoints code about 5 years ago. I wanted the breakpoints to be moved with
the text on copy/paste. With overlays that's not possible.


  Vitalie




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 19:11:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 15:11:45 2015
Received: from localhost ([127.0.0.1]:42291 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVlXV-0007oM-CA
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 15:11:45 -0400
Received: from mail-wi0-f175.google.com ([209.85.212.175]:36612)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVlXU-0007oD-5Z
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 15:11:44 -0400
Received: by wicfv10 with SMTP id fv10so31132520wic.1
 for <21368 <at> debbugs.gnu.org>; Sat, 29 Aug 2015 12:11:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=j/9KVcOU2uk415VVFn+YbZP7gq1o+uqmwngQusY8m3k=;
 b=rpvztnKzMLI8rBdivXlfswQbB0n4XMKQ3FN8lrrU3A5dow+0bk+NbvMS5yC9drE+S7
 WJXXqTQc45kOZfMO6vvBqOu4/GzjsBJupTzsz/Gqpt61ktCjiep8KMp8GYo5lMAkTZDb
 JMqkcoJ+GRAh/SzYxb5z5l6mK1iiC0UGin5KIu8YE9NVoEpuc7LUZyOnWR6JedP2O2HR
 DVMnmfgawwIpmhEMqixyEH0pWR0EWI3U+h9UETYZz38dvtCbqcu+vjjzG9fdYrQP4UxL
 cFzghcyDt4+sU8UhEGkHMQyauq+OnrVBHbwiZyaHFTTIUnzkdvuTewoL3ApX/YZ26XU4
 sd5w==
X-Received: by 10.180.99.193 with SMTP id es1mr11503300wib.29.1440875503643;
 Sat, 29 Aug 2015 12:11:43 -0700 (PDT)
Received: from localhost ([143.176.214.220])
 by smtp.gmail.com with ESMTPSA id pe1sm9777040wic.20.2015.08.29.12.11.43
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 29 Aug 2015 12:11:43 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: Wolfgang Jenkner <wjenkner@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <857foenmmh.fsf@HIDDEN>
Date: Sat, 29 Aug 2015 21:11:42 +0200
In-Reply-To: <857foenmmh.fsf@HIDDEN> (Wolfgang Jenkner's message of
 "Sat, 29 Aug 2015 17:23:23 +0200")
Message-ID: <87613xkiz5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 21368
Cc: Eli Zaretskii <eliz@HIDDEN>, 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


> However, I tried your test case with emacs trunk fd93edb built on 2015-03-27

> In particular, the first backward-char (however invoked) brings point (which
> does not visually move) 6 positions back (from the "d" of "dummy" to the "f"
> of "fringe"); the next backward-char moves point by one position back to the
> last space character before "fringe".

This doesn't happen in current trunk, M-: (backward-char 1) doesn't move the
pointer.

  Vitalie





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 19:08:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 15:08:15 2015
Received: from localhost ([127.0.0.1]:42287 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVlU6-0007ge-MP
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 15:08:15 -0400
Received: from mail-wi0-f181.google.com ([209.85.212.181]:33613)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVlU4-0007gV-PT
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 15:08:13 -0400
Received: by wibay6 with SMTP id ay6so3305787wib.0
 for <21368 <at> debbugs.gnu.org>; Sat, 29 Aug 2015 12:08:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=OgKH1gYVRXrVvAQfKdejGYq26CvRG/HyOHckwfwFT8Y=;
 b=omh6F95Hl7A+dI3YfB/TjrWOpqN6mQrZHcZxwTt21vS/IVUcAfQeFSViKsDzOAYmoy
 UJ3k80HypBjbneYvaEvBEF2IT/T7+LmMN1ev0Rp/Xio/xCvT3l7nVlLx+8+wPPQvWT4d
 wRsQsN+LGhNdyW8tle1FVojBOwrf1wy8dFracKfyxD5X3VgcrhYrK9Agajdl40iZlNza
 N7CHrySnjpl3mWXqSVFGHXOS+mAE/qv+7Ww7RYtxuP6Ta78vnXti6ZmIQDpgK3ke5jus
 zbwXyImui2nL45c0Pxd4YAvRcFOAcDAk7XMB3LY0w7bhgSlNQDJEs4Gal0QdTZ7dWHTW
 zMVw==
X-Received: by 10.180.88.98 with SMTP id bf2mr10560173wib.90.1440875292255;
 Sat, 29 Aug 2015 12:08:12 -0700 (PDT)
Received: from localhost ([143.176.214.220])
 by smtp.gmail.com with ESMTPSA id ck18sm13981996wjb.47.2015.08.29.12.08.11
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sat, 29 Aug 2015 12:08:11 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN> <83oahq36al.fsf@HIDDEN>
Date: Sat, 29 Aug 2015 21:08:10 +0200
In-Reply-To: <83oahq36al.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 29 Aug
 2015 10:25:22 +0300")
Message-ID: <87a8t9kj51.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


>> On Sat, Aug 29 2015 10:25, Eli Zaretskii wrote:

> What is a relatively recent change?  The C-b part or the M-x part?

The M-x part. Aka, invoking `backward-char` from programs.


> Can't you use an overlay to show the bitmap on the fringe?  

Indeed. Thanks. It will surely work for breakpoints use case.

> text around.  (Btw, yet another solution is to disable line-move-visual in
> these cases -- would that be a good idea in those real-life examples?)

So the core of the issue is `line-move-visual`? Disabling `line-move-visual` in
all those rectangular grid scenarios won't be a problem.


   Vitalie




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 15:24:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 11:24:44 2015
Received: from localhost ([127.0.0.1]:42211 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVhzn-0002Mv-LK
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 11:24:43 -0400
Received: from b2bfep14.mx.upcmail.net ([62.179.121.59]:43285)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <xdsl0000474440@HIDDEN>) id 1ZVhzk-0002Mj-V8
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 11:24:41 -0400
Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep14.mx.upcmail.net
 (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP
 id <20150829152439.FMNZ11791.b2bfep14-int.chello.at@HIDDEN>
 for <21368 <at> debbugs.gnu.org>; Sat, 29 Aug 2015 17:24:39 +0200
Received: from iznogoud.viz ([85.127.80.152]) by edge11.upcmail.net with edge
 id AfQe1r01N3HAcl90BfQfwf; Sat, 29 Aug 2015 17:24:39 +0200
X-SourceIP: 85.127.80.152
Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD))
 (envelope-from <wolfgang@HIDDEN>)
 id 1ZVhzi-0000Tw-KU; Sat, 29 Aug 2015 17:24:38 +0200
From: Wolfgang Jenkner <wjenkner@HIDDEN>
To: Vitalie Spinu <spinuvit@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
Date: Sat, 29 Aug 2015 17:23:23 +0200
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN>
Message-ID: <857foenmmh.fsf@HIDDEN>
User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 21368
Cc: Eli Zaretskii <eliz@HIDDEN>, 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On Sat, Aug 29 2015, Vitalie Spinu wrote:

>>> On Fri, Aug 28 2015 22:45, Eli Zaretskii wrote:
>
>> The first two do work, you just need to invoke backward-char twice to
>> see the cursor move.  
>
> This is not happening with `M-x (backward-char 1)`. It does indeed work when
> backward-char is invoked interactively with C-b.
>
> This is a relatively recent change in behavior (past 2-3 months or so).


A recent change in behaviour would likely be due to my 68529c8 from Jun
3, which is a fix for vertical-motion.

However, I tried your test case with emacs trunk fd93edb built on
2015-03-27 (since that happens to be the the oldest version which I've
kept around) but it seems to behave in the same way as a recent version
of emacs (84a9787).

In particular, the first backward-char (however invoked) brings point
(which does not visually move) 6 positions back (from the "d" of "dummy"
to the "f" of "fringe"); the next backward-char moves point by one
position back to the last space character before "fringe".

By the way, (vertical-motion 0) instead of (previous-line) brings point
to the next (visual) line; this is perhaps a more direct test case for
the same thing.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 29 Aug 2015 07:25:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 29 03:25:24 2015
Received: from localhost ([127.0.0.1]:41963 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVaVw-0005z6-0U
	for submit <at> debbugs.gnu.org; Sat, 29 Aug 2015 03:25:24 -0400
Received: from mtaout25.012.net.il ([80.179.55.181]:35666)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1ZVaVs-0005yv-NW
 for 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 03:25:22 -0400
Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il
 (HyperSendmail v2007.08) id <0NTU00E001IFW400@HIDDEN> for
 21368 <at> debbugs.gnu.org; Sat, 29 Aug 2015 10:21:55 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NTU004CP1SHN6A0@HIDDEN>; Sat, 29 Aug 2015 10:21:55 +0300 (IDT)
Date: Sat, 29 Aug 2015 10:25:22 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
In-reply-to: <87io7zjclt.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Vitalie Spinu <spinuvit@HIDDEN>
Message-id: <83oahq36al.fsf@HIDDEN>
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
 <87io7zjclt.fsf@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Vitalie Spinu <spinuvit@HIDDEN>
> Cc: 21368 <at> debbugs.gnu.org
> Date: Sat, 29 Aug 2015 00:02:22 +0200
> 
> >> On Fri, Aug 28 2015 22:45, Eli Zaretskii wrote:
> 
> > The first two do work, you just need to invoke backward-char twice to
> > see the cursor move.  
> 
> This is not happening with `M-x (backward-char 1)`. It does indeed work when
> backward-char is invoked interactively with C-b.
> 
> This is a relatively recent change in behavior (past 2-3 months or so).

What is a relatively recent change?  The C-b part or the M-x part?

> > Is there some important real-life use case that needs this to work?
> > Otherwise, I'm inclined to leave this alone.  After all, it's not a
> > catastrophe: the next call to previous-line will go to the line you
> > want.
> 
> I have encountered this issue in 3 different projects. One is the implementation
> of visual breakpoints in ESS which look like this:
> 
>    https://ess-tracebug.googlecode.com/svn/trunk/img/breakpoint_types.PNG
> 
> For years I used to have a defadvice workaround along the following lines:
>      ...
>      (when (and (eq major-mode 'ess-mode)
>                 (get-text-property (point) 'intangible))
>       (backward-char 1))
>      add-do-it 
>      ...
> 
> With the new emacs dev the backward-char stopped working. That's why I am
> finally reporting this bug.

Can't you use an overlay to show the bitmap on the fringe?  IOW,
instead of the first display property, define an empty overlay
(i.e. overlay whose start and end positions are equal) with a
before-string that is propertized with a 'fringe' display property.
Here's an example, based on your original scenario:

  (defun insert-with-fringe ()
    (let ((pt (point))
	  ov)
      (insert
       "      "
       (propertize "dummy" 'display "AAA\n" 'font-lock-face font-lock-doc-face)
       "some more text")
      (setq ov (make-overlay (+ pt 5) (+ pt 5)))
      (overlay-put ov 'before-string
		   (propertize "fringe"
			       'display
			       (list 'left-fringe
				     'filled-square font-lock-doc-face)))
      (previous-line)))

This produces the same display as in your example, but has none of its
problems, because the situation with 2 consecutive display strings on
adjacent buffer positions is eliminated.

> Another real life use case is the yet unfinished image-display package where I
> attempted to build a grid of images with intangible segments and simply rely on
> emacs motion commands for navigation between cells. This didn't work properly
> because the vertical motion was jumping columns.
> 
> Another example is a spredsheet application for data manipulation where I have
> read-only cells which I want to navigate with standard emacs motion
> commands. Same design as above and the same problem.

OK, but if using overlays as shown above doesn't fill your needs,
please don't hold your breath for a quick solution.  It's a hard
problem, and the code that handles it is already too convoluted.
Visual line movement is a tough nut when there's a lot of invisible
text around.  (Btw, yet another solution is to disable
line-move-visual in these cases -- would that be a good idea in those
real-life examples?)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 28 Aug 2015 22:02:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 28 18:02:29 2015
Received: from localhost ([127.0.0.1]:41786 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVRjA-0000jZ-W8
	for submit <at> debbugs.gnu.org; Fri, 28 Aug 2015 18:02:29 -0400
Received: from mail-wi0-f169.google.com ([209.85.212.169]:33317)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVRj8-0000jR-K2
 for 21368 <at> debbugs.gnu.org; Fri, 28 Aug 2015 18:02:27 -0400
Received: by wiae7 with SMTP id e7so9063069wia.0
 for <21368 <at> debbugs.gnu.org>; Fri, 28 Aug 2015 15:02:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=sG41gbmz7yf3h/Z6hMsD+2EKgX29/6nILsjh2q90DV8=;
 b=jmrSWFGVKAZxg+xl9qj9BY17zfZUdahEkoQJv/jdJvUrhmY05B3YX3q5sD6d6xxoi9
 qiXsKaLF42JxtJg0M/M2mYu2xfYdyY4uOuee/HyX1euSqyX8CXq0u56HOzOtII/aMorW
 mQrvS1UZ7hqvFbLOhfLXaikphunu43hjnDRJcDnIHADneqnhN5SJDRbgHRdxq9DyKmAs
 O3bjnOX0vcoA0YGtvZkEpLWAKcTsqEoY/4NfF9OO55wS9EQGvb+jSGQdVuIEJtBHIipk
 +V0qxPeVg3uk1QIdF/5/NiLKAqDMx800lMOkBbnBtALEbKirHQEZ5pa+8qc4wEXgHFlN
 YxVw==
X-Received: by 10.180.81.100 with SMTP id z4mr6522104wix.8.1440799345774;
 Fri, 28 Aug 2015 15:02:25 -0700 (PDT)
Received: from localhost ([143.176.214.220])
 by smtp.gmail.com with ESMTPSA id w8sm5671362wiy.10.2015.08.28.15.02.24
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 28 Aug 2015 15:02:24 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
References: <87r3mnjtzl.fsf@HIDDEN> <83r3mn2o44.fsf@HIDDEN>
Date: Sat, 29 Aug 2015 00:02:22 +0200
In-Reply-To: <83r3mn2o44.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 28 Aug
 2015 22:45:47 +0300")
Message-ID: <87io7zjclt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)



>> On Fri, Aug 28 2015 22:45, Eli Zaretskii wrote:

> The first two do work, you just need to invoke backward-char twice to
> see the cursor move.  

This is not happening with `M-x (backward-char 1)`. It does indeed work when
backward-char is invoked interactively with C-b.

This is a relatively recent change in behavior (past 2-3 months or so).

> Is there some important real-life use case that needs this to work?
> Otherwise, I'm inclined to leave this alone.  After all, it's not a
> catastrophe: the next call to previous-line will go to the line you
> want.

I have encountered this issue in 3 different projects. One is the implementation
of visual breakpoints in ESS which look like this:

   https://ess-tracebug.googlecode.com/svn/trunk/img/breakpoint_types.PNG


For years I used to have a defadvice workaround along the following lines:

     ...
     (when (and (eq major-mode 'ess-mode)
                (get-text-property (point) 'intangible))
      (backward-char 1))
     add-do-it 
     ...

With the new emacs dev the backward-char stopped working. That's why I am
finally reporting this bug.


Another real life use case is the yet unfinished image-display package where I
attempted to build a grid of images with intangible segments and simply rely on
emacs motion commands for navigation between cells. This didn't work properly
because the vertical motion was jumping columns.

Another example is a spredsheet application for data manipulation where I have
read-only cells which I want to navigate with standard emacs motion
commands. Same design as above and the same problem.


   Vitalie





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at 21368 <at> debbugs.gnu.org:


Received: (at 21368) by debbugs.gnu.org; 28 Aug 2015 19:45:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 28 15:45:48 2015
Received: from localhost ([127.0.0.1]:41699 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVPau-0004TZ-BA
	for submit <at> debbugs.gnu.org; Fri, 28 Aug 2015 15:45:48 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:40239)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1ZVPar-0004TO-6d
 for 21368 <at> debbugs.gnu.org; Fri, 28 Aug 2015 15:45:46 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
 a-mtaout20.012.net.il (HyperSendmail v2007.08) id
 <0NTT00E004YZEI00@HIDDEN> for 21368 <at> debbugs.gnu.org;
 Fri, 28 Aug 2015 22:45:43 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0NTT00E375K7DJ40@HIDDEN>;
 Fri, 28 Aug 2015 22:45:43 +0300 (IDT)
Date: Fri, 28 Aug 2015 22:45:47 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#21368: 25.0.50;
 Core navigation commands fail in a multi-line intangible text
 with	fringe
In-reply-to: <87r3mnjtzl.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Vitalie Spinu <spinuvit@HIDDEN>
Message-id: <83r3mn2o44.fsf@HIDDEN>
References: <87r3mnjtzl.fsf@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 21368
Cc: 21368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Vitalie Spinu <spinuvit@HIDDEN>
> Date: Fri, 28 Aug 2015 17:46:54 +0200
> 
>  (defun insert-with-fringe ()
>    (insert
>     "      "
>     (concat
>      (propertize "fringe" 'display (list 'left-fringe 'filled-square font-lock-doc-face))
>      (propertize "dummy" 'display "AAA\n" 'font-lock-face font-lock-doc-face))
>     "some more text")
>    (previous-line))
> 
> Execute (insert-with-fringe). It should position the cursor just in front of the
> "AAA" string.
> 
> Now (backward-char 1) or (goto-char (1- (point))) don't have any effect, and
> (previous-line) goes to bol instead of the previous line.

The first two do work, you just need to invoke backward-char twice to
see the cursor move.  But "C-x =" will show you that backward-char did
move even after the first time.  The cursor doesn't move the first
time because you have buffer positions covered by a display property
that is displayed on the fringe, and the first backward-char moves
into those buffer positions.  This is nothing new: you can see it
whenever you use the fringe property without all the rest in this
scenario.  So this part of the behavior is not a bug.

The behavior of previous-line is indeed a bug, and it is hard to fix.

> It has to do with the trailing "\n" in "AAA\n". If that new line is removed,
> everything works as expected.

No, it's because you have 2 consecutive display properties, _and_ the
second one ends in a newline.  There's code in vertical-motion that
attempts to avoid the lossage when a display property includes
newlines, but the fringe display property before that defeats that
code.

Is there some important real-life use case that needs this to work?
Otherwise, I'm inclined to leave this alone.  After all, it's not a
catastrophe: the next call to previous-line will go to the line you
want.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Aug 2015 15:47:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 28 11:47:05 2015
Received: from localhost ([127.0.0.1]:41592 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZVLrt-0004Fm-Fw
	for submit <at> debbugs.gnu.org; Fri, 28 Aug 2015 11:47:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50985)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVLrr-0004Fe-Kv
 for submit <at> debbugs.gnu.org; Fri, 28 Aug 2015 11:47:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVLrq-0006YY-K8
 for submit <at> debbugs.gnu.org; Fri, 28 Aug 2015 11:47:03 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41721)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVLrq-0006YQ-Hb
 for submit <at> debbugs.gnu.org; Fri, 28 Aug 2015 11:47:02 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60958)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVLrm-000057-Mr
 for bug-gnu-emacs@HIDDEN; Fri, 28 Aug 2015 11:47:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVLrj-0006Uf-I3
 for bug-gnu-emacs@HIDDEN; Fri, 28 Aug 2015 11:46:58 -0400
Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:33583)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <spinuvit@HIDDEN>) id 1ZVLrj-0006U4-Aq
 for bug-gnu-emacs@HIDDEN; Fri, 28 Aug 2015 11:46:55 -0400
Received: by wiae7 with SMTP id e7so637456wia.0
 for <bug-gnu-emacs@HIDDEN>; Fri, 28 Aug 2015 08:46:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:mime-version:content-type;
 bh=JLgkH+CBhXMOujgQRGj2XMDOOyziDHhrV++bZeZBNQc=;
 b=Uf2lCQI4/3VlnpVUGZFV3i4JN9UYYqs3w5I1ue7A4221G0mnoT8qRlZMQnpadHLQob
 4Ptm3uKEUbStCgaGJb7p9C5aC1ZI4z3iK+KX0MpC9Ms68wrQZng1X3AYZm4IbbCtsuLq
 CkEGlC7Tp6sMyxpXdNLKMDdBG4b2XP4FiPLDec1bicBfLYFgn6E05AtrYByGmC5ykNY2
 GlD9oyeS3UkVmk0ZlYXkiYYW+4H/neLwTXpa7XDClMXnAJra6Pi39Lkh5yXCYuInkxp8
 ekHvhd7J40L1u7VOgPwYRh/KrOF5YuSCCryY/3Y9x/v/Xk0RZk1B1naEOtebNlaELJhq
 6arQ==
X-Received: by 10.180.108.175 with SMTP id hl15mr5382449wib.1.1440776814068;
 Fri, 28 Aug 2015 08:46:54 -0700 (PDT)
Received: from localhost (ma-130-115-177-160.mobile-devices.eur.nl.
 [130.115.177.160])
 by smtp.gmail.com with ESMTPSA id by17sm4336653wib.18.2015.08.28.08.46.53
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 28 Aug 2015 08:46:53 -0700 (PDT)
From: Vitalie Spinu <spinuvit@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.50;
 Core navigation commands fail in a multi-line intangible text with
 fringe
Date: Fri, 28 Aug 2015 17:46:54 +0200
Message-ID: <87r3mnjtzl.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


Hi,

 (defun insert-with-fringe ()
   (insert
    "      "
    (concat
     (propertize "fringe" 'display (list 'left-fringe 'filled-square font-lock-doc-face))
     (propertize "dummy" 'display "AAA\n" 'font-lock-face font-lock-doc-face))
    "some more text")
   (previous-line))

Execute (insert-with-fringe). It should position the cursor just in front of the
"AAA" string.

Now (backward-char 1) or (goto-char (1- (point))) don't have any effect, and
(previous-line) goes to bol instead of the previous line.

It has to do with the trailing "\n" in "AAA\n". If that new line is removed,
everything works as expected.


  Vitalie


In GNU Emacs 25.0.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2015-08-19 on galago
Repository revision: 481859ba71253725f4aed4877b89123e11aaef0c
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
System Description:	Ubuntu 14.10




Acknowledgement sent to Vitalie Spinu <spinuvit@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21368; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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