From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#67124: 26.3; query-replace Arg out of range with comma option (at end-buffer) Date: Mon, 13 Nov 2023 16:45:36 +0200 Message-ID: <383929c4-7921-1a8d-3e6c-29a753ad7e0f@gutov.dev> References: <020a72b2-b896-4ecf-abab-111a6c1c9eac@medialab.sissa.it> <83cywfuwta.fsf@gnu.org> <83r0ktu4s7.fsf@gnu.org> <03fc7766-3d3a-394b-e08c-53eb136d40a6@gutov.dev> <83jzqlu3a6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9046"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: gabriele@medialab.sissa.it, 67124@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 13 15:46:39 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 1r2YD0-0002BT-MF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Nov 2023 15:46:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2YCj-0002UU-TA; Mon, 13 Nov 2023 09:46:21 -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 1r2YCi-0002Sn-Ib for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 09:46:20 -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 1r2YCi-0003ie-AC for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 09:46:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2YDN-0001AQ-Qc for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 09:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Nov 2023 14:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67124 X-GNU-PR-Package: emacs Original-Received: via spool by 67124-submit@debbugs.gnu.org id=B67124.16998867904352 (code B ref 67124); Mon, 13 Nov 2023 14:47:01 +0000 Original-Received: (at 67124) by debbugs.gnu.org; 13 Nov 2023 14:46:30 +0000 Original-Received: from localhost ([127.0.0.1]:57778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2YCs-000183-2v for submit@debbugs.gnu.org; Mon, 13 Nov 2023 09:46:30 -0500 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:43515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2YCp-00017N-NO for 67124@debbugs.gnu.org; Mon, 13 Nov 2023 09:46:28 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E8C073200908; Mon, 13 Nov 2023 09:45:39 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 13 Nov 2023 09:45:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1699886739; x=1699973139; bh=7vKUWH3Xaw6upcFaUmhXHMWm8CqEG20kkS2 VMhOopbo=; b=e5FcNPQB7JxTev4mBaQJhL9hgRJyS/N+DECxDQ5RewCKS6LNSdz +ULDSMYkcclCP0/LvP/1zIl4kLmhcIRVbVFLGCwXJS/+DvpmNog9gPfKefYzFecr BBI3VFyAkcfYWueGNQcv0vOJilSILL2InKVUsPxxSvNERVD7seMN+LbIuO6rcL3B P1inP3hu1eibk2iVJ06c7Vmqh+xf5MA89QDNJahYWMjxA5heQO3z+vdtD0ALPD4w P+G4rvBgzoJi0tcLndL5Oz4HCbDa4h64hClnh6iUC+04JPwPsJ9uZFjF/XaHnuvz Rk8cC2CYN82wPAs8A0W76l37ubLTg8jr/nA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1699886739; x=1699973139; bh=7vKUWH3Xaw6upcFaUmhXHMWm8CqEG20kkS2 VMhOopbo=; b=dJPUxwkKOu4Vmkk0WNwYdNhLN59va0N7UAKDjNf2vkLNU9R6R+R M9JSfdlbyyktpabzTG7nfb8j0Af7gbXJL46S7tb2XlgpZqFI4H7+MQlYX1qtAEG5 Ye/hzQByqhIiDtkBaWiE3LN6Y7YKru/kOJwjgRwmXDOU3+fCenVNQZNZNHIswTJt 05QNRVzjqnLETmzEOzrl9lziLgCw6tqImuJUiGw+Cdlw2L1PrwpCF5BCjkqdUcRa PgO0clWlrMYZl/n/vX7OmAtTfxbq7jV4dt+3/PH5tuDs17wKi3x83OBmS0oqiNNI DLpz0IXjB3vL8yvnNpA0hL0hMnwteITPK2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeftddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Nov 2023 09:45:37 -0500 (EST) Content-Language: en-US In-Reply-To: <83jzqlu3a6.fsf@gnu.org> 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:274266 Archived-At: On 13/11/2023 16:38, Eli Zaretskii wrote: >> Date: Mon, 13 Nov 2023 16:21:43 +0200 >> Cc:67124@debbugs.gnu.org >> From: Dmitry Gutov >> >> On 13/11/2023 16:06, Eli Zaretskii wrote: >>> [Please use Reply All to reply, so that the bug tracker is CC'ed.] >>>> Date: Sun, 12 Nov 2023 23:44:43 +0100 >>>> From: Gabriele Nicolardi >>>> >>>> I tested the patch on the MWE I sent to you. Thanks! >>>> >>>> Now I'm not sure what I should do. I write elisp code used by a production team. We use Emacs to >>>> format LaTeX documents of scientific papers. I don't control which version of Emacs my >>>> collaborators use. Do you have any suggestions? >>> I guess either wait for the next Emacs release or build your own >>> Emacs? >> I haven't examined the exact problem, but in such cases some people also >> either have workarounds in their own code, or supply "advices" for the >> core functions that work around the problem there. > Then maybe a simple replacement for the offending function, defined in > an init file, would also be a possible solution? Sure. Though it might be more reliable with advice, since they don't depend on the loading order. The problems I had in mind would be more subtle and independent of the choice between these two methods. Stefan's latest patch includes changes in search.c, so it might be difficult to work around in just Lisp. Again, I haven't examined the problem itself.