GNU bug report logs - #22575
25.0.50; isearch-query-replace wrong type argument

Previous Next

Package: emacs;

Reported by: Óscar Fuentes <ofv <at> wanadoo.es>

Date: Sun, 7 Feb 2016 01:37:02 UTC

Severity: normal

Found in version 25.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Óscar Fuentes <ofv <at> wanadoo.es>
Cc: 22575 <at> debbugs.gnu.org
Subject: Re: bug#22575: 25.0.50; isearch-query-replace wrong type argument
Date: Mon, 08 Feb 2016 02:50:28 +0200
> 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.




This bug report was last modified 4 years and 162 days ago.

Previous Next


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