unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18263: Wrong type argument: markerp, nil
@ 2014-08-13 21:28 Yuriy Pitometsu
  2014-08-14  1:22 ` Glenn Morris
  2021-08-19 15:41 ` bug#18263: occur-edit-mode can lose its text properties Lars Ingebrigtsen
  0 siblings, 2 replies; 4+ messages in thread
From: Yuriy Pitometsu @ 2014-08-13 21:28 UTC (permalink / raw)
  To: 18263

[-- Attachment #1: Type: text/plain, Size: 322 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1895 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#18263: Wrong type argument: markerp, nil
  2014-08-13 21:28 bug#18263: Wrong type argument: markerp, nil Yuriy Pitometsu
@ 2014-08-14  1:22 ` Glenn Morris
  2014-08-14  1:29   ` Glenn Morris
  2021-08-19 15:41 ` bug#18263: occur-edit-mode can lose its text properties Lars Ingebrigtsen
  1 sibling, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2014-08-14  1:22 UTC (permalink / raw)
  To: Yuriy Pitometsu; +Cc: 18263

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#18263: Wrong type argument: markerp, nil
  2014-08-14  1:22 ` Glenn Morris
@ 2014-08-14  1:29   ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2014-08-14  1:29 UTC (permalink / raw)
  To: Yuriy Pitometsu; +Cc: 18263

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?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#18263: occur-edit-mode can lose its text properties
  2014-08-13 21:28 bug#18263: Wrong type argument: markerp, nil Yuriy Pitometsu
  2014-08-14  1:22 ` Glenn Morris
@ 2021-08-19 15:41 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-19 15:41 UTC (permalink / raw)
  To: Yuriy Pitometsu; +Cc: 18263

Yuriy Pitometsu <pitometsu@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@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-19 15:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-13 21:28 bug#18263: Wrong type argument: markerp, nil Yuriy Pitometsu
2014-08-14  1:22 ` Glenn Morris
2014-08-14  1:29   ` Glenn Morris
2021-08-19 15:41 ` bug#18263: occur-edit-mode can lose its text properties Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).