unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22575: 25.0.50; isearch-query-replace wrong type argument
@ 2016-02-07  1:36 Óscar Fuentes
  2016-02-08  0:50 ` Juri Linkov
  2021-02-07 16:52 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 3+ messages in thread
From: Óscar Fuentes @ 2016-02-07  1:36 UTC (permalink / raw)
  To: 22575


emacs -Q

In *scratch*, put the point at the beginning of the buffer and

M-x isearch-query-replace

The minibuffer shows

Wrong type argument: stringp, nil

The same happens if an isearch was previously executed. (From reading
the docstring, I don't know how isearch-query-replace is supposed to
work.)

In GNU Emacs 25.0.50.29 (x86_64-unknown-linux-gnu, X toolkit)
 of 2016-01-21 built on qcore
Repository revision: 5293d1bdb3e665a565af032a163004c976328cc2
Windowing system distributor 'The X.Org Foundation', version 11.0.11702000
System Description:	Ubuntu 15.10

Configured using:
 'configure --without-toolkit-scroll-bars --with-x-toolkit=lucid'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS LIBXML2
FREETYPE XFT ZLIB LUCID X11

Important settings:
  value of $LANG: C
  locale-coding-system: nil

Major mode: Emacs-Lisp






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

* bug#22575: 25.0.50; isearch-query-replace wrong type argument
  2016-02-07  1:36 bug#22575: 25.0.50; isearch-query-replace wrong type argument Óscar Fuentes
@ 2016-02-08  0:50 ` Juri Linkov
  2021-02-07 16:52 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2016-02-08  0:50 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: 22575

> In *scratch*, put the point at the beginning of the buffer and
>
> M-x isearch-query-replace
>
> The minibuffer shows
>
> Wrong type argument: stringp, nil
>
> The same happens if an isearch was previously executed. (From reading
> the docstring, I don't know how isearch-query-replace is supposed to
> work.)

It's easy to fix the error of a nil ‘isearch--current-buffer’ in
‘isearch-done’ (it's also reproducible by evaling just ‘(isearch-done)’).
But then with an empty search string initially, ‘isearch-query-replace’
will start replacements of an empty string.  So outside of isearch mode
it could be useful only with the last non-empty search string.





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

* bug#22575: 25.0.50; isearch-query-replace wrong type argument
  2016-02-07  1:36 bug#22575: 25.0.50; isearch-query-replace wrong type argument Óscar Fuentes
  2016-02-08  0:50 ` Juri Linkov
@ 2021-02-07 16:52 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-02-07 16:52 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: 22575

Óscar Fuentes <ofv@wanadoo.es> writes:

> In *scratch*, put the point at the beginning of the buffer and
>
> M-x isearch-query-replace
>
> The minibuffer shows
>
> Wrong type argument: stringp, nil

I'm unable to reproduce this in Emacs 28 (it instead replaces the
zero-length string with whatever you say it should), so I'm guessing
this has been fixed in the years since it was reported, and I'm closing
this bug report.  If this is still a problem, 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] 3+ messages in thread

end of thread, other threads:[~2021-02-07 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-07  1:36 bug#22575: 25.0.50; isearch-query-replace wrong type argument Óscar Fuentes
2016-02-08  0:50 ` Juri Linkov
2021-02-07 16:52 ` 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).