From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jakub Jankiewicz Newsgroups: gmane.emacs.bugs Subject: bug#12490: 24.2; Search inside Minibuffer don't work with M-x (M-x C-s) Date: Sun, 23 Sep 2012 11:27:13 +0200 Message-ID: <20120923112713.14d50a9a@jcubic> References: <20120922224229.7baf7964@jcubic> <87obkxod8c.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/dVUIdzn2pD6ZAZtLH7xLMqi"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1348392503 15102 80.91.229.3 (23 Sep 2012 09:28:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2012 09:28:23 +0000 (UTC) Cc: 12490@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 23 11:28:26 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TFiUD-0007zI-K8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Sep 2012 11:28:25 +0200 Original-Received: from localhost ([::1]:37432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFiU8-0005xs-Of for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Sep 2012 05:28:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFiU5-0005xa-2y for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 05:28:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFiU3-0005oh-M7 for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 05:28:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFiU3-0005oZ-BB for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 05:28:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFiVm-0007Xt-5d for bug-gnu-emacs@gnu.org; Sun, 23 Sep 2012 05:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jakub Jankiewicz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Sep 2012 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12490-submit@debbugs.gnu.org id=B12490.134839254928921 (code B ref 12490); Sun, 23 Sep 2012 09:30:02 +0000 Original-Received: (at 12490) by debbugs.gnu.org; 23 Sep 2012 09:29:09 +0000 Original-Received: from localhost ([127.0.0.1]:50254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFiUu-0007WP-ED for submit@debbugs.gnu.org; Sun, 23 Sep 2012 05:29:08 -0400 Original-Received: from smtpo07.poczta.onet.pl ([213.180.142.138]:51300) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFiUr-0007WE-7j for 12490@debbugs.gnu.org; Sun, 23 Sep 2012 05:29:06 -0400 Original-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@onet.pl) 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= In-Reply-To: <87obkxod8c.fsf@mail.jurta.org> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.6; i686-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64809 Archived-At: --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 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--