From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Mail-Followup-To: jidanni@jidanni.org, 5364@debbugs.gnu.org Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2010 13:06:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@debbugs.gnu.org id=B.126330155028475 (code B ref -1); Tue, 12 Jan 2010 13:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jan 2010 13:05:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUgRR-0007PE-AT for submit@debbugs.gnu.org; Tue, 12 Jan 2010 08:05:49 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUgRP-0007P9-Tr for submit@debbugs.gnu.org; Tue, 12 Jan 2010 08:05:48 -0500 Received: from mx10.gnu.org ([199.232.76.166]:49143) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUgRK-0001uu-Vp for emacs-pretest-bug@gnu.org; Tue, 12 Jan 2010 08:05:43 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NUgRK-0006dW-7R for emacs-pretest-bug@gnu.org; Tue, 12 Jan 2010 08:05:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,NO_REAL_NAME autolearn=no version=3.1.0 Received: from caiajhbdcbbj.dreamhost.com ([208.97.132.119]:53918 helo=homiemail-a2.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUgRJ-0006d8-Sg for emacs-pretest-bug@gnu.org; Tue, 12 Jan 2010 08:05:42 -0500 Received: from jidanni.org (125-230-45-82.dynamic.hinet.net [125.230.45.82]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 49ABED271D for ; Tue, 12 Jan 2010 05:05:37 -0800 (PST) From: jidanni@jidanni.org To: emacs-pretest-bug@gnu.org Date: Tue, 12 Jan 2010 20:52:23 +0800 Message-ID: <87iqb77aew.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) OK, how would you execute this command that you see sitting in front of you? (list-load-path-shadows) I ended up doing x l i s t p - / That's because I am unable to just put the cursor on it and do M-x, as for some reason execute-extended-command won't prompt me for it even now these days. I recall the idea was rejected. Would you put the cursor after it, and hit C-x C-e? Well sorry. That will fire up the non interactive version, etc. In GNU Emacs 23.1.91.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 12 13:56:32 2010 Received: (at control) by debbugs.gnu.org; 12 Jan 2010 18:56:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUluq-0003eS-EJ for submit@debbugs.gnu.org; Tue, 12 Jan 2010 13:56:32 -0500 Received: from pantheon-po43.its.yale.edu ([130.132.50.104]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUluo-0003eM-Sz for control@debbugs.gnu.org; Tue, 12 Jan 2010 13:56:31 -0500 Received: from furry (dhcp128036014123.central.yale.edu [128.36.14.123]) (authenticated bits=0) by pantheon-po43.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0CIuCS3006158 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 12 Jan 2010 13:56:19 -0500 Received: by furry (Postfix, from userid 1000) id 2AAE5C05D; Tue, 12 Jan 2010 11:55:31 -0700 (MST) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 5364 wishlist Date: Tue, 12 Jan 2010 13:55:31 -0500 Message-ID: <871vhvp2zg.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) severity 5364 wishlist thanks From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2010 20:58:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126332982623570 (code B ref 5364); Tue, 12 Jan 2010 20:58:02 +0000 Received: (at 5364) by debbugs.gnu.org; 12 Jan 2010 20:57:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUnnW-000687-Gu for submit@debbugs.gnu.org; Tue, 12 Jan 2010 15:57:06 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUnnS-00067Z-3H for 5364@debbugs.gnu.org; Tue, 12 Jan 2010 15:57:03 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.34.19.cable.starman.ee [82.131.34.19]) by mx1.starman.ee (Postfix) with ESMTP id 98AB03F40D4; Tue, 12 Jan 2010 22:56:52 +0200 (EET) From: Juri Linkov To: jidanni@jidanni.org Organization: JURTA References: <87iqb77aew.fsf@jidanni.org> Date: Tue, 12 Jan 2010 22:54:34 +0200 In-Reply-To: <87iqb77aew.fsf@jidanni.org> (jidanni@jidanni.org's message of "Tue, 12 Jan 2010 20:52:23 +0800") Message-ID: <874omrvyb9.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.4 (---) Cc: 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) > OK, how would you execute this command that you see sitting in front of you? > (list-load-path-shadows) > > I ended up doing x l i s t p > - / > > That's because I am unable to just put the cursor on it and do M-x, as > for some reason execute-extended-command won't prompt me for it even now > these days. I recall the idea was rejected. The idea of adding a command to pull a string from the original buffer to the minibuffer was not rejected. The only problem is that we have to find a good keybinding. One proposal was to use `M-.', so when the cursor is on the string `list-load-path-shadows' you can type M-x M-. RET -- Juri Linkov http://www.jurta.org/emacs/ From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2010 22:47:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.12633363766061 (code B ref 5364); Tue, 12 Jan 2010 22:47:02 +0000 Received: (at 5364) by debbugs.gnu.org; 12 Jan 2010 22:46:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUpV9-0001Zi-Jn for submit@debbugs.gnu.org; Tue, 12 Jan 2010 17:46:15 -0500 Received: from caiajhbdccah.dreamhost.com ([208.97.132.207] helo=homiemail-a14.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUpV7-0001Zc-DI for 5364@debbugs.gnu.org; Tue, 12 Jan 2010 17:46:14 -0500 Received: from jidanni.org (218-163-2-5.dynamic.hinet.net [218.163.2.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTPSA id 2260E8C06A; Tue, 12 Jan 2010 14:46:08 -0800 (PST) From: jidanni@jidanni.org To: juri@jurta.org References: <874omrvyb9.fsf@mail.jurta.org> Date: Wed, 13 Jan 2010 06:46:04 +0800 Message-ID: <878wc3lz6b.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.4 (---) Cc: 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) >>>>> "JL" == Juri Linkov writes: >> OK, how would you execute this command that you see sitting in front of you? >> (list-load-path-shadows) >> for some reason execute-extended-command won't prompt me for it even now >> these days. I recall the idea was rejected. JL> The idea of adding a command to pull a string from the original buffer JL> to the minibuffer was not rejected. The only problem is that we have JL> to find a good keybinding. One proposal was to use `M-.', so when the JL> cursor is on the string `list-load-path-shadows' you can type JL> M-x M-. RET JL> -- JL> Juri Linkov JL> http://www.jurta.org/emacs/ Put the cursor on emacs-version and hit C-h v. One sees: Describe variable (default emacs-version): Now put the cursor upon (list-load-path-shadows) and hit C-h f. One sees: Describe function (default list-load-path-shadows): Now put the cursor upon (list-load-path-shadows) and hit M-x. One sees just: M-x One should see Execute function (default list-load-path-shadows): Currently one can hit TAB to get all the completions, so why not prompt with the most likely? JL> One proposal was to use... That's nice but first implement my idea please. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 00:37:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126334298818429 (code B ref 5364); Wed, 13 Jan 2010 00:37:02 +0000 Received: (at 5364) by debbugs.gnu.org; 13 Jan 2010 00:36:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUrDn-0004nC-0T for submit@debbugs.gnu.org; Tue, 12 Jan 2010 19:36:27 -0500 Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUrDl-0004n4-3S for 5364@debbugs.gnu.org; Tue, 12 Jan 2010 19:36:25 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.34.19.cable.starman.ee [82.131.34.19]) by mx2.starman.ee (Postfix) with ESMTP id E34673F4106; Wed, 13 Jan 2010 02:36:15 +0200 (EET) From: Juri Linkov To: jidanni@jidanni.org Organization: JURTA References: <874omrvyb9.fsf@mail.jurta.org> <878wc3lz6b.fsf@jidanni.org> Date: Wed, 13 Jan 2010 02:32:16 +0200 In-Reply-To: <878wc3lz6b.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 13 Jan 2010 06:46:04 +0800") Message-ID: <877hrmu9o0.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.0 (---) Cc: 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) > Put the cursor on emacs-version and hit C-h v. One sees: > Describe variable (default emacs-version): > Now put the cursor upon (list-load-path-shadows) and hit C-h f. One sees: > Describe function (default list-load-path-shadows): > Now put the cursor upon (list-load-path-shadows) and hit M-x. One sees just: > M-x > > One should see > Execute function (default list-load-path-shadows): > > Currently one can hit TAB to get all the completions, so why not prompt > with the most likely? I think we should close bug#5364 (bug#355) and bug#5214 with one change: 1. Remove a long list of default values from `M-x M-n M-n'. 2. Provide only one default value for M-x when a string under point is a command name. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 01:18:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126334544427666 (code B ref 5364); Wed, 13 Jan 2010 01:18:02 +0000 Received: (at 5364) by debbugs.gnu.org; 13 Jan 2010 01:17:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUrrQ-0007CA-5L for submit@debbugs.gnu.org; Tue, 12 Jan 2010 20:17:24 -0500 Received: from caiajhbdcaib.dreamhost.com ([208.97.132.81] helo=homiemail-a7.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUrrO-0007Bx-MZ for 5364@debbugs.gnu.org; Tue, 12 Jan 2010 20:17:23 -0500 Received: from jidanni.org (218-163-2-5.dynamic.hinet.net [218.163.2.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPSA id D1DA525C061; Tue, 12 Jan 2010 17:17:17 -0800 (PST) From: jidanni@jidanni.org To: juri@jurta.org References: <877hrmu9o0.fsf@mail.jurta.org> Date: Wed, 13 Jan 2010 09:17:15 +0800 Message-ID: <87iqb6ls6c.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.3 (---) Cc: 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) JL> I think we should close bug#5364 (bug#355) and bug#5214 with one change: It's a deal. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 01:22:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126334571727895 (code B ref 5364); Wed, 13 Jan 2010 01:22:02 +0000 Received: (at 5364) by debbugs.gnu.org; 13 Jan 2010 01:21:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUrvo-0007Fq-Ob for submit@debbugs.gnu.org; Tue, 12 Jan 2010 20:21:56 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUrvl-0007Fh-R5 for 5364@debbugs.gnu.org; Tue, 12 Jan 2010 20:21:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFAESvTEvO+KPG/2dsb2JhbACBRNV6hDAEijE X-IronPort-AV: E=Sophos;i="4.49,265,1262581200"; d="scan'208";a="53643597" Received: from 206-248-163-198.dsl.teksavvy.com (HELO ceviche.home) ([206.248.163.198]) by ironport2-out.pppoe.ca with ESMTP; 12 Jan 2010 20:21:49 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 172D2B464B; Tue, 12 Jan 2010 20:21:49 -0500 (EST) From: Stefan Monnier To: jidanni@jidanni.org Message-ID: References: <874omrvyb9.fsf@mail.jurta.org> <878wc3lz6b.fsf@jidanni.org> Date: Tue, 12 Jan 2010 20:21:48 -0500 In-Reply-To: <878wc3lz6b.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 13 Jan 2010 06:46:04 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.1 (--) Cc: juri@jurta.org, 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Put the cursor on emacs-version and hit C-h v. One sees: > Describe variable (default emacs-version): > Now put the cursor upon (list-load-path-shadows) and hit C-h f. One sees: > Describe function (default list-load-path-shadows): > Now put the cursor upon (list-load-path-shadows) and hit M-x. One sees just: > M-x Note that M-x is very different from the other two, since what it takes is a command to execute, where the others only take a function/variable to look up. It's very common to want to look up the var/fun at point, but it's a lot less common to want to run the command at point (many/most commands operate at point, so for most uses of M-x point is an argument to the command rather than a way to specify which command to run. Another way to say it is that it's rather uncommon to want to apply a command to its name). As for how I would do what you want: M-b C-M-SPC M-w followed by M-x C-y RET Stefan From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 02:01:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126334801830870 (code B ref 5364); Wed, 13 Jan 2010 02:01:02 +0000 Received: (at 5364) by debbugs.gnu.org; 13 Jan 2010 02:00:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUsWv-00081q-Bn for submit@debbugs.gnu.org; Tue, 12 Jan 2010 21:00:17 -0500 Received: from caiajhbdcbhh.dreamhost.com ([208.97.132.177] helo=homiemail-a14.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUsWr-00081B-Bl for 5364@debbugs.gnu.org; Tue, 12 Jan 2010 21:00:14 -0500 Received: from jidanni.org (218-163-2-5.dynamic.hinet.net [218.163.2.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTPSA id 984EF8C06A; Tue, 12 Jan 2010 18:00:08 -0800 (PST) From: jidanni@jidanni.org To: monnier@iro.umontreal.ca References: Date: Wed, 13 Jan 2010 10:00:06 +0800 Message-ID: <87aawilq6x.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.3 (---) Cc: juri@jurta.org, 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) Stefan: Yes but adding our way doesn't hinder your way, It merely adds a tip which you can ignore. But telling us to use your way, SM> M-b C-M-SPC M-w followed by M-x C-y RET is just continuing the stone age punishment for no reason. And if we never ran into the need over and over, we wouldn't have reported it. So there. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 04:13:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.12633559294774 (code B ref 5364); Wed, 13 Jan 2010 04:13:02 +0000 Received: (at 5364) by debbugs.gnu.org; 13 Jan 2010 04:12:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUuaW-0001Ew-1p for submit@debbugs.gnu.org; Tue, 12 Jan 2010 23:12:08 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUuaT-0001EL-4w for 5364@debbugs.gnu.org; Tue, 12 Jan 2010 23:12:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFABvXTEvO+KPG/2dsb2JhbACBRNRChDAEijE X-IronPort-AV: E=Sophos;i="4.49,266,1262581200"; d="scan'208";a="53650296" Received: from 206-248-163-198.dsl.teksavvy.com (HELO ceviche.home) ([206.248.163.198]) by ironport2-out.pppoe.ca with ESMTP; 12 Jan 2010 23:12:00 -0500 Received: by ceviche.home (Postfix, from userid 20848) id B4325B464B; Tue, 12 Jan 2010 23:12:00 -0500 (EST) From: Stefan Monnier To: jidanni@jidanni.org Message-ID: References: <87aawilq6x.fsf@jidanni.org> Date: Tue, 12 Jan 2010 23:12:00 -0500 In-Reply-To: <87aawilq6x.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 13 Jan 2010 10:00:06 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.1 (--) Cc: juri@jurta.org, 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Stefan: Yes but adding our way doesn't hinder your way, It merely adds a > tip which you can ignore. An ignorable int is usually OK, but not when it's wrong in 99% of the cases. So before accepting such a change I need to be convinced that it wouldn't bump into false positives too often. > But telling us to use your way, > SM> M-b C-M-SPC M-w followed by M-x C-y RET > is just continuing the stone age punishment for no reason. I'm not sure if such generally applicable, orthogonal solutions qualify as "stone age". > And if we never ran into the need over and over, we wouldn't have > reported it. So there. That's the point I don't understand: how come you bump into it over and over again? I can't think of a situation where this would happen more than once in a blue moon. I use M-x very often and I can't think of a case where I could have used such a hint. So maybe, if you describe the cases where this repeatedly shows up for you, I can come up with a way to reconcile our difference. Stefan From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: "Jan D." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2010 07:27:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126336760814364 (code B ref 5364); Wed, 13 Jan 2010 07:27:01 +0000 Received: (at 5364) by debbugs.gnu.org; 13 Jan 2010 07:26:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUxct-0003jd-U7 for submit@debbugs.gnu.org; Wed, 13 Jan 2010 02:26:48 -0500 Received: from proxy1.bredband.net ([195.54.101.71]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUxcs-0003jQ-4Q for 5364@debbugs.gnu.org; Wed, 13 Jan 2010 02:26:46 -0500 Received: from ipb1.telenor.se (195.54.127.164) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C00252CF9F for 5364@debbugs.gnu.org; Wed, 13 Jan 2010 08:26:42 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnxVABsETUtV4S1uPGdsb2JhbACBRIZvky0BAQEBN7kihDAE X-IronPort-AV: E=Sophos;i="4.49,267,1262559600"; d="scan'208";a="26193988" Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 13 Jan 2010 08:26:42 +0100 Received: from [10.225.40.84] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 2498B7FA01A; Wed, 13 Jan 2010 08:26:41 +0100 (CET) Message-ID: <4B4D75B0.7050608@swipnet.se> Date: Wed, 13 Jan 2010 08:26:40 +0100 From: "Jan D." User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: Juri Linkov References: <87iqb77aew.fsf@jidanni.org> <874omrvyb9.fsf@mail.jurta.org> In-Reply-To: <874omrvyb9.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) Cc: 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 2010-01-12 21:54, Juri Linkov wrote: >> OK, how would you execute this command that you see sitting in front of you? >> (list-load-path-shadows) >> >> I ended up doing x l i s t p >> - / >> >> That's because I am unable to just put the cursor on it and do M-x, as >> for some reason execute-extended-command won't prompt me for it even now >> these days. I recall the idea was rejected. > > The idea of adding a command to pull a string from the original buffer > to the minibuffer was not rejected. The only problem is that we have > to find a good keybinding. One proposal was to use `M-.', so when the > cursor is on the string `list-load-path-shadows' you can type > > M-x M-. RET > Hmm, why don't to the same as C-h f does, offer the function as a default? I think that works quite well. Jan D. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2010 03:34:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126344002526775 (code B ref 5364); Thu, 14 Jan 2010 03:34:01 +0000 Received: (at 5364) by debbugs.gnu.org; 14 Jan 2010 03:33:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVGSu-0006xn-Kz for submit@debbugs.gnu.org; Wed, 13 Jan 2010 22:33:44 -0500 Received: from caiajhbdccac.dreamhost.com ([208.97.132.202] helo=homiemail-a2.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVGSr-0006xi-QJ for 5364@debbugs.gnu.org; Wed, 13 Jan 2010 22:33:42 -0500 Received: from jidanni.org (218-163-1-79.dynamic.hinet.net [218.163.1.79]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 30E6FD271A; Wed, 13 Jan 2010 19:33:37 -0800 (PST) From: jidanni@jidanni.org To: monnier@iro.umontreal.ca References: Date: Thu, 14 Jan 2010 11:33:34 +0800 Message-ID: <87my0hgy29.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.4 (--) Cc: juri@jurta.org, 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.3 (--) >>>>> "SM" == Stefan Monnier writes: SM> if you describe the cases where this repeatedly shows up for SM> you, I can come up with a way to reconcile our difference. I sent tons in. And will keep on sending them... however as I am poorly organized, they end up all over the bug system. Anyway, how about: the burden is on you to show why it is so bad... what ever it is we were just discussing... as right now I discovered C-x i (insert-file) doesn't even know that I want to insert e.g., /etc/motd even though my cursor is right next to it and I have FFAP turned on. Anyway, that's all that I'm still good for these days, alerting you fellows to such shortcomings. Yes, I did want to insert a file right next to its name today. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2010 05:30:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.1263446986306 (code B ref 5364); Thu, 14 Jan 2010 05:30:03 +0000 Received: (at 5364) by debbugs.gnu.org; 14 Jan 2010 05:29:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVIHB-00004s-JK for submit@debbugs.gnu.org; Thu, 14 Jan 2010 00:29:45 -0500 Received: from caiajhbdcaid.dreamhost.com ([208.97.132.83] helo=homiemail-a10.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVIHA-0008WQ-6Z for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 00:29:44 -0500 Received: from jidanni.org (218-163-1-79.dynamic.hinet.net [218.163.1.79]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a10.g.dreamhost.com (Postfix) with ESMTPSA id 0BB9B280065; Wed, 13 Jan 2010 21:29:40 -0800 (PST) From: jidanni@jidanni.org To: jan.h.d@swipnet.se References: <4B4D75B0.7050608@swipnet.se> Date: Thu, 14 Jan 2010 13:29:36 +0800 Message-ID: <877hrlgsov.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.3 (--) Cc: juri@jurta.org, 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) And M-x occur doesn't help us out by prompting with the words under the cursor too. Compare M-x rgrep. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2010 15:13:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.12634819624451 (code B ref 5364); Thu, 14 Jan 2010 15:13:02 +0000 Received: (at 5364) by debbugs.gnu.org; 14 Jan 2010 15:12:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVRNJ-00019j-9j for submit@debbugs.gnu.org; Thu, 14 Jan 2010 10:12:41 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVRNH-00019e-2r for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 10:12:39 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAE/DTktFxLLV/2dsb2JhbACBRdc8hDAEijY X-IronPort-AV: E=Sophos;i="4.49,275,1262581200"; d="scan'208";a="53739351" Received: from 69-196-178-213.dsl.teksavvy.com (HELO ceviche.home) ([69.196.178.213]) by ironport2-out.pppoe.ca with ESMTP; 14 Jan 2010 10:12:33 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 81334B464B; Thu, 14 Jan 2010 10:12:33 -0500 (EST) From: Stefan Monnier To: jidanni@jidanni.org Message-ID: References: <87my0hgy29.fsf@jidanni.org> Date: Thu, 14 Jan 2010 10:12:33 -0500 In-Reply-To: <87my0hgy29.fsf@jidanni.org> (jidanni@jidanni.org's message of "Thu, 14 Jan 2010 11:33:34 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.8 (-) Cc: juri@jurta.org, 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) SM> if you describe the cases where this repeatedly shows up for SM> you, I can come up with a way to reconcile our difference. > I sent tons in. And will keep on sending them... however as I am poorly Single examples of "text at point" don't help me understand why this happens *repeatedly*. If you could describe where those chunks of text come from and why you end up using them in M-x, maybe that would help. > organized, they end up all over the bug system. Anyway, how about: the > burden is on you to show why it is so bad... what ever it is we were It's bad to have a default in the prompt which is almost always not the one you want. People will soon send bug reports about "M-x chooses dumb defaults". > just discussing... as right now I discovered C-x i (insert-file) > doesn't even know that I want to insert e.g., /etc/motd even though my > cursor is right next to it and I have FFAP turned on. Anyway, that's all > that I'm still good for these days, alerting you fellows to such > shortcomings. Yes, I did want to insert a file right next to its name today. In the pretest code, we've solved this problem by making M-n bring up the "file at point" if you have ffap loaded (IIUC). This should work with all file-reading commands, contrary to FFAP itself which only works for the commands it redefined. So after C-x i, try M-n. Stefan From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2010 21:16:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126350375626640 (code B ref 5364); Thu, 14 Jan 2010 21:16:01 +0000 Received: (at 5364) by debbugs.gnu.org; 14 Jan 2010 21:15:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVX2n-0006vc-7X for submit@debbugs.gnu.org; Thu, 14 Jan 2010 16:15:53 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVX2l-0006vS-6k for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 16:15:52 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (85.253.48.2.cable.starman.ee [85.253.48.2]) by mx1.starman.ee (Postfix) with ESMTP id CD2663F4101; Thu, 14 Jan 2010 23:15:40 +0200 (EET) From: Juri Linkov To: jidanni@jidanni.org Organization: JURTA References: <4B4D75B0.7050608@swipnet.se> <877hrlgsov.fsf@jidanni.org> Date: Thu, 14 Jan 2010 23:01:04 +0200 In-Reply-To: <877hrlgsov.fsf@jidanni.org> (jidanni@jidanni.org's message of "Thu, 14 Jan 2010 13:29:36 +0800") Message-ID: <87zl4go2tr.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) Cc: jan.h.d@swipnet.se, 5364@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) > And M-x occur doesn't help us out by prompting with the words under the > cursor too. For historical reasons, `M-x occur' provides the last history item as the default. There was much resistance when we tried to change this :) However, you can type `M-x occur M-n' to put the word under the cursor to the minibuffer. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2010 21:16:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126350375626644 (code B ref 5364); Thu, 14 Jan 2010 21:16:02 +0000 Received: (at 5364) by debbugs.gnu.org; 14 Jan 2010 21:15:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVX2o-0006vf-3l for submit@debbugs.gnu.org; Thu, 14 Jan 2010 16:15:54 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVX2l-0006vT-MI for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 16:15:52 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (85.253.48.2.cable.starman.ee [85.253.48.2]) by mx1.starman.ee (Postfix) with ESMTP id 898433F4102; Thu, 14 Jan 2010 23:15:41 +0200 (EET) From: Juri Linkov To: Stefan Monnier Organization: JURTA References: <87my0hgy29.fsf@jidanni.org> Date: Thu, 14 Jan 2010 23:07:16 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 14 Jan 2010 10:12:33 -0500") Message-ID: <87ska8jszf.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) Cc: 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) > Single examples of "text at point" don't help me understand why this > happens *repeatedly*. If you could describe where those chunks of text > come from and why you end up using them in M-x, maybe that would help. After this bug report, I started to notice that most often I want to put a command name at point to the M-x minibuffer is when I'm looking at a new package and trying out its commands. > It's bad to have a default in the prompt which is almost always not the > one you want. People will soon send bug reports about "M-x chooses dumb > defaults". I agree that a default should not be in the prompt of M-x. > In the pretest code, we've solved this problem by making M-n bring up > the "file at point" if you have ffap loaded (IIUC). This should work > with all file-reading commands, contrary to FFAP itself which only > works for the commands it redefined. > So after C-x i, try M-n. We could do the same for M-x to let M-n to bring up the command at point. This single default value will replace the current list of useless default values reported in bug#5214. The following patch closes both bug#5364 and bug#5214. For bug#5364 it adds the command at point when typing `M-x M-n' (but not to the prompt of M-x). For bug#5214 it removes a list of confusing random values for `M-x M-n M-n'. I know that relying on the `minibuffer-history-variable' being equal to `extended-command-history' is not a clean solution, but it works, and currently I see no other way to achieve the same result. === modified file 'lisp/simple.el' --- lisp/simple.el 2010-01-13 08:35:10 +0000 +++ lisp/simple.el 2010-01-14 21:07:12 +0000 @@ -1375,9 +1375,13 @@ (defun minibuffer-default-add-completion (all (all-completions "" minibuffer-completion-table minibuffer-completion-predicate))) - (if (listp def) - (append def all) - (cons def (delete def all))))) + (if (eq minibuffer-history-variable 'extended-command-history) + (with-current-buffer (window-buffer (minibuffer-selected-window)) + (and (function-called-at-point) + (format "%S" (function-called-at-point)))) + (if (listp def) + (append def all) + (cons def (delete def all)))))) (defun goto-history-element (nabs) "Puts element of the minibuffer history in the minibuffer. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2010 22:42:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126350891430933 (code B ref 5364); Thu, 14 Jan 2010 22:42:01 +0000 Received: (at 5364) by debbugs.gnu.org; 14 Jan 2010 22:41:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVYO1-00082s-Lg for submit@debbugs.gnu.org; Thu, 14 Jan 2010 17:41:53 -0500 Received: from tomts40.bellnexxia.net ([209.226.175.97] helo=tomts40-srv.bellnexxia.net) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVYNz-00082n-UB for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 17:41:52 -0500 Received: from toip5.srvr.bell.ca ([209.226.175.88]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20100114224147.ISEK16859.tomts40-srv.bellnexxia.net@toip5.srvr.bell.ca> for <5364@debbugs.gnu.org>; Thu, 14 Jan 2010 17:41:47 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAB4rT0tGN4+P/2dsb2JhbACBRNdVhDAE Received: from bas1-montreal42-1178046351.dsl.bell.ca (HELO ceviche.home) ([70.55.143.143]) by toip5.srvr.bell.ca with ESMTP; 14 Jan 2010 17:41:41 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 894957001E; Thu, 14 Jan 2010 17:40:42 -0500 (EST) From: Stefan Monnier To: Juri Linkov Message-ID: References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> Date: Thu, 14 Jan 2010 17:40:42 -0500 In-Reply-To: <87ska8jszf.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 14 Jan 2010 23:07:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.6 (-) Cc: 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.6 (-) >> It's bad to have a default in the prompt which is almost always not the >> one you want. People will soon send bug reports about "M-x chooses dumb >> defaults". > I agree that a default should not be in the prompt of M-x. I could live with that. > I know that relying on the `minibuffer-history-variable' being equal > to `extended-command-history' is not a clean solution, but it works, > and currently I see no other way to achieve the same result. The behavior is OK, but the implementation sucks too much. I think we can do better via minibuffer-with-setup-hook. That might require to turn M-x's interactive spec into Elisp (moving the whole of M-x to Elisp would be good as well, but it's a much bigger effort). Stefan From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 02:00:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.12635208026159 (code B ref 5364); Fri, 15 Jan 2010 02:00:03 +0000 Received: (at 5364) by debbugs.gnu.org; 15 Jan 2010 02:00:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVbTj-0001b8-Nr for submit@debbugs.gnu.org; Thu, 14 Jan 2010 21:00:01 -0500 Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVbTh-0001b0-AQ for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 20:59:58 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (85.253.48.2.cable.starman.ee [85.253.48.2]) by mx2.starman.ee (Postfix) with ESMTP id A28493F40B9; Fri, 15 Jan 2010 03:59:46 +0200 (EET) From: Juri Linkov To: Stefan Monnier Organization: JURTA References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> Date: Fri, 15 Jan 2010 03:12:05 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 14 Jan 2010 17:40:42 -0500") Message-ID: <87wrzki0zy.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.1 (---) Cc: 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) > The behavior is OK, but the implementation sucks too much. I think we > can do better via minibuffer-with-setup-hook. That might require to > turn M-x's interactive spec into Elisp (moving the whole of M-x to Elisp > would be good as well, but it's a much bigger effort). This patch moves interactive spec into Elisp and also implements the following task from comments in execute-extended-command: /* This isn't strictly correct if execute-extended-command is bound to anything else. Perhaps it should use this_command_keys? */ It uses `(key-description (this-single-command-keys))' to do this. === modified file 'src/keyboard.c' --- src/keyboard.c 2010-01-13 08:35:10 +0000 +++ src/keyboard.c 2010-01-15 01:09:18 +0000 @@ -10512,7 +10512,30 @@ DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_command, - 1, 1, "P", + 2, 2, + "(list current-prefix-arg \ + (minibuffer-with-setup-hook \ + (lambda () \ + (set (make-local-variable 'minibuffer-default-add-function) \ + (lambda () \ + (with-current-buffer (window-buffer \ + (minibuffer-selected-window)) \ + (and (commandp (function-called-at-point)) \ + (format \"%S\" (function-called-at-point))))))) \ + (completing-read (concat \ + (cond \ + ((eq current-prefix-arg '-) \"- \") \ + ((and (consp current-prefix-arg) \ + (eq (car current-prefix-arg) 4)) \"C-u \") \ + ((and (consp current-prefix-arg) \ + (integerp (car current-prefix-arg))) \ + (format \"%d \" (car current-prefix-arg))) \ + ((integerp current-prefix-arg) \ + (format \"%d \" current-prefix-arg))) \ + (key-description (this-single-command-keys)) \ + \" \") \ + obarray 'commandp t nil \ + 'extended-command-history)))", doc: /* Read function name, then read its arguments and call it. To pass a numeric argument to the command you are invoking with, specify @@ -10520,11 +10543,9 @@ (at your option) any later version. Noninteractively, the argument PREFIXARG is the prefix argument to give to the command you invoke, if it asks for an argument. */) - (prefixarg) - Lisp_Object prefixarg; + (prefixarg, function) + Lisp_Object prefixarg, function; { - Lisp_Object function; - char buf[40]; int saved_last_point_position; Lisp_Object saved_keys, saved_last_point_position_buffer; Lisp_Object bindings, value; @@ -10543,32 +10564,8 @@ (at your option) any later version. XVECTOR (this_command_keys)->contents); saved_last_point_position_buffer = last_point_position_buffer; saved_last_point_position = last_point_position; - buf[0] = 0; GCPRO3 (saved_keys, prefixarg, saved_last_point_position_buffer); - if (EQ (prefixarg, Qminus)) - strcpy (buf, "- "); - else if (CONSP (prefixarg) && XINT (XCAR (prefixarg)) == 4) - strcpy (buf, "C-u "); - else if (CONSP (prefixarg) && INTEGERP (XCAR (prefixarg))) - sprintf (buf, "%ld ", (long) XINT (XCAR (prefixarg))); - else if (INTEGERP (prefixarg)) - sprintf (buf, "%ld ", (long) XINT (prefixarg)); - - /* This isn't strictly correct if execute-extended-command - is bound to anything else. Perhaps it should use - this_command_keys? */ - strcat (buf, "M-x "); - - /* Prompt with buf, and then 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. */ - function = Fcompleting_read (build_string (buf), - Vobarray, Qcommandp, - Qt, Qnil, Qextended_command_history, Qnil, - Qnil); - #ifdef HAVE_WINDOW_SYSTEM if (hstarted) start_hourglass (); #endif -- Juri Linkov http://www.jurta.org/emacs/ From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 02:21:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.12635220366859 (code B ref 5364); Fri, 15 Jan 2010 02:21:01 +0000 Received: (at 5364) by debbugs.gnu.org; 15 Jan 2010 02:20:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVbnf-0001ma-EK for submit@debbugs.gnu.org; Thu, 14 Jan 2010 21:20:35 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVbnd-0001mT-Ux for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 21:20:34 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEACdfT0tFxLLV/2dsb2JhbACBRNcIhDAEijY X-IronPort-AV: E=Sophos;i="4.49,279,1262581200"; d="scan'208";a="53786202" Received: from 69-196-178-213.dsl.teksavvy.com (HELO ceviche.home) ([69.196.178.213]) by ironport2-out.pppoe.ca with ESMTP; 14 Jan 2010 21:20:28 -0500 Received: by ceviche.home (Postfix, from userid 20848) id CA33E7001F; Thu, 14 Jan 2010 21:20:27 -0500 (EST) From: Stefan Monnier To: Juri Linkov Message-ID: References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> <87wrzki0zy.fsf@mail.jurta.org> Date: Thu, 14 Jan 2010 21:20:27 -0500 In-Reply-To: <87wrzki0zy.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 15 Jan 2010 03:12:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) Cc: 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > - 1, 1, "P", > + 2, 2, > + "(list current-prefix-arg \ > + (minibuffer-with-setup-hook \ > + (lambda () \ > + (set (make-local-variable 'minibuffer-default-add-function) \ > + (lambda () \ > + (with-current-buffer (window-buffer \ > + (minibuffer-selected-window)) \ > + (and (commandp (function-called-at-point)) \ > + (format \"%S\" (function-called-at-point))))))) \ > + (completing-read (concat \ > + (cond \ > + ((eq current-prefix-arg '-) \"- \") \ > + ((and (consp current-prefix-arg) \ > + (eq (car current-prefix-arg) 4)) \"C-u \") \ > + ((and (consp current-prefix-arg) \ > + (integerp (car current-prefix-arg))) \ > + (format \"%d \" (car current-prefix-arg))) \ > + ((integerp current-prefix-arg) \ > + (format \"%d \" current-prefix-arg))) \ > + (key-description (this-single-command-keys)) \ > + \" \") \ > + obarray 'commandp t nil \ > + 'extended-command-history)))", > doc: /* Read function name, then read its arguments and call it. The Elisp code looks OK, except it should be in the C file. Please move it to simple.el where we can edit it with edebug, font-lock, eldoc, ... Stefan From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP In-Reply-To: <87iqb77aew.fsf@jidanni.org> Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 03:05:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126352469712175 (code B ref 5364); Fri, 15 Jan 2010 03:05:02 +0000 Received: (at 5364) by debbugs.gnu.org; 15 Jan 2010 03:04:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVcUZ-0003AK-7F for submit@debbugs.gnu.org; Thu, 14 Jan 2010 22:04:57 -0500 Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66] helo=homiemail-a7.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVcUX-0003AF-71 for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 22:04:53 -0500 Received: from jidanni.org (218-163-7-176.dynamic.hinet.net [218.163.7.176]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a7.g.dreamhost.com (Postfix) with ESMTPSA id A2AD225C062 for <5364@debbugs.gnu.org>; Thu, 14 Jan 2010 19:04:48 -0800 (PST) From: jidanni@jidanni.org To: 5364@debbugs.gnu.org References: <87zl4go2tr.fsf@mail.jurta.org> Date: Fri, 15 Jan 2010 11:04:46 +0800 Message-ID: <87tyuogjap.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) Do M-x apropos something See any commands you want to try? Just put the cursor on it and hit M-x RET Bzzzt. No go. OK, I will try the new M-n stuff next Debian emacs-snapshot. Thanks. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 03:07:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126352478712243 (code B ref 5364); Fri, 15 Jan 2010 03:07:02 +0000 Received: (at 5364) by debbugs.gnu.org; 15 Jan 2010 03:06:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVcW3-0003BQ-4G for submit@debbugs.gnu.org; Thu, 14 Jan 2010 22:06:27 -0500 Received: from pantheon-po19.its.yale.edu ([130.132.50.75]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVcW0-0003BH-GY for 5364@debbugs.gnu.org; Thu, 14 Jan 2010 22:06:25 -0500 Received: from furry (adsl-99-58-201-143.dsl.wlfrct.sbcglobal.net [99.58.201.143]) (authenticated bits=0) by pantheon-po19.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0F36Ipr012673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 14 Jan 2010 22:06:20 -0500 Received: by furry (Postfix, from userid 1000) id CD1BCC05D; Thu, 14 Jan 2010 20:06:18 -0700 (MST) From: Chong Yidong To: Stefan Monnier References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> <87wrzki0zy.fsf@mail.jurta.org> Date: Thu, 14 Jan 2010 22:06:18 -0500 In-Reply-To: (Stefan Monnier's message of "Thu, 14 Jan 2010 21:20:27 -0500") Message-ID: <873a2812z9.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -5.9 (-----) Cc: Juri Linkov , 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) Stefan Monnier writes: > The Elisp code looks OK, except it should be in the C file. Please move > it to simple.el where we can edit it with edebug, font-lock, eldoc, ... BTW, this is post 23.2, I think. From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 07:51:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126354180423022 (code B ref 5364); Fri, 15 Jan 2010 07:51:02 +0000 Received: (at 5364) by debbugs.gnu.org; 15 Jan 2010 07:50:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVgwV-0005zH-Pc for submit@debbugs.gnu.org; Fri, 15 Jan 2010 02:50:04 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVgwO-0005yr-3m for 5364@debbugs.gnu.org; Fri, 15 Jan 2010 02:50:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvIEAIqsT0tFxLLV/2dsb2JhbACBRNYvhDEEijg X-IronPort-AV: E=Sophos;i="4.49,281,1262581200"; d="scan'208";a="53796715" Received: from 69-196-178-213.dsl.teksavvy.com (HELO ceviche.home) ([69.196.178.213]) by ironport2-out.pppoe.ca with ESMTP; 15 Jan 2010 02:49:52 -0500 Received: by ceviche.home (Postfix, from userid 20848) id E2C0670035; Fri, 15 Jan 2010 02:49:51 -0500 (EST) From: Stefan Monnier To: Chong Yidong Message-ID: References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> <87wrzki0zy.fsf@mail.jurta.org> <873a2812z9.fsf@stupidchicken.com> Date: Fri, 15 Jan 2010 02:49:51 -0500 In-Reply-To: <873a2812z9.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 14 Jan 2010 22:06:18 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) Cc: Juri Linkov , 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> The Elisp code looks OK, except it should be in the C file. Please move >> it to simple.el where we can edit it with edebug, font-lock, eldoc, ... > BTW, this is post 23.2, I think. Yes, indeed, Stefan From unknown Thu Jun 19 14:04:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5364: 23.1.91; execute-extended-command should do like FFAP Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 09:28:04 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5364 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5364-submit@debbugs.gnu.org id=B5364.126354764226150 (code B ref 5364); Fri, 15 Jan 2010 09:28:04 +0000 Received: (at 5364) by debbugs.gnu.org; 15 Jan 2010 09:27:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NViSf-0006ng-NF for submit@debbugs.gnu.org; Fri, 15 Jan 2010 04:27:21 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NViSc-0006nU-Lm for 5364@debbugs.gnu.org; Fri, 15 Jan 2010 04:27:20 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (85.253.48.2.cable.starman.ee [85.253.48.2]) by mx1.starman.ee (Postfix) with ESMTP id AF9703F40E4; Fri, 15 Jan 2010 11:27:09 +0200 (EET) From: Juri Linkov To: Stefan Monnier Organization: JURTA References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> <87wrzki0zy.fsf@mail.jurta.org> Date: Fri, 15 Jan 2010 11:19:38 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 14 Jan 2010 21:20:27 -0500") Message-ID: <87zl4fhgid.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.4 (---) Cc: 5364@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) > The Elisp code looks OK, except it should be in the C file. Please move > it to simple.el where we can edit it with edebug, font-lock, eldoc, ... A patch for post-23.2: === modified file 'lisp/simple.el' --- lisp/simple.el 2010-01-13 08:35:10 +0000 +++ lisp/simple.el 2010-01-15 09:14:30 +0000 @@ -1210,6 +1210,29 @@ (defun repeat-complex-command (arg) (if command-history (error "Argument %d is beyond length of command history" arg) (error "There are no previous complex commands to repeat"))))) + +(defun read-extended-command () + "Read command name to invoke in `execute-extended-command'." + (minibuffer-with-setup-hook + (lambda () + (set (make-local-variable 'minibuffer-default-add-function) + (lambda () + (with-current-buffer (window-buffer (minibuffer-selected-window)) + (and (commandp (function-called-at-point)) + (format "%S" (function-called-at-point))))))) + (completing-read + (concat (cond + ((eq current-prefix-arg '-) "- ") + ((and (consp current-prefix-arg) + (eq (car current-prefix-arg) 4)) "C-u ") + ((and (consp current-prefix-arg) + (integerp (car current-prefix-arg))) + (format "%d " (car current-prefix-arg))) + ((integerp current-prefix-arg) + (format "%d " current-prefix-arg))) + (key-description (this-single-command-keys)) + " ") + obarray 'commandp t nil 'extended-command-history))) (defvar minibuffer-history nil "Default minibuffer history list. === modified file 'src/keyboard.c' --- src/keyboard.c 2010-01-13 08:35:10 +0000 +++ src/keyboard.c 2010-01-15 09:17:15 +0000 @@ -10512,19 +10512,17 @@ (at your option) any later version. DEFUN ("execute-extended-command", Fexecute_extended_command, Sexecute_extended_command, - 1, 1, "P", - doc: /* Read function name, then read its arguments and call it. + 2, 2, "(list current-prefix-arg (read-extended-command))", + doc: /* Read arguments, then read FUNCTION name and call it. To pass a numeric argument to the command you are invoking with, specify the numeric argument to this command. Noninteractively, the argument PREFIXARG is the prefix argument to give to the command you invoke, if it asks for an argument. */) - (prefixarg) - Lisp_Object prefixarg; + (prefixarg, function) + Lisp_Object prefixarg, function; { - Lisp_Object function; - char buf[40]; int saved_last_point_position; Lisp_Object saved_keys, saved_last_point_position_buffer; Lisp_Object bindings, value; @@ -10543,32 +10541,8 @@ (at your option) any later version. XVECTOR (this_command_keys)->contents); saved_last_point_position_buffer = last_point_position_buffer; saved_last_point_position = last_point_position; - buf[0] = 0; GCPRO3 (saved_keys, prefixarg, saved_last_point_position_buffer); - if (EQ (prefixarg, Qminus)) - strcpy (buf, "- "); - else if (CONSP (prefixarg) && XINT (XCAR (prefixarg)) == 4) - strcpy (buf, "C-u "); - else if (CONSP (prefixarg) && INTEGERP (XCAR (prefixarg))) - sprintf (buf, "%ld ", (long) XINT (XCAR (prefixarg))); - else if (INTEGERP (prefixarg)) - sprintf (buf, "%ld ", (long) XINT (prefixarg)); - - /* This isn't strictly correct if execute-extended-command - is bound to anything else. Perhaps it should use - this_command_keys? */ - strcat (buf, "M-x "); - - /* Prompt with buf, and then 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. */ - function = Fcompleting_read (build_string (buf), - Vobarray, Qcommandp, - Qt, Qnil, Qextended_command_history, Qnil, - Qnil); - #ifdef HAVE_WINDOW_SYSTEM if (hstarted) start_hourglass (); #endif -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 15:42:34 2010 Received: (at control) by debbugs.gnu.org; 20 Jan 2010 20:42:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXhNq-00040k-Jk for submit@debbugs.gnu.org; Wed, 20 Jan 2010 15:42:34 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXhNo-00040b-TI for control@debbugs.gnu.org; Wed, 20 Jan 2010 15:42:33 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NXhNk-0004mT-NF; Wed, 20 Jan 2010 15:42:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19287.27316.394946.407545@gargle.gargle.HOWL> Date: Wed, 20 Jan 2010 15:42:28 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: blue X-Ran: z6MTe2M(!RCYDuY{x:(vcl$ax,d-o$Q~3p)'q|gxr|ia.%e*=2b2-JlUH9]l`Jt?NXifxi X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) severity 355 wishlist merge 355 5364 From unknown Thu Jun 19 14:04:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jidanni@jidanni.org Subject: bug#5364: closed (Re: bug#5364: 23.1.91; execute-extended-command should do like FFAP) Message-ID: References: <87wrriw7ea.fsf@mail.jurta.org> <87iqb77aew.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 5364 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: wontfix Reply-To: 5364@debbugs.gnu.org Date: Sun, 22 Aug 2010 23:34:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1282520043-30934-1" This is a multi-part message in MIME format... ------------=_1282520043-30934-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #5364: 23.1.91; execute-extended-command should do like FFAP which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 5364@debbugs.gnu.org. --=20 5364: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5364 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1282520043-30934-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5364-done) by debbugs.gnu.org; 22 Aug 2010 23:33:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnK33-00082W-0x for submit@debbugs.gnu.org; Sun, 22 Aug 2010 19:33:57 -0400 Received: from [217.41.228.242] (helo=smtp-server1.btopenzone.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnK30-00082N-KE for 5364-done@debbugs.gnu.org; Sun, 22 Aug 2010 19:33:55 -0400 Received: from smtp.btopenzone.com ([10.217.8.10]) by smtp-server1.btopenzone.com (8.11.7p3+Sun/8.12.10) with ESMTP id o7MNZ5F25605; Mon, 23 Aug 2010 00:35:07 +0100 (BST) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#5364: 23.1.91; execute-extended-command should do like FFAP Organization: JURTA References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> <87wrzki0zy.fsf@mail.jurta.org> Date: Mon, 23 Aug 2010 00:32:29 +0100 In-Reply-To: <87wrzki0zy.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 15 Jan 2010 03:12:05 +0200") Message-ID: <87wrriw7ea.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 5364-done Cc: 5364-done@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.6 (-) > This patch moves interactive spec into Elisp and also implements > the following task from comments in execute-extended-command: > > /* This isn't strictly correct if execute-extended-command > is bound to anything else. Perhaps it should use > this_command_keys? */ > > It uses `(key-description (this-single-command-keys))' to do this. Actually, it occured to me that displaying a key other than "M-x" in the prompt of `execute-extended-command' is too confusing. For instance, in bindings.el `execute-extended-command' is bound to the [menu] key. When I accidentally type the key, the first reaction is "What does this mean?!" because it's very strange to see the prompt " " waiting for a command. It looks like a beginning of a key sequence for the main menu. OTOH, a well-known prompt "M-x" means it reads an extended command. I've added a comment that explains why "M-x" is better than anything else. Also we should keep the current function signature of `execute-extended-command' unchanged and not to add a new arg for two reasons: 1. There are places in code that call `execute-extended-command' with one argument. 2. Calling `read-extended-command' to read a command name should not be in the `interactive' spec because it needs to remember the hourglass status before reading a command name (using `hourglass_started'), and restore the hourglass (using `start_hourglass') after that. So I installed a patch that calls `read-extended-command' in the middle of `execute-extended-command'. Of course, moving the whole of `execute-extended-command' to Elisp would be better but the main obstacle is the hourglass functions that have no Elisp interface. ------------=_1282520043-30934-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Jan 2010 13:05:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUgRR-0007PE-AT for submit@debbugs.gnu.org; Tue, 12 Jan 2010 08:05:49 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUgRP-0007P9-Tr for submit@debbugs.gnu.org; Tue, 12 Jan 2010 08:05:48 -0500 Received: from mx10.gnu.org ([199.232.76.166]:49143) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUgRK-0001uu-Vp for emacs-pretest-bug@gnu.org; Tue, 12 Jan 2010 08:05:43 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NUgRK-0006dW-7R for emacs-pretest-bug@gnu.org; Tue, 12 Jan 2010 08:05:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,NO_REAL_NAME autolearn=no version=3.1.0 Received: from caiajhbdcbbj.dreamhost.com ([208.97.132.119]:53918 helo=homiemail-a2.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUgRJ-0006d8-Sg for emacs-pretest-bug@gnu.org; Tue, 12 Jan 2010 08:05:42 -0500 Received: from jidanni.org (125-230-45-82.dynamic.hinet.net [125.230.45.82]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id 49ABED271D for ; Tue, 12 Jan 2010 05:05:37 -0800 (PST) From: jidanni@jidanni.org To: emacs-pretest-bug@gnu.org Subject: 23.1.91; execute-extended-command should do like FFAP Date: Tue, 12 Jan 2010 20:52:23 +0800 Message-ID: <87iqb77aew.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) OK, how would you execute this command that you see sitting in front of you? (list-load-path-shadows) I ended up doing x l i s t p - / That's because I am unable to just put the cursor on it and do M-x, as for some reason execute-extended-command won't prompt me for it even now these days. I recall the idea was rejected. Would you put the cursor after it, and hit C-x C-e? Well sorry. That will fire up the non interactive version, etc. In GNU Emacs 23.1.91.1 ------------=_1282520043-30934-1-- From unknown Thu Jun 19 14:04:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jidanni@jidanni.org Subject: bug#355: closed (Re: bug#5364: 23.1.91; execute-extended-command should do like FFAP) Message-ID: References: <87wrriw7ea.fsf@mail.jurta.org> <87ve0qnn9n.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 355 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: wontfix Reply-To: 355@debbugs.gnu.org Date: Sun, 22 Aug 2010 23:34:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1282520043-30934-3" This is a multi-part message in MIME format... ------------=_1282520043-30934-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #5364: M-x should prompt with function under cursor as default which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 355@debbugs.gnu.org. --=20 5364: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5364 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1282520043-30934-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5364-done) by debbugs.gnu.org; 22 Aug 2010 23:33:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnK33-00082W-0x for submit@debbugs.gnu.org; Sun, 22 Aug 2010 19:33:57 -0400 Received: from [217.41.228.242] (helo=smtp-server1.btopenzone.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnK30-00082N-KE for 5364-done@debbugs.gnu.org; Sun, 22 Aug 2010 19:33:55 -0400 Received: from smtp.btopenzone.com ([10.217.8.10]) by smtp-server1.btopenzone.com (8.11.7p3+Sun/8.12.10) with ESMTP id o7MNZ5F25605; Mon, 23 Aug 2010 00:35:07 +0100 (BST) From: Juri Linkov To: Stefan Monnier Subject: Re: bug#5364: 23.1.91; execute-extended-command should do like FFAP Organization: JURTA References: <87my0hgy29.fsf@jidanni.org> <87ska8jszf.fsf@mail.jurta.org> <87wrzki0zy.fsf@mail.jurta.org> Date: Mon, 23 Aug 2010 00:32:29 +0100 In-Reply-To: <87wrzki0zy.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 15 Jan 2010 03:12:05 +0200") Message-ID: <87wrriw7ea.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 5364-done Cc: 5364-done@debbugs.gnu.org, jidanni@jidanni.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.6 (-) > This patch moves interactive spec into Elisp and also implements > the following task from comments in execute-extended-command: > > /* This isn't strictly correct if execute-extended-command > is bound to anything else. Perhaps it should use > this_command_keys? */ > > It uses `(key-description (this-single-command-keys))' to do this. Actually, it occured to me that displaying a key other than "M-x" in the prompt of `execute-extended-command' is too confusing. For instance, in bindings.el `execute-extended-command' is bound to the [menu] key. When I accidentally type the key, the first reaction is "What does this mean?!" because it's very strange to see the prompt " " waiting for a command. It looks like a beginning of a key sequence for the main menu. OTOH, a well-known prompt "M-x" means it reads an extended command. I've added a comment that explains why "M-x" is better than anything else. Also we should keep the current function signature of `execute-extended-command' unchanged and not to add a new arg for two reasons: 1. There are places in code that call `execute-extended-command' with one argument. 2. Calling `read-extended-command' to read a command name should not be in the `interactive' spec because it needs to remember the hourglass status before reading a command name (using `hourglass_started'), and restore the hourglass (using `start_hourglass') after that. So I installed a patch that calls `read-extended-command' in the middle of `execute-extended-command'. Of course, moving the whole of `execute-extended-command' to Elisp would be better but the main obstacle is the hourglass functions that have no Elisp interface. ------------=_1282520043-30934-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From jidanni@jidanni.org Tue Jun 3 15:53:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.1 required=4.0 tests=AWL,BAYES_00,FOURLA, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Jun 2008 22:53:50 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m53MrlWH029272 for ; Tue, 3 Jun 2008 15:53:48 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3fNz-00024p-21 for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 18:53:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3fNx-00023b-MB for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 18:53:46 -0400 Received: from [199.232.76.173] (port=60573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3fNx-00023J-EH for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 18:53:45 -0400 Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5]:34339 helo=blingymail-a3.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K3fNx-0007p8-6o for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2008 18:53:45 -0400 Received: from jidanni1.jidanni.org (122-127-33-182.dynamic.hinet.net [122.127.33.182]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 0059314D778 for ; Tue, 3 Jun 2008 15:53:42 -0700 (PDT) To: bug-gnu-emacs@gnu.org Subject: M-x should prompt with function under cursor as default From: jidanni@jidanni.org Date: Wed, 04 Jun 2008 06:53:40 +0800 Message-ID: <87ve0qnn9n.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 Today I was reading a message where this guy said > FWIW, there are also `customize-apropos' and `customize-apropos-options'. So I put the cursor upon the word customize-apropos-options and typed M-x, and would you believe I had to help emacs figure out what I wanted to do, which was of course to type M-x customize-apropos-options. (Yes, with the assistance of TAB.) Compare C-h f (describe-function) with the cursor in that position. It knows what to do: prompt with what it finds under the cursor. P.S., I cannot help with patches because I am too busy reporting bugs I encounter in the surface interface, which I am much better at doing than coding. Each person has things they are better at doing. ------------=_1282520043-30934-3--