From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Osmo Karppinen Newsgroups: gmane.emacs.bugs Subject: bug#67209: [PATCH] /squery doesn't work in server buffer Date: Fri, 17 Nov 2023 13:33:28 +0200 Message-ID: <87h6lkwr5j.fsf__40576.3045929902$1700220876$gmane$org@pm.mail-host-address-is-not-set> References: <87a5reyga1.fsf@pm.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9375"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-erc@gnu.org To: 67209@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 17 12:34:33 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r3x7I-0002IT-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Nov 2023 12:34:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3x6r-0000Em-EV; Fri, 17 Nov 2023 06:34:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3x6o-0000E9-Tv; Fri, 17 Nov 2023 06:34:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3x6o-0002Bf-7v; Fri, 17 Nov 2023 06:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3x6n-0003Kr-Op; Fri, 17 Nov 2023 06:34:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87a5reyga1.fsf@pm.mail-host-address-is-not-set> Resent-From: Osmo Karppinen Original-Sender: "Debbugs-submit" Resent-CC: emacs-erc@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Nov 2023 11:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67209 X-GNU-PR-Package: emacs X-Debbugs-Original-Xcc: emacs-erc@gnu.org Original-Received: via spool by 67209-submit@debbugs.gnu.org id=B67209.170022081412788 (code B ref 67209); Fri, 17 Nov 2023 11:34:01 +0000 Original-Received: (at 67209) by debbugs.gnu.org; 17 Nov 2023 11:33:34 +0000 Original-Received: from localhost ([127.0.0.1]:45427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3x6M-0003KC-H0 for submit@debbugs.gnu.org; Fri, 17 Nov 2023 06:33:34 -0500 Original-Received: from fgw22-7.mail.saunalahti.fi ([62.142.5.83]:62325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3x6J-0003K0-2t for 67209@debbugs.gnu.org; Fri, 17 Nov 2023 06:33:32 -0500 Original-Received: from pm (85-76-9-231-nat.elisa-mobile.fi [85.76.9.231]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id 209365da-853d-11ee-a9de-005056bdf889; Fri, 17 Nov 2023 13:33:28 +0200 (EET) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274497 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Hello, Here is patch for /squery bug descriped earlier posts. Setting erc-cmd-SQUERY function property do-not-parse-args to true will fix that bug. Repository revision: c710bf48408aece9865eb07081ca93d905e3983d Repository branch: master System Description: Debian --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Fix-erc-cmd-SQUERY-bug-by-setting-property-do-not-pa.patch >From c710bf48408aece9865eb07081ca93d905e3983d Mon Sep 17 00:00:00 2001 From: Osmo Karppinen Date: Fri, 17 Nov 2023 12:31:50 +0200 Subject: [PATCH] Fix erc-cmd-SQUERY bug by setting property do-not-parse-args to true. --- lisp/erc/erc.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index edcfcf085e6..ef6d3e483d3 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -4592,6 +4592,8 @@ The rest of LINE is the message to send." The rest of LINE is the message to send." (erc-message "SQUERY" line)) +(put 'erc-cmd-SQUERY 'do-not-parse-args t) + (defun erc-cmd-NICK (nick) "Change current nickname to NICK." (erc-log (format "cmd: NICK: %s (erc-bad-nick: %S)" nick erc-bad-nick)) -- 2.42.0 --=-=-=--