From unknown Mon Aug 18 09:07:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22575: 25.0.50; isearch-query-replace wrong type argument Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2016 01:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22575 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 22575@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14548089996224 (code B ref -1); Sun, 07 Feb 2016 01:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2016 01:36:39 +0000 Received: from localhost ([127.0.0.1]:36199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSEHH-0001cJ-C0 for submit@debbugs.gnu.org; Sat, 06 Feb 2016 20:36:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45213) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSEHF-0001c6-Nu for submit@debbugs.gnu.org; Sat, 06 Feb 2016 20:36:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSEH9-0004RJ-Kc for submit@debbugs.gnu.org; Sat, 06 Feb 2016 20:36:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSEH9-0004RF-Hh for submit@debbugs.gnu.org; Sat, 06 Feb 2016 20:36:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSEH8-0006Xo-Oe for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 20:36:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSEH5-0004QT-Ii for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 20:36:30 -0500 Received: from smtp11.acens.net ([86.109.99.135]:48893 helo=smtp.movistar.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSEH5-0004Np-7d for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 20:36:27 -0500 X-CTCH-RefID: str=0001.0A0B0205.56B69F94.00C4, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Received: from qcore (83.38.42.1) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 56AAB89E00B6324A for bug-gnu-emacs@gnu.org; Sun, 7 Feb 2016 01:36:33 +0000 From: =?UTF-8?Q?=C3=93scar?= Fuentes Date: Sun, 07 Feb 2016 02:36:19 +0100 Message-ID: <87bn7tz4h8.fsf@telefonica.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 From unknown Mon Aug 18 09:07:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22575: 25.0.50; isearch-query-replace wrong type argument Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Feb 2016 01:36:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22575 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=C3=93scar?= Fuentes Cc: 22575@debbugs.gnu.org Received: via spool by 22575-submit@debbugs.gnu.org id=B22575.14548953035224 (code B ref 22575); Mon, 08 Feb 2016 01:36:03 +0000 Received: (at 22575) by debbugs.gnu.org; 8 Feb 2016 01:35:03 +0000 Received: from localhost ([127.0.0.1]:37764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSajH-0001M5-0A for submit@debbugs.gnu.org; Sun, 07 Feb 2016 20:35:03 -0500 Received: from sub3.mail.dreamhost.com ([69.163.253.7]:41438 helo=homiemail-a75.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aSajG-0001Ll-AA for 22575@debbugs.gnu.org; Sun, 07 Feb 2016 20:35:02 -0500 Received: from homiemail-a75.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTP id CFEDD5EC079; Sun, 7 Feb 2016 17:35:01 -0800 (PST) Received: from localhost.linkov.net (62.65.226.75.cable.starman.ee [62.65.226.75]) (Authenticated sender: jurta@jurta.org) by homiemail-a75.g.dreamhost.com (Postfix) with ESMTPA id EB3A95EC072; Sun, 7 Feb 2016 17:35:00 -0800 (PST) From: Juri Linkov Organization: LINKOV.NET References: <87bn7tz4h8.fsf@telefonica.net> Date: Mon, 08 Feb 2016 02:50:28 +0200 In-Reply-To: <87bn7tz4h8.fsf@telefonica.net> ("=?UTF-8?Q?=C3=93scar?= Fuentes"'s message of "Sun, 07 Feb 2016 02:36:19 +0100") Message-ID: <8737t4ngkj.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > 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 =E2=80=98isearch--current-buffer=E2=80= =99 in =E2=80=98isearch-done=E2=80=99 (it's also reproducible by evaling just =E2= =80=98(isearch-done)=E2=80=99). But then with an empty search string initially, =E2=80=98isearch-query-re= place=E2=80=99 will start replacements of an empty string. So outside of isearch mode it could be useful only with the last non-empty search string. From unknown Mon Aug 18 09:07:28 2025 X-Loop: help-debbugs@gnu.org Subject: bug#22575: 25.0.50; isearch-query-replace wrong type argument Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 16:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22575 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=C3=93scar?= Fuentes Cc: 22575@debbugs.gnu.org Received: via spool by 22575-submit@debbugs.gnu.org id=B22575.16127167475760 (code B ref 22575); Sun, 07 Feb 2021 16:53:03 +0000 Received: (at 22575) by debbugs.gnu.org; 7 Feb 2021 16:52:27 +0000 Received: from localhost ([127.0.0.1]:48593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nIQ-0001Up-PI for submit@debbugs.gnu.org; Sun, 07 Feb 2021 11:52:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:37760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nIO-0001Ua-7w for 22575@debbugs.gnu.org; Sun, 07 Feb 2021 11:52:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=arF+XNgZwlkZQP+iahF5/sdc1JSLvN4sQaCQ6kVoMa8=; b=VwlJvzXm1fwbZ8W3ReCEjX4DO9 aItDOjaPYq2XP+s+H2GTnNOVVwagoovE/Jb/wbdWl6A36E+NYsJn1rgda5fzGGM+88G4UVdDjMVTf 2STm5AJ5QdmIQSg/pjP497EM7VDFwSEZAzwRymcaRyrc/CzECacCn52qKKNJZ7bt3/gM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8nIC-0002WH-AR; Sun, 07 Feb 2021 17:52:18 +0100 From: Lars Ingebrigtsen References: <87bn7tz4h8.fsf@telefonica.net> X-Now-Playing: Kid Creole & The Coconuts's _Don't Take My Coconuts_: "Don't Take My Coconuts" Date: Sun, 07 Feb 2021 17:52:10 +0100 In-Reply-To: <87bn7tz4h8.fsf@telefonica.net> ("=?UTF-8?Q?=C3=93scar?= Fuentes"'s message of "Sun, 07 Feb 2016 02:36:19 +0100") Message-ID: <87ft273jnp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: =?UTF-8?Q?=C3=93scar?= Fuentes 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 c [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =C3=93scar Fuentes 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. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 07 11:52:31 2021 Received: (at control) by debbugs.gnu.org; 7 Feb 2021 16:52:31 +0000 Received: from localhost ([127.0.0.1]:48599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nIV-0001VK-Cd for submit@debbugs.gnu.org; Sun, 07 Feb 2021 11:52:31 -0500 Received: from quimby.gnus.org ([95.216.78.240]:37774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8nIU-0001Uh-4L for control@debbugs.gnu.org; Sun, 07 Feb 2021 11:52:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0X9I34i7OSkBPn3WtatFwhqt93fk1wMMkQzT/rB/+n8=; b=hGx8Ita61kj3Fhc/0u4ePUMBE3 LqzzvFrcfWRFiC/hA59rybudL/yeWDpF04W0LLpX1gS2P+qk0ZeJgJsvbtiVNY2DJt5q3p37sYCXt SaXtFhNdk/WKOrmp4gNucYlToD6T14x/jQRAm7P2pafPnOmVY3NCksvIZs/jS7Imqddo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l8nIM-0002WO-8I for control@debbugs.gnu.org; Sun, 07 Feb 2021 17:52:24 +0100 Date: Sun, 07 Feb 2021 17:52:20 +0100 Message-Id: <87eehr3jnf.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22575 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 22575 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 22575 quit