GNU bug report logs - #12490
24.2; Search inside Minibuffer don't work with M-x (M-x C-s)

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: Jakub Jankiewicz <jcubic@HIDDEN>; dated Sat, 22 Sep 2012 20:53:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 12490) by debbugs.gnu.org; 23 Sep 2012 09:29:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 23 05:29:09 2012
Received: from localhost ([127.0.0.1]:50254 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TFiUu-0007WP-ED
	for submit <at> debbugs.gnu.org; Sun, 23 Sep 2012 05:29:08 -0400
Received: from smtpo07.poczta.onet.pl ([213.180.142.138]:51300)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jcubic@HIDDEN>) id 1TFiUr-0007WE-7j
	for 12490 <at> debbugs.gnu.org; Sun, 23 Sep 2012 05:29:06 -0400
Received: from jcubic (aepi123.neoplus.adsl.tpnet.pl [79.191.138.123])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: jcubic@HIDDEN)
	by smtp.poczta.onet.pl (Onet) with ESMTPSA id 2352A2007A14C;
	Sun, 23 Sep 2012 11:27:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onet.pl; s=2011;
	t=1348392437; bh=DRKC1oLAg3Scd6vtWLKa6fTNbYqlsfUgV5Po/lEKvgE=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=mmMKuVagw46Ms4H/tKZzbfS3wo3Mt7+VudyuhfDYJMtSrT+555BZDOCiqw2skunCv
	LLQ86SiXhGZagmUrcZXa8nVO2iiVeH/ErDt0Ygh6oaE6Yd25VvsMcMdpibdWwsOXUq
	ekaAkqwWsy1cljYBdwnblKE/+HCkyw/eKZ1LD34M=
Date: Sun, 23 Sep 2012 11:27:13 +0200
From: Jakub Jankiewicz <jcubic@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#12490: 24.2; Search inside Minibuffer don't work with M-x
	(M-x C-s)
Message-ID: <20120923112713.14d50a9a@jcubic>
In-Reply-To: <87obkxod8c.fsf@HIDDEN>
References: <20120922224229.7baf7964@jcubic>
	<87obkxod8c.fsf@HIDDEN>
X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.6; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/dVUIdzn2pD6ZAZtLH7xLMqi";
	protocol="application/pgp-signature"
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: 12490
Cc: 12490 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.1 (-)

--Sig_/dVUIdzn2pD6ZAZtLH7xLMqi
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Awesome thanks, it work. I didn't want to modify the file so I put whole
function to my .emacs file.

On Sun, 23 Sep 2012 02:21:39 +0300
Juri Linkov <juri@HIDDEN> wrote:

> > I want to report, that most used function stop working in Emacs 24
> > (tested 2 versions 24.1.1 and latest 24.2.1). I use Search in
> > Mini buffer a lot (don't know if people use it or not). If you call
> > search C-s when inside minibuffer like C-h f C-s you can search the
> > content of Minibuffer like search for functions or for buffer name
> > to switch like C-x b C-s (better then ido mode). And in Emacs 24
> > M-x C-s stop working so I you can't search for interactive function
> > to execute anymore. It was working in 23.3 provided by Ubuntu
> > (package 23.3+1-1ubuntu4).
>=20
> Sorry, this feature has been removed by http://debbugs.gnu.org/5214
> and http://debbugs.gnu.org/5364
>=20
> But it's easy to restore it with a simple patch that prepends the
> current default value (a command at point) to the sorted list of
> all available command names:
>=20
> =3D=3D=3D modified file 'lisp/simple.el'
> --- lisp/simple.el	2012-09-22 20:53:16 +0000
> +++ lisp/simple.el	2012-09-22 23:20:41 +0000
> @@ -1352,9 +1352,15 @@ (defun read-extended-command ()
>  	     (lambda ()
>  	       ;; Get a command name at point in the original buffer
>  	       ;; to propose it after M-n.
> -	       (with-current-buffer (window-buffer
> (minibuffer-selected-window))
> -		 (and (commandp (function-called-at-point))
> -		      (format "%S" (function-called-at-point)))))))
> +	       (let ((def (with-current-buffer
> +			      (window-buffer
> (minibuffer-selected-window))
> +			    (and (commandp
> (function-called-at-point))
> +				 (format
> "%S" (function-called-at-point)))))
> +		     (all (sort (minibuffer-default-add-completions)
> +				(lambda (a b) (string< a b)))))
> +		 (if def
> +		     (cons def (delete def all))
> +		   all)))))
>      ;; Read a string, completing from and restricting to the set of
>      ;; all defined commands.  Don't provide any initial input.
>      ;; Save the command read on the extended-command history list.

--
Jakub Jankiewicz, Web Developer
http://jcubic.pl

--Sig_/dVUIdzn2pD6ZAZtLH7xLMqi
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJQXtXyAAoJEKWO5vEx+DATWe4H/jFhNVwOk8/ZV13MUKNhqlMu
E2jIMZ2OtVFsr0GwTSAh56XQt2hw8torghRzEogrMdE9D9EMkpXGxO58lj53V3Cp
lzWv247NJ/uF4VIcOVOcrDTkzD3lsFJGoxLkuHZJwIpmtPdC/WLspknJCuSqJ98C
E9YPsyuykz1rliStgw1DipKvw6YJnhXLSXovd8AVKIbie/fD4XsLEMD/owF7uH3P
+SmBNSBe9/NsJjv6oqRAT6wqC3Bw8R+JReh5AK2CkVjQ2ERuOo1qoqeZs+ii18m8
EE1blJ5uEKY8VzwJAExpgNXa2XTAPtcbJY+Sg0XlsxK9nO3drPUSe+7lYIAEB7k=
=8+og
-----END PGP SIGNATURE-----

--Sig_/dVUIdzn2pD6ZAZtLH7xLMqi--




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

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


Received: (at 12490) by debbugs.gnu.org; 22 Sep 2012 23:25:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 22 19:25:10 2012
Received: from localhost ([127.0.0.1]:49816 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TFZ4P-0002RC-Ve
	for submit <at> debbugs.gnu.org; Sat, 22 Sep 2012 19:25:10 -0400
Received: from ps18281.dreamhost.com ([69.163.218.105]:51908
	helo=ps18281.dreamhostps.com)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <juri@HIDDEN>) id 1TFZ4O-0002R5-1q
	for 12490 <at> debbugs.gnu.org; Sat, 22 Sep 2012 19:25:08 -0400
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id 9C781451CCEA;
	Sat, 22 Sep 2012 16:23:21 -0700 (PDT)
From: Juri Linkov <juri@HIDDEN>
To: Jakub Jankiewicz <jcubic@HIDDEN>
Subject: Re: bug#12490: 24.2;
	Search inside Minibuffer don't work with M-x (M-x C-s)
Organization: JURTA
References: <20120922224229.7baf7964@jcubic>
Date: Sun, 23 Sep 2012 02:21:39 +0300
In-Reply-To: <20120922224229.7baf7964@jcubic> (Jakub Jankiewicz's message of
	"Sat, 22 Sep 2012 22:42:29 +0200")
Message-ID: <87obkxod8c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 12490
Cc: 12490 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

> I want to report, that most used function stop working in Emacs 24
> (tested 2 versions 24.1.1 and latest 24.2.1). I use Search in
> Mini buffer a lot (don't know if people use it or not). If you call
> search C-s when inside minibuffer like C-h f C-s you can search the
> content of Minibuffer like search for functions or for buffer name to
> switch like C-x b C-s (better then ido mode). And in Emacs 24 M-x C-s
> stop working so I you can't search for interactive function to execute
> anymore. It was working in 23.3 provided by Ubuntu (package
> 23.3+1-1ubuntu4).

Sorry, this feature has been removed by http://debbugs.gnu.org/5214
and http://debbugs.gnu.org/5364

But it's easy to restore it with a simple patch that prepends the
current default value (a command at point) to the sorted list of
all available command names:

=== modified file 'lisp/simple.el'
--- lisp/simple.el	2012-09-22 20:53:16 +0000
+++ lisp/simple.el	2012-09-22 23:20:41 +0000
@@ -1352,9 +1352,15 @@ (defun read-extended-command ()
 	     (lambda ()
 	       ;; Get a command name at point in the original buffer
 	       ;; to propose it after M-n.
-	       (with-current-buffer (window-buffer (minibuffer-selected-window))
-		 (and (commandp (function-called-at-point))
-		      (format "%S" (function-called-at-point)))))))
+	       (let ((def (with-current-buffer
+			      (window-buffer (minibuffer-selected-window))
+			    (and (commandp (function-called-at-point))
+				 (format "%S" (function-called-at-point)))))
+		     (all (sort (minibuffer-default-add-completions)
+				(lambda (a b) (string< a b)))))
+		 (if def
+		     (cons def (delete def all))
+		   all)))))
     ;; Read a string, completing from and restricting to the set of
     ;; all defined commands.  Don't provide any initial input.
     ;; Save the command read on the extended-command history list.




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

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


Received: (at submit) by debbugs.gnu.org; 22 Sep 2012 20:52:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 22 16:52:24 2012
Received: from localhost ([127.0.0.1]:49696 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TFWgZ-0007I1-8x
	for submit <at> debbugs.gnu.org; Sat, 22 Sep 2012 16:52:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57171)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jcubic@HIDDEN>) id 1TFWYp-000774-6g
	for submit <at> debbugs.gnu.org; Sat, 22 Sep 2012 16:44:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jcubic@HIDDEN>) id 1TFWX7-0002iA-HJ
	for submit <at> debbugs.gnu.org; Sat, 22 Sep 2012 16:42:38 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham
	version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:37581)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jcubic@HIDDEN>) id 1TFWX7-0002i6-EF
	for submit <at> debbugs.gnu.org; Sat, 22 Sep 2012 16:42:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34345)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jcubic@HIDDEN>) id 1TFWX6-0001Vw-Dm
	for bug-gnu-emacs@HIDDEN; Sat, 22 Sep 2012 16:42:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jcubic@HIDDEN>) id 1TFWX5-0002hu-35
	for bug-gnu-emacs@HIDDEN; Sat, 22 Sep 2012 16:42:36 -0400
Received: from smtpo07.poczta.onet.pl ([213.180.142.138]:36484)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jcubic@HIDDEN>) id 1TFWX4-0002hf-OU
	for bug-gnu-emacs@HIDDEN; Sat, 22 Sep 2012 16:42:35 -0400
Received: from jcubic (aepb5.neoplus.adsl.tpnet.pl [79.191.131.5])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: jcubic@HIDDEN)
	by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3C274200A6BF0
	for <bug-gnu-emacs@HIDDEN>; Sat, 22 Sep 2012 22:42:31 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onet.pl; s=2011;
	t=1348346552; bh=3gzpoEOPk7YC3fXGBtg7oBIaMvdUR+fMyA1/WJmvYRw=;
	h=Date:From:To:Subject:Message-ID:Mime-Version:Content-Type;
	b=QPTC4jT24J5t8z/coziabvTavDo7XewVKBKJKLHQwfoWk0Y5hyLyNaDpDGyS5kJds
	PjZeUnLaS/HauDSJ43p8doW02ctpg7gu0RKS7f43GrnI59UUDTM1cxZQKUsPGzSXtu
	C43RRDuf1jHdhcZ7/mH7JRMooNBQCTumbgyoc9F0=
Date: Sat, 22 Sep 2012 22:42:29 +0200
From: Jakub Jankiewicz <jcubic@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.2; Search inside Minibuffer don't work with M-x (M-x C-s)
Message-ID: <20120922224229.7baf7964@jcubic>
X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.6; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/RysjYtdxD+=8ilsxpNciG+F";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -5.5 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 22 Sep 2012 16:52:22 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.5 (-----)

--Sig_/RysjYtdxD+=8ilsxpNciG+F
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hi,

I want to report, that most used function stop working in Emacs 24
(tested 2 versions 24.1.1 and latest 24.2.1). I use Search in
Mini buffer a lot (don't know if people use it or not). If you call
search C-s when inside minibuffer like C-h f C-s you can search the
content of Minibuffer like search for functions or for buffer name to
switch like C-x b C-s (better then ido mode). And in Emacs 24 M-x C-s
stop working so I you can't search for interactive function to execute
anymore. It was working in 23.3 provided by Ubuntu (package
23.3+1-1ubuntu4).

Exact symptoms:
$ emacs -Q
M-x C-s
Typing any character show "Failing I-search"

I used 24.1.1 but just compile latest GNU Emacs 24.2.1
(i686-pc-linux-gnu, GTK+ Version 2.24.6) and got the same result.

Jakub

--
Jakub Jankiewicz, Web Developer
http://jcubic.pl

--Sig_/RysjYtdxD+=8ilsxpNciG+F
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJQXiK2AAoJEKWO5vEx+DATtGgIAIpDDDcVMT1Fjz1X9S5WHX6X
bxru+/7hOaPVqVVhhbZ8fpw3QkFjYmh1Aa/tTSQ+32FQ0BCvbWqDPXC/Zj2yidIm
B8yNMGNfio6RcfCQlfZ2Nlsxg4TGmTduq0agkcJof0pzuKFsNvtxQPsPgDq38mGr
mNB2lbdMXANZ5Xurz2A5XBWk9WKyYoe6TVM+mHe2EThkByRTKQiK/zMAY8dpqBWf
XPudYLyXbh6Kgd1iSuIIKmnDuNGUsK78ImrOQasrvuXU7yETbw+Xz0iBqtpACH4w
rh33PzhRRmgLdhWWr+ZJqod1c4XxjLKm0PlTtCeyqLu7A7ZtaZEXea4DltsFUm8=
=BziU
-----END PGP SIGNATURE-----

--Sig_/RysjYtdxD+=8ilsxpNciG+F--




Acknowledgement sent to Jakub Jankiewicz <jcubic@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#12490; 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: Fri, 31 Oct 2014 17:00:04 UTC

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