From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#72282: History entries shouldn't have the exact region hardwired in Date: Mon, 19 Aug 2024 09:49:13 +0300 Organization: LINKOV.NET Message-ID: <86y14thus6.fsf@mail.linkov.net> References: <87o76m1ilb.1.fsf@jidanni.org> <86v80tig7r.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21959"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 72282@debbugs.gnu.org To: Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 19 08:58:43 2024 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 1sfwLh-0005Uq-T6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Aug 2024 08:58:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfwLR-0003pv-Gt; Mon, 19 Aug 2024 02:58:25 -0400 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 1sfwLN-0003pc-SR for bug-gnu-emacs@gnu.org; Mon, 19 Aug 2024 02:58:21 -0400 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 1sfwLN-0007MA-JT for bug-gnu-emacs@gnu.org; Mon, 19 Aug 2024 02:58:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=ygj9dlIEIHwBxnIUHzCCFLE9wzGqIV42Pn+oJgwopwc=; b=vyUOjt7cdajGhJoNwnGZCHXUc1S7nd2J8C/oIYG+S2bd9FN8DLxrBtzFWLys3UcmeLs5m01CIhM5M3HFLovumB7OW0OzTlUY3KbocI8nGef6KgyK69XdgnkuWlao9IjDuABKm7jnyOM38S1iILxohC8rDUpKTq32gRR1oupOHSWF8OuH6cOMV5K+DdUM1eoW0gK1xCFnwN0FNp5PMKVOmb+V9FymtE9FjeBldEXy/32duZE9utIoza6up0B40QQZciVob0fSwcLNY+OTj7Ao7enTYmemuuAHiI15KN+5Y6S2yf9NJGWV8DZX04Ch8Mm11rYmhIMtP9ezj/X77DD8tQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfwM1-0001ve-Qj for bug-gnu-emacs@gnu.org; Mon, 19 Aug 2024 02:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Aug 2024 06:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72282 X-GNU-PR-Package: emacs Original-Received: via spool by 72282-submit@debbugs.gnu.org id=B72282.17240507217386 (code B ref 72282); Mon, 19 Aug 2024 06:59:01 +0000 Original-Received: (at 72282) by debbugs.gnu.org; 19 Aug 2024 06:58:41 +0000 Original-Received: from localhost ([127.0.0.1]:57535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfwLh-0001uz-6c for submit@debbugs.gnu.org; Mon, 19 Aug 2024 02:58:41 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:57059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfwLf-0001ue-GF for 72282@debbugs.gnu.org; Mon, 19 Aug 2024 02:58:39 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id CCF95240007; Mon, 19 Aug 2024 06:57:51 +0000 (UTC) In-Reply-To: <86v80tig7r.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 25 Jul 2024 21:12:44 +0300") X-GND-Sasl: juri@linkov.net 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:290372 Archived-At: >> So maybe for all history items, they shouldn't have the exact region hardwired in. > > Currently this can be achieved with a 'declare' form, > but I don't know why this is not enabled consistently > for region arguments of more commands: > > diff --git a/lisp/simple.el b/lisp/simple.el > @@ -4944,6 +4944,9 @@ shell-command-on-region > The differences are especially prominent when the region includes > more than one line, i.e. when piping to a shell commands with embedded > newlines." > + (declare (interactive-args > + (start (use-region-beginning)) > + (end (use-region-end)))) > (interactive (let (string) > (unless (mark) > (user-error "The mark is not set now, so there is no region")) Unfortunately, with this patch the bootstrap fails with: Loading lisp/simple.el (source)... Error: error ("Eager macro-expansion failure: (void-function seq-position)") Eager macro-expansion failure: (void-function seq-position) because seq.el is loaded after simple.el.