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

Previous Next

Package: emacs;

Reported by: Yuriy Pitometsu <pitometsu <at> gmail.com>

Date: Wed, 13 Aug 2014 21:38:01 UTC

Severity: minor

Done: Lars 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 18263 in the body.
You can then email your comments to 18263 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-gnu-emacs <at> gnu.org:
bug#18263; Package emacs. (Wed, 13 Aug 2014 21:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yuriy Pitometsu <pitometsu <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 13 Aug 2014 21:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Yuriy Pitometsu <pitometsu <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Wrong type argument: markerp, nil
Date: Thu, 14 Aug 2014 00:28:57 +0300
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18263; Package emacs. (Thu, 14 Aug 2014 01:23:01 GMT) Full text and rfc822 format available.

Message #8 received at 18263 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Yuriy Pitometsu <pitometsu <at> gmail.com>
Cc: 18263 <at> debbugs.gnu.org
Subject: Re: bug#18263: Wrong type argument: markerp, nil
Date: Wed, 13 Aug 2014 21:22:32 -0400
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.




Changed bug title to 'occur-edit-mode can lose its text properties' from 'Wrong type argument: markerp, nil' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 14 Aug 2014 01:25:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18263; Package emacs. (Thu, 14 Aug 2014 01:30:02 GMT) Full text and rfc822 format available.

Message #13 received at 18263 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Yuriy Pitometsu <pitometsu <at> gmail.com>
Cc: 18263 <at> debbugs.gnu.org
Subject: Re: bug#18263: Wrong type argument: markerp, nil
Date: Wed, 13 Aug 2014 21:29:55 -0400
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 <at> gnu.org:
bug#18263; Package emacs. (Thu, 19 Aug 2021 15:42:02 GMT) Full text and rfc822 format available.

Message #16 received at 18263 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Yuriy Pitometsu <pitometsu <at> gmail.com>
Cc: 18263 <at> debbugs.gnu.org
Subject: Re: bug#18263: occur-edit-mode can lose its text properties
Date: Thu, 19 Aug 2021 17:41:31 +0200
Yuriy Pitometsu <pitometsu <at> gmail.com> writes:

> 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

Glenn Morris <rgm <at> gnu.org> writes:

> 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?

In Emacs 28, the stuff at the start of the line (that shouldn't be
removed) has been made read-only, so it looks like somebody fixed this
in the years since it was reported, so I'm closing this bug report.  If
there's still issues in this area, please respond to the debbugs address
and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 18263 <at> debbugs.gnu.org and Yuriy Pitometsu <pitometsu <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 19 Aug 2021 15:42:02 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. (Fri, 17 Sep 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 273 days ago.

Previous Next


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