GNU bug report logs - #64788
29.0.92; M-s and M-r don't search in "future history"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Eli Zaretskii <eliz@HIDDEN>; merged with #64839; dated Sat, 22 Jul 2023 08:23:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 64788 64839. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64788 <at> debbugs.gnu.org:


Received: (at 64788) by debbugs.gnu.org; 24 Jul 2023 18:19:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 24 14:19:11 2023
Received: from localhost ([127.0.0.1]:43990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qO09G-0001iG-Vk
	for submit <at> debbugs.gnu.org; Mon, 24 Jul 2023 14:19:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47766)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qO09D-0001hy-1o
 for 64788 <at> debbugs.gnu.org; Mon, 24 Jul 2023 14:19:09 -0400
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 <eliz@HIDDEN>)
 id 1qO095-0007cL-2E; Mon, 24 Jul 2023 14:19:00 -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=yCz4KAE1jvB7/pSQtSz4vhhtP3EXgdket9olleHWaQU=; b=QnZyLeFUuV+G
 4d11XJHlnpIRrYmMBysm0Gai+kNKT326EHDf9aXt5thX/qYYqtxt0kwhr5u9gQpKFJhMuxXP6g8nv
 OlgUYVIaAtz6jpkybDc36CA+IielMqUK0qBZvpCYXI5dSYuEpUFywmvQ5ASG9OcIBFETRnTHU9e9G
 91piL3VRu9jUod6M3hJdt0tgYnGGsD0fwI3B9k4eM0EzdlxH7d0Tz8PMJ4yot11zTq4ECIuc7iBv3
 iugPNvfvh9Wcm+N3VTcBSQySvLXL7jWJxOXUnRH7f5YPFK5Ijc9tp8dtf9c5hOvuvijdvXbv1vnGA
 IpbHCU5nqRqQ2ztXvb1q7Q==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qO08t-0002a8-B9; Mon, 24 Jul 2023 14:18:58 -0400
Date: Mon, 24 Jul 2023 21:19:31 +0300
Message-Id: <83jzupqij0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-Reply-To: <86lef55ich.fsf@HIDDEN> (message from Juri Linkov on
 Mon, 24 Jul 2023 20:29:02 +0300)
Subject: Re: bug#64788: 29.0.92; M-s and M-r don't search in "future history"
References: <831qh09wy4.fsf@HIDDEN> <86lef55ich.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64788
Cc: 64788 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: 64788 <at> debbugs.gnu.org
> Date: Mon, 24 Jul 2023 20:29:02 +0300
> 
> > Bottom line: M-n and M-p unexpectedly don't search "future history".
> 
> I suppose M-s and M-r.

Yes, sorry.

> OTOH, C-s and C-r search "future history" nicely.
> Why M-s and M-r don't use the same search functions as C-s and C-r?

I don't think I know the answer.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64788; Package emacs. Full text available.

Message received at 64788 <at> debbugs.gnu.org:


Received: (at 64788) by debbugs.gnu.org; 24 Jul 2023 17:37:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 24 13:37:15 2023
Received: from localhost ([127.0.0.1]:43970 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qNzUh-0006YO-BI
	for submit <at> debbugs.gnu.org; Mon, 24 Jul 2023 13:37:15 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:60407)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1qNzUc-0006Xo-Qi
 for 64788 <at> debbugs.gnu.org; Mon, 24 Jul 2023 13:37:11 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 3409620008;
 Mon, 24 Jul 2023 17:37:03 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64788: 29.0.92; M-s and M-r don't search in "future history"
In-Reply-To: <831qh09wy4.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 22 Jul
 2023 11:23:15 +0300")
Organization: LINKOV.NET
References: <831qh09wy4.fsf@HIDDEN>
Date: Mon, 24 Jul 2023 20:29:02 +0300
Message-ID: <86lef55ich.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 64788
Cc: 64788 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> To reproduce:
>
>   emacs -Q
>   C-h v
>   M-n
>
> Observe that a variable's name is inserted into the minibuffer; in my
> case it's "find-sibling-rules".  (It was inserted by
> minibuffer-default-add-completions.)
>
>   M-p
>
> Now the minibuffer is empty (except for the prompt), and
> find-sibling-rules is in "future history".
>
>   M-s sibling RET
>
> Surprise: instead of finding find-sibling-rules, this displays a
> message: "No later matching history element".
>
>   M-n
>   M-n
>
> Now we have 2 elements in the "future history", but:
>
>   M-r sibling RET
>
> signals an error: Wrong type argument: stringp, nil, instead of
> finding find-sibling-rules.
>
> Bottom line: M-n and M-p unexpectedly don't search "future history".

I suppose M-s and M-r.  OTOH, C-s and C-r search "future history" nicely.
Why M-s and M-r don't use the same search functions as C-s and C-r?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64788; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Jul 2023 08:22:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 22 04:22:46 2023
Received: from localhost ([127.0.0.1]:35426 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qN7t0-0004IW-8X
	for submit <at> debbugs.gnu.org; Sat, 22 Jul 2023 04:22:46 -0400
Received: from lists.gnu.org ([2001:470:142::17]:43816)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qN7sx-0004ID-Po
 for submit <at> debbugs.gnu.org; Sat, 22 Jul 2023 04:22:45 -0400
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 <eliz@HIDDEN>) id 1qN7ss-0008S7-4f
 for bug-gnu-emacs@HIDDEN; Sat, 22 Jul 2023 04:22:38 -0400
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 <eliz@HIDDEN>) id 1qN7sr-0003Da-T5
 for bug-gnu-emacs@HIDDEN; Sat, 22 Jul 2023 04:22:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to:
 references; bh=I0Y8tVx68Rwh7SbBnmhKAO7hRHBxvh6lrcUPl6Mh35E=; b=OLE4kj33+nrCiV
 dLs8/wtK1uqJ9usaW3vUcgWTrAeIGG5j3kZGP7l3BSi2mNC4v6Cm5v6MdNzsYnschkmeOo8zSACXb
 Jt8M5R7Hfpyo7AnhdNPuaNrEVJsDyLtVqVbXqVdYXQsTEPXYORhmJV8PJ8x0OY3iEhPGBb6olZ6h+
 6rn7mDOhr+IcMKp/feqPOD1KMGvABMjfgsyTh4O16BF2zOjoBCDB+koTs9FADeE+GXqfJq33QRFq7
 ZF7VddENytaty4SYi8dmKk1RWeJCp7qUvHO7XwokebhK/pX/2GEY+fqAS6iODTwjo2u+E3wavG5IV
 soLQmZduVV1eInDtO0Bw==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1qN7sr-0004oq-9j
 for bug-gnu-emacs@HIDDEN; Sat, 22 Jul 2023 04:22:37 -0400
Date: Sat, 22 Jul 2023 11:23:15 +0300
Message-Id: <831qh09wy4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.0.92; M-s and M-r don't search in "future history"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

To reproduce:

  emacs -Q
  C-h v
  M-n

Observe that a variable's name is inserted into the minibuffer; in my
case it's "find-sibling-rules".  (It was inserted by
minibuffer-default-add-completions.)

  M-p

Now the minibuffer is empty (except for the prompt), and
find-sibling-rules is in "future history".

  M-s sibling RET

Surprise: instead of finding find-sibling-rules, this displays a
message: "No later matching history element".

  M-n
  M-n

Now we have 2 elements in the "future history", but:

  M-r sibling RET

signals an error: Wrong type argument: stringp, nil, instead of
finding find-sibling-rules.

Bottom line: M-n and M-p unexpectedly don't search "future history".
Without that, adding all of the completion candidates to "future
history" is a misfeature when the list of candidates is very long.



In GNU Emacs 29.0.92 (build 50, i686-pc-mingw32) of 2023-07-22 built on
 HOME-C4E4A596F7
Repository revision: 101455cb8534d07518871c0287e4861e09f22a32
Repository branch: emacs-29
Windowing system distributor 'Microsoft Corp.', version 5.1.2600
System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600)

Configured using:
 'configure -C --prefix=/d/usr --with-wide-int
 --enable-checking=yes,glyphs 'CFLAGS=-O0 -gdwarf-4 -g3''

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY
W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1255

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
thingatpt help-fns radix-tree help-mode cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table
term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty
make-network-process emacs)

Memory information:
((conses 16 50421 10650)
 (symbols 48 6535 0)
 (strings 16 19656 2646)
 (string-bytes 1 444218)
 (vectors 16 9854)
 (vector-slots 8 152370 10526)
 (floats 8 27 34)
 (intervals 40 276 68)
 (buffers 888 12))




Acknowledgement sent to Eli Zaretskii <eliz@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#64788; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 25 Jul 2023 02:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.