From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriele Nicolardi 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:39:04 +0100 Message-ID: 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> <383929c4-7921-1a8d-3e6c-29a753ad7e0f@gutov.dev> 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="37094"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 67124@debbugs.gnu.org To: Dmitry Gutov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 13 18:14:36 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 1r2aWB-0009QR-6l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Nov 2023 18:14:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2aW0-00033q-E4; Mon, 13 Nov 2023 12:14:24 -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 1r2aVw-00033D-Ok for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 12:14:21 -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 1r2aVw-0005v9-GF for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 12:14:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r2aWb-0005gb-NQ for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2023 12:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gabriele Nicolardi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Nov 2023 17:15: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.169989567521793 (code B ref 67124); Mon, 13 Nov 2023 17:15:01 +0000 Original-Received: (at 67124) by debbugs.gnu.org; 13 Nov 2023 17:14:35 +0000 Original-Received: from localhost ([127.0.0.1]:59275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2aWA-0005fP-8i for submit@debbugs.gnu.org; Mon, 13 Nov 2023 12:14:35 -0500 Original-Received: from smtp06.cbsolt.net ([185.97.217.45]:44116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r2Z2Z-00032r-Si for 67124@debbugs.gnu.org; Mon, 13 Nov 2023 10:39:57 -0500 Original-Received: from [10.0.2.15] (host-82-60-177-34.retail.telecomitalia.it [82.60.177.34]) by smtp06.cbsolt.net (Postfix) with ESMTPSA id 4STYWF6Y1Gz3wdM; Mon, 13 Nov 2023 16:39:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cbsolt.net; s=201504-di4k2w; t=1699889948; bh=VK9yN2AeRLCMXIpt2xtiGlfA9bXHAwg0HK9go0Lr6RQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BzHTiXKc9oLqVsi3G5GOcBnU85vdxQ6qNBVE8wym5UhA8yGbXaedLrYrH9BwGKo9F paDBE/oAaxD9SdYLOKGJs1H4HvEA4plBjRb3nTKLZDG3XJcAOhogduBZJOCz4OddIv SRSOCTF0bdb9n68CbNYTrjXjH8E5/hWcXN2gUWSE= Content-Language: en-US In-Reply-To: <383929c4-7921-1a8d-3e6c-29a753ad7e0f@gutov.dev> X-Mailman-Approved-At: Mon, 13 Nov 2023 12:14:33 -0500 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:274274 Archived-At: Ok, I'll wait for the next release, Thank you. Il 13/11/23 15:45, Dmitry Gutov ha scritto: > 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.