From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70882: 30.0.50; [PATCH] Print the real direction in the prompt for '(previous|next)-matching-history-element' Date: Sat, 18 May 2024 12:18:55 +0300 Message-ID: <86msoneav4.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21633"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70882@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 18 11:20:18 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 1s8GEk-0005RQ-4y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 May 2024 11:20:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8GET-0002fP-6X; Sat, 18 May 2024 05:20:01 -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 1s8GEQ-0002f8-Vm for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 05:19:59 -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 1s8GEQ-0002zG-NE for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 05:19:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8GEU-00009Q-1C for bug-gnu-emacs@gnu.org; Sat, 18 May 2024 05:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 May 2024 09:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70882-submit@debbugs.gnu.org id=B70882.1716023950533 (code B ref 70882); Sat, 18 May 2024 09:20:02 +0000 Original-Received: (at 70882) by debbugs.gnu.org; 18 May 2024 09:19:10 +0000 Original-Received: from localhost ([127.0.0.1]:60525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8GDe-00008X-2C for submit@debbugs.gnu.org; Sat, 18 May 2024 05:19:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8GDc-00008G-8P for 70882@debbugs.gnu.org; Sat, 18 May 2024 05:19:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8GDT-0002qt-Ip; Sat, 18 May 2024 05:18:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=U/e43ilWTJ2UzvJ3HyKHczZR/DV2Ofu0F/XKt/BdjL8=; b=Ery/RXOdPeT5 52wMP9t31McN0xjR8KBd/BWVVIMITpQumn6Ujn0QVtJnAG+UOyZiM3zHQGGjwl0JnH/6IZpwrfBgK vVID9QhAEBSSuE2VpWRzUmNRbfo3vH92DREfj0Kld8xXj6hlxmKFmjY8uc5ylkVgzjIwlXsOF6pN3 zu0nKXs9jNsSf8vQV8jW0BppoeXeUHcP0v5iINvwEsKFVfARR+I9SHQn/lh5knywcog0ZV3vtLzRz CkU3ym6LFO/lPiZ8rX9AljNm6Z8R/Qjdj/MUi2FYDmEh0l5ExbOpjC7cq/GoFiKk5/4BzLCrAF0xx /JihGb1ckRIVU5ndjNlBrQ==; In-Reply-To: (message from Jim Porter on Sat, 11 May 2024 11:53:18 -0700) 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:285302 Archived-At: > Date: Sat, 11 May 2024 11:53:18 -0700 > From: Jim Porter > > To see the problem, start from "emacs -Q": > > M-x > M-r ;; Emacs prompts "Previous element matching regexp:" > C-g > > M-- M-r ;; Emacs prompts "Previous element matching regexp:" (?!) > > In the last line, the prefix argument is negative, so the search will > actually be for the *next* matching element. The attached patch fixes > this so that the prompt message accounts for the prefix arg. > > While I was here, I also made 'next-matching-history-element' use > 'format-prompt' like its 'previous-...' sibling. Thanks, LGTM.