GNU bug report logs - #18263
occur-edit-mode can lose its text properties

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; Severity: minor; Reported by: Yuriy Pitometsu <pitometsu@HIDDEN>; dated Wed, 13 Aug 2014 21:38:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 18263) by debbugs.gnu.org; 14 Aug 2014 01:30:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 13 21:30:00 2014
Received: from localhost ([127.0.0.1]:42580 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XHjrb-0007sp-K0
	for submit <at> debbugs.gnu.org; Wed, 13 Aug 2014 21:29:59 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:51752 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rgm@HIDDEN>) id 1XHjrZ-0007sh-4D
 for 18263 <at> debbugs.gnu.org; Wed, 13 Aug 2014 21:29:57 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
 (envelope-from <rgm@HIDDEN>)
 id 1XHjrY-0001nG-8G; Wed, 13 Aug 2014 21:29:56 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Yuriy Pitometsu <pitometsu@HIDDEN>
Subject: Re: bug#18263: Wrong type argument: markerp, nil
References: <CAHL3MAW-x4T9TWwRKMJs+Br_7HusO1-Dv5O2+8m1KYULT-5rqQ@HIDDEN>
 <7lk36b3lwn.fsf@HIDDEN>
X-Spook: SAFE emc NATO SCUD missile Project Monarch Perl-RSA
X-Ran: (@960=Z0[;i+pxInX-8n).$w4)c07;Y1:$^y}KE`WUzpoq7\?%Re'SU%|IA,F[!/w>3{6e
X-Hue: blue
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 13 Aug 2014 21:29:55 -0400
In-Reply-To: <7lk36b3lwn.fsf@HIDDEN> (Glenn Morris's message of
 "Wed, 13 Aug 2014 21:22:32 -0400")
Message-ID: <fh61hvrh7w.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -5.7 (-----)
X-Debbugs-Envelope-To: 18263
Cc: 18263 <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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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: -5.7 (-----)

Glenn Morris wrote:

> The short answer is that replace-regexp removes the text properties that
> occur-edit-mode relies on.

I guess no-one expected you to edit the start of the line (the line
number prefix that is not part of the actual source buffer).
Maybe it should be read-only like the header line is
(though then you would still get an error trying to replace-regexp).
Or displayed using an overlay?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18263; Package emacs. Full text available.
Changed bug title to 'occur-edit-mode can lose its text properties' from 'Wrong type argument: markerp, nil' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 18263) by debbugs.gnu.org; 14 Aug 2014 01:22:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 13 21:22:35 2014
Received: from localhost ([127.0.0.1]:42570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XHjkR-0007fL-70
	for submit <at> debbugs.gnu.org; Wed, 13 Aug 2014 21:22:35 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:51626 ident=Debian-exim)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rgm@HIDDEN>) id 1XHjkP-0007fC-N5
 for 18263 <at> debbugs.gnu.org; Wed, 13 Aug 2014 21:22:34 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
 (envelope-from <rgm@HIDDEN>)
 id 1XHjkO-0006eh-TO; Wed, 13 Aug 2014 21:22:32 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Yuriy Pitometsu <pitometsu@HIDDEN>
Subject: Re: bug#18263: Wrong type argument: markerp, nil
References: <CAHL3MAW-x4T9TWwRKMJs+Br_7HusO1-Dv5O2+8m1KYULT-5rqQ@HIDDEN>
X-Spook: Aladdin CIA Ft. Bragg Honduras Osama Steve Case AGT. AMME
X-Ran: I{+9OThy9(q)9N8'*;&f;[hoIt2/tGpnR/^-2}>}f#pDos:\lDaF:n4?`rT9#'o*O*!&sq
X-Hue: magenta
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 13 Aug 2014 21:22:32 -0400
In-Reply-To: <CAHL3MAW-x4T9TWwRKMJs+Br_7HusO1-Dv5O2+8m1KYULT-5rqQ@HIDDEN>
 (Yuriy Pitometsu's message of "Thu, 14 Aug 2014 00:28:57 +0300")
Message-ID: <7lk36b3lwn.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -5.7 (-----)
X-Debbugs-Envelope-To: 18263
Cc: 18263 <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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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: -5.7 (-----)

Yuriy Pitometsu wrote:

> On pure Emacs:
> open some buffer M-s-o for occur
> then e for occur-edit-mode, then M-x replace-regexp [ ^I]+ RET SPC RET
> ;; try to replace excess spaces or tabs by just one space symbol in matched
> strings
>
> Error in minibuffer => Wrong type argument: markerp, nil

The short answer is that replace-regexp removes the text properties that
occur-edit-mode relies on.




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

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


Received: (at submit) by debbugs.gnu.org; 13 Aug 2014 21:37:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 13 17:37:47 2014
Received: from localhost ([127.0.0.1]:42425 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XHgEs-0001kp-OX
	for submit <at> debbugs.gnu.org; Wed, 13 Aug 2014 17:37:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58255)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <pitometsu@HIDDEN>) id 1XHg6U-0001WT-TN
 for submit <at> debbugs.gnu.org; Wed, 13 Aug 2014 17:29:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pitometsu@HIDDEN>) id 1XHg6O-00076C-OM
 for submit <at> debbugs.gnu.org; Wed, 13 Aug 2014 17:29:01 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:40568)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <pitometsu@HIDDEN>) id 1XHg6O-000761-MG
 for submit <at> debbugs.gnu.org; Wed, 13 Aug 2014 17:29:00 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59958)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <pitometsu@HIDDEN>) id 1XHg6N-0004Ea-Vi
 for bug-gnu-emacs@HIDDEN; Wed, 13 Aug 2014 17:29:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pitometsu@HIDDEN>) id 1XHg6M-00074o-Kb
 for bug-gnu-emacs@HIDDEN; Wed, 13 Aug 2014 17:28:59 -0400
Received: from mail-vc0-x232.google.com ([2607:f8b0:400c:c03::232]:52512)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <pitometsu@HIDDEN>) id 1XHg6M-00074d-FS
 for bug-gnu-emacs@HIDDEN; Wed, 13 Aug 2014 17:28:58 -0400
Received: by mail-vc0-f178.google.com with SMTP id la4so431337vcb.37
 for <bug-gnu-emacs@HIDDEN>; Wed, 13 Aug 2014 14:28:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=TcEQcxudUHt2YaNdF7H0wQhdVsn/JYWcwUY/MW64IFk=;
 b=Fy3DvVYeRccEj4OC944VwljShXCh9eQHsMk4E44Yu+WrJWC95LDQZtfN1H482AsDuz
 2jdIoGRB8euJMSOBezflwCJ8p2tFNlFzI0omwfqUW4YNW1ZUyj1wqEuiDU2kLEWXx7wc
 pvRM6tECx/jMpgZkigNFprZ9iEh7vm37WlyrBcctH6lRPR0ClnSIOoEZfBIz0muBYAcQ
 caQeFcq7E2mUSrZCfxSTPCXU7LWHaqtOIFtoB4qubwXQ1TUB4lEerWlsEKXs0Plktq47
 C8CQxkTkVXKnK2qU4OCkB7mGihLj8fnkCRiVyqyKF31Lq0iGXNxVT9FWJiqKYCb5Wiif
 fY9w==
MIME-Version: 1.0
X-Received: by 10.220.59.65 with SMTP id k1mr242457vch.22.1407965337454; Wed,
 13 Aug 2014 14:28:57 -0700 (PDT)
Received: by 10.220.152.18 with HTTP; Wed, 13 Aug 2014 14:28:57 -0700 (PDT)
Date: Thu, 14 Aug 2014 00:28:57 +0300
Message-ID: <CAHL3MAW-x4T9TWwRKMJs+Br_7HusO1-Dv5O2+8m1KYULT-5rqQ@HIDDEN>
Subject: Wrong type argument: markerp, nil
From: Yuriy Pitometsu <pitometsu@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary=001a11c29502cb8ff10500897950
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 13 Aug 2014 17:37:45 -0400
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: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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 (----)

--001a11c29502cb8ff10500897950
Content-Type: text/plain; charset=UTF-8

On pure Emacs:
open some buffer M-s-o for occur
then e for occur-edit-mode, then M-x replace-regexp [ ^I]+ RET SPC RET
;; try to replace excess spaces or tabs by just one space symbol in matched
strings

Error in minibuffer => Wrong type argument: markerp, nil
OS X, Emacs 24.3

-- 
  Best regards,
        Yuriy Pitomets

--001a11c29502cb8ff10500897950
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><span style=3D"color:rgb(64,64,64);font-family:Roboto=
,arial,sans-serif;font-size:13px;line-height:18.200000762939453px">On pure =
Emacs:</span><span style=3D"color:rgb(64,64,64);font-family:Roboto,arial,sa=
ns-serif;font-size:13px;line-height:18.200000762939453px"><br>
</span></div><span style=3D"color:rgb(64,64,64);font-family:Roboto,arial,sa=
ns-serif;font-size:13px;line-height:18.200000762939453px">open some buffer =
M-s-o for occur</span><br style=3D"color:rgb(64,64,64);font-family:Roboto,a=
rial,sans-serif;font-size:13px;line-height:18.200000762939453px">
<span style=3D"color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font=
-size:13px;line-height:18.200000762939453px">then e for occur-edit-mode, th=
en M-x replace-regexp [ ^I]+ RET SPC RET</span><br style=3D"color:rgb(64,64=
,64);font-family:Roboto,arial,sans-serif;font-size:13px;line-height:18.2000=
00762939453px">
<span style=3D"color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font=
-size:13px;line-height:18.200000762939453px">;; try to replace excess space=
s or tabs by just one space symbol in matched strings</span><br style=3D"co=
lor:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-size:13px;line-h=
eight:18.200000762939453px">
<br style=3D"color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font-s=
ize:13px;line-height:18.200000762939453px"><span style=3D"color:rgb(64,64,6=
4);font-family:Roboto,arial,sans-serif;font-size:13px;line-height:18.200000=
762939453px">Error in minibuffer =3D&gt; Wrong type argument: markerp, nil<=
/span><br style=3D"color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;=
font-size:13px;line-height:18.200000762939453px">
<span style=3D"color:rgb(64,64,64);font-family:Roboto,arial,sans-serif;font=
-size:13px;line-height:18.200000762939453px">OS X, Emacs 24.3</span><br cle=
ar=3D"all"><div><br></div>--=C2=A0<div>=C2=A0 Best regards,</div><div>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 Yuriy Pitomets</div>
<div>
<br></div></div>

--001a11c29502cb8ff10500897950--




Acknowledgement sent to Yuriy Pitometsu <pitometsu@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#18263; 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: Fri, 31 Oct 2014 17:00:04 UTC

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