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. From jpw@pobox.com Wed Jun 4 18:18:51 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=-6.9 required=4.0 tests=BAYES_00,FOURLA, HAS_BUG_NUMBER,MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 355) by emacsbugs.donarmstrong.com; 5 Jun 2008 01:18:51 +0000 Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com [207.106.133.19]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m551IiWp030045 for <355@emacsbugs.donarmstrong.com>; Wed, 4 Jun 2008 18:18:46 -0700 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 4F0743E3E; Wed, 4 Jun 2008 21:18:44 -0400 (EDT) Received: from mini.local (host81-158-23-41.range81-158.btcentralplus.com [81.158.23.41]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPA id 19C033E3D; Wed, 4 Jun 2008 21:18:40 -0400 (EDT) From: jpw@pobox.com (John Paul Wallington) To: jidanni@jidanni.org Cc: 355@debbugs.gnu.org Subject: Re: bug#355: M-x should prompt with function under cursor as default References: X-URL: http://www.shootybangbang.com/ X-Attribution: JPW X-NSA-Fodder: supercomputer domestic disruption clandestine radar Ron Brown X-Face: #uahb@^mo@bA"{q'"a4y[w$n3/V:haD\;YenWcT7)kXYx3/>#[DD9ExVe};9FG6X`l!Dm"V peub=u!&&?}s~{TOPtGdH)KA}/qCr;d"Gr*'9_V1PE@+K'tk2/Iq@PBKtJ+]&,CP9_Fl8'*R]LCR0| 6q;Xey'`:DX+)S.]p[KP^sNe`8B\W6(Nw{o5i)y+I!h=0bU5L`Tj`~Q0!G"t(s7o7eh)J\>P>,!~/w $$jGEVa%H%8(jTv Date: Thu, 05 Jun 2008 02:18:29 +0100 In-Reply-To: (jidanni@jidanni.org's message of "Wed, 04 Jun 2008 06:53:40 +0800") Message-ID: User-Agent: Microsoft Gnus Express, Build 513.230 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: 57131D4C-329D-11DD-8301-F9737025C2AA-02562057!a-sasl-fastnet.pobox.com jidanni@jidanni.org writes: > 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. Hm. That's an interesting idea. > 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. Well, a patch follows. If you could test it, I would be interested to see whether you liked it in regular use. I'll test it for a while too. --- keyboard.c.~1.959.~ 2008-06-02 22:07:24.000000000 +0100 +++ keyboard.c 2008-06-05 02:04:13.000000000 +0100 @@ -10451,6 +10451,7 @@ Lisp_Object prefixarg; { Lisp_Object function; + Lisp_Object symatpt; char buf[40]; int saved_last_point_position; Lisp_Object saved_keys, saved_last_point_position_buffer; @@ -10491,9 +10492,16 @@ restricting to the set of all defined commands. Don't provide any initial input. Save the command read on the extended-command history list. */ + + symatpt = call0 (intern ("function-called-at-point")); + symatpt = (NILP (call1 (Qcommandp, symatpt))) ? Qnil : symatpt; + + if (!NILP (symatpt)) + symatpt = SYMBOL_NAME (symatpt); + function = Fcompleting_read (build_string (buf), Vobarray, Qcommandp, - Qt, Qnil, Qextended_command_history, Qnil, + Qt, symatpt, Qextended_command_history, Qnil, Qnil); #ifdef HAVE_WINDOW_SYSTEM From jidanni@jidanni.org Thu Jun 5 10:58:51 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=-5.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 355) by emacsbugs.donarmstrong.com; 5 Jun 2008 17:58:51 +0000 Received: from blingymail-a3.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m55HwiNp017104 for <355@emacsbugs.donarmstrong.com>; Thu, 5 Jun 2008 10:58:45 -0700 Received: from jidanni2.jidanni.org (122-127-38-58.dynamic.hinet.net [122.127.38.58]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 9A13114D73F; Thu, 5 Jun 2008 10:58:42 -0700 (PDT) To: jpw@pobox.com Cc: 355@debbugs.gnu.org Subject: Re: bug#355: M-x should prompt with function under cursor as default References: From: jidanni@jidanni.org Date: Fri, 06 Jun 2008 01:58:34 +0800 Message-ID: <878wxjepbp.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii JPW> patch follows. If you could test it JPW> --- keyboard.c ^^thank you but in my "apt-get install emacs" world I don't brush with .c's, and in fact have barely the brains to test .el's. So thank you anyway and I'm sure your fix works. OK, bye. From monnier@iro.umontreal.ca Thu Jun 5 11:56:08 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=-2.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, HELO_LH_HOME,MURPHY_DRUGS_REL8,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC, VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 355) by emacsbugs.donarmstrong.com; 5 Jun 2008 18:56:08 +0000 Received: from ceviche.home (206-248-132-168.dsl.teksavvy.com [206.248.132.168]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m55Iu4VK032019 for <355@emacsbugs.donarmstrong.com>; Thu, 5 Jun 2008 11:56:06 -0700 Received: by ceviche.home (Postfix, from userid 20848) id D9F5BB4248; Thu, 5 Jun 2008 14:55:58 -0400 (EDT) From: Stefan Monnier To: jidanni@jidanni.org Cc: 355@debbugs.gnu.org, jpw@pobox.com Subject: Re: bug#355: M-x should prompt with function under cursor as default Message-ID: References: <878wxjepbp.fsf@jidanni.org> Date: Thu, 05 Jun 2008 14:55:58 -0400 In-Reply-To: <878wxjepbp.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 06 Jun 2008 01:58:34 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii tag 355 +wontfix JPW> patch follows. If you could test it JPW> --- keyboard.c > ^^thank you but in my "apt-get install emacs" world I > don't brush with .c's, and in fact have barely the brains to test > .el's. So thank you anyway and I'm sure your fix works. OK, bye. In any case, I don't think the functionality you're asking makes much sense: it is rather rare to do a M-x where the command you want to run happens to be under point. Stefan From jpw@pobox.com Thu Jun 5 12:13:01 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=-7.4 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,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; 5 Jun 2008 19:13:01 +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 m55JCtKc003878 for ; Thu, 5 Jun 2008 12:12:56 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4KtK-0007Tq-Jr for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 15:12:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4KtJ-0007SD-Kc for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 15:12:54 -0400 Received: from [199.232.76.173] (port=41798 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4KtJ-0007S6-Id; Thu, 05 Jun 2008 15:12:53 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:56251 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4KtJ-00025c-C6; Thu, 05 Jun 2008 15:12:53 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 2D8915A34; Thu, 5 Jun 2008 15:11:42 -0400 (EDT) Received: from mini.local (host81-158-23-41.range81-158.btcentralplus.com [81.158.23.41]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPA id 695DD5A30; Thu, 5 Jun 2008 15:11:32 -0400 (EDT) From: jpw@pobox.com (John Paul Wallington) To: jidanni@jidanni.org Cc: 355@debbugs.gnu.org, bug-gnu-emacs@gnu.org, emacs-devel@gnu.org Subject: Re: bug#355: M-x should prompt with function under cursor as default References: X-URL: http://www.shootybangbang.com/ X-Attribution: JPW X-NSA-Fodder: Legion of Doom AVN halcon CBNRC Afghanistan anarchy subversive X-Face: #uahb@^mo@bA"{q'"a4y[w$n3/V:haD\;YenWcT7)kXYx3/>#[DD9ExVe};9FG6X`l!Dm"V peub=u!&&?}s~{TOPtGdH)KA}/qCr;d"Gr*'9_V1PE@+K'tk2/Iq@PBKtJ+]&,CP9_Fl8'*R]LCR0| 6q;Xey'`:DX+)S.]p[KP^sNe`8B\W6(Nw{o5i)y+I!h=0bU5L`Tj`~Q0!G"t(s7o7eh)J\>P>,!~/w $$jGEVa%H%8(jTv Date: Thu, 05 Jun 2008 20:11:24 +0100 In-Reply-To: (John Paul Wallington's message of "Thu, 05 Jun 2008 02:18:29 +0100") Message-ID: User-Agent: Microsoft Gnus Express, Build 513.230 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: 3B457696-3333-11DD-BC02-F9737025C2AA-02562057!a-sasl-fastnet.pobox.com X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-CrossAssassin-Score: 2 I neglected to CC: bug-gnu-emacs in my original reply. Do the Emacs developers think that this feature is worth adding ? I wrote: > jidanni@jidanni.org writes: > >> 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. > > Hm. That's an interesting idea. > >> 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. > > Well, a patch follows. If you could test it, I would be interested to > see whether you liked it in regular use. I'll test it for a while too. --- keyboard.c.~1.959.~ 2008-06-02 22:07:24.000000000 +0100 +++ keyboard.c 2008-06-05 02:04:13.000000000 +0100 @@ -10451,6 +10451,7 @@ Lisp_Object prefixarg; { Lisp_Object function; + Lisp_Object symatpt; char buf[40]; int saved_last_point_position; Lisp_Object saved_keys, saved_last_point_position_buffer; @@ -10491,9 +10492,16 @@ restricting to the set of all defined commands. Don't provide any initial input. Save the command read on the extended-command history list. */ + + symatpt = call0 (intern ("function-called-at-point")); + symatpt = (NILP (call1 (Qcommandp, symatpt))) ? Qnil : symatpt; + + if (!NILP (symatpt)) + symatpt = SYMBOL_NAME (symatpt); + function = Fcompleting_read (build_string (buf), Vobarray, Qcommandp, - Qt, Qnil, Qextended_command_history, Qnil, + Qt, symatpt, Qextended_command_history, Qnil, Qnil); #ifdef HAVE_WINDOW_SYSTEM From jpw@pobox.com Thu Jun 5 14:15:30 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=-7.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jun 2008 21:15:30 +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 m55LFPsI002377 for ; Thu, 5 Jun 2008 14:15:27 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4Mnt-0006mX-BP for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 17:15:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4Mnq-0006kc-Jf for bug-gnu-emacs@gnu.org; Thu, 05 Jun 2008 17:15:24 -0400 Received: from [199.232.76.173] (port=48328 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4Mnq-0006kY-FO; Thu, 05 Jun 2008 17:15:22 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:49807 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4Mnq-0004jS-A7; Thu, 05 Jun 2008 17:15:22 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id A980C3D14; Thu, 5 Jun 2008 17:15:19 -0400 (EDT) Received: from mini.home (host81-158-23-41.range81-158.btcentralplus.com [81.158.23.41]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id D59623D11; Thu, 5 Jun 2008 17:15:14 -0400 (EDT) Cc: jidanni@jidanni.org, 355@debbugs.gnu.org, bug-gnu-emacs@gnu.org Message-Id: <6BC2DEF8-7094-408D-8476-BAC7815E5D09@pobox.com> From: John Paul Wallington To: emacs-devel@gnu.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: bug#355: M-x should prompt with function under cursor as default Date: Thu, 5 Jun 2008 22:15:04 +0100 References: X-Mailer: Apple Mail (2.919.2) X-Pobox-Relay-ID: 80735650-3344-11DD-B431-F9737025C2AA-02562057!a-sasl-fastnet.pobox.com X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-CrossAssassin-Score: 2 On 5 Jun 2008, at 20:11, John Paul Wallington wrote: > I neglected to CC: bug-gnu-emacs in my original reply. Do the Emacs > developers think that this feature is worth adding ? Ooops, I missed Stef's reply to the BTS saying no. Fair enough :) From jidanni@jidanni.org Fri Jun 6 10:43:46 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=-5.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 355) by emacsbugs.donarmstrong.com; 6 Jun 2008 17:43:46 +0000 Received: from blingymail-a3.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m56HheJd012410 for <355@emacsbugs.donarmstrong.com>; Fri, 6 Jun 2008 10:43:41 -0700 Received: from jidanni1.jidanni.org (122-127-46-14.dynamic.hinet.net [122.127.46.14]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id CA91214D776; Fri, 6 Jun 2008 10:43:39 -0700 (PDT) To: jpw@pobox.com, drew.adams@oracle.com Cc: 355@debbugs.gnu.org, emacs-devel@gnu.org Subject: Re: bug#355: M-x should prompt with function under cursor as default References: From: jidanni@jidanni.org Date: Sat, 07 Jun 2008 01:43:37 +0800 Message-ID: <87wsl2pigm.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii JPW> Do the Emacs developers think that this feature is worth adding ? JPW> Ooops, I missed Stef's reply to the BTS saying no. Fair enough :) SM> In any case, I don't think the functionality you're asking makes much SM> sense: it is rather rare to do a M-x where the command you want to run SM> happens to be under point. Just as often as C-h f and C-h v for me at least. And why not upgrade the sensitivity of C-h v and C-h f and also make their prompting default behavior unified with M-x. Incorporating the John Paul Wallington bug #355 and Drew Adams bug #371 patches would be a big step in that direction. From monnier@iro.umontreal.ca Fri Jun 6 11:18:48 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=-5.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 355) by emacsbugs.donarmstrong.com; 6 Jun 2008 18:18:49 +0000 Received: from mercure.iro.umontreal.ca (mercure.iro.umontreal.ca [132.204.24.67]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m56IIjrt021378 for <355@emacsbugs.donarmstrong.com>; Fri, 6 Jun 2008 11:18:46 -0700 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 6AC4A2CF787; Fri, 6 Jun 2008 14:18:44 -0400 (EDT) Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id AD7493FE0; Fri, 6 Jun 2008 14:18:33 -0400 (EDT) Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 978FC41BEC; Fri, 6 Jun 2008 14:18:33 -0400 (EDT) From: Stefan Monnier To: jidanni@jidanni.org Cc: jpw@pobox.com, drew.adams@oracle.com, 355@debbugs.gnu.org, emacs-devel@gnu.org Subject: Re: bug#355: M-x should prompt with function under cursor as default Message-ID: References: <87wsl2pigm.fsf@jidanni.org> Date: Fri, 06 Jun 2008 14:18:33 -0400 In-Reply-To: <87wsl2pigm.fsf@jidanni.org> (jidanni@jidanni.org's message of "Sat, 07 Jun 2008 01:43:37 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.71, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_REPONSE 0.11) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca JPW> Do the Emacs developers think that this feature is worth adding ? JPW> Ooops, I missed Stef's reply to the BTS saying no. Fair enough :) SM> In any case, I don't think the functionality you're asking makes much SM> sense: it is rather rare to do a M-x where the command you want to run SM> happens to be under point. > Just as often as C-h f and C-h v for me at least. And how often is that? For me, C-h f on the function at point is the most common use of C-h f (I'm looking at a piece of Elisp code and want to know what the function does). I have a hard time believe that you often do M-x where is the function at point. Please give me scenarios, Stefan From jidanni@jidanni.org Fri Jun 6 11:37:36 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=-5.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 355) by emacsbugs.donarmstrong.com; 6 Jun 2008 18:37:36 +0000 Received: from blingymail-a3.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m56IbXCe026084 for <355@emacsbugs.donarmstrong.com>; Fri, 6 Jun 2008 11:37:34 -0700 Received: from jidanni1.jidanni.org (122-127-46-14.dynamic.hinet.net [122.127.46.14]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 1699D14D769; Fri, 6 Jun 2008 11:37:33 -0700 (PDT) To: monnier@iro.umontreal.ca Cc: 355@debbugs.gnu.org, emacs-devel@gnu.org Subject: Re: bug#355: M-x should prompt with function under cursor as default References: From: jidanni@jidanni.org Date: Sat, 07 Jun 2008 02:37:29 +0800 Message-ID: <87lk1ipfyu.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii One puts the cursor on the name of a function, learns about it with C-h f, and if what one reads sounds good, gives it a roll (a trial) with M-x, Except no... this (M-x) time we have to type its name in even though we are sitting on top of it, because... SM> And how often is that? OK, only half the functions I read about sound good enough to use M-x on. From monnier@iro.umontreal.ca Tue Jun 10 12:36:46 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=-1.3 required=4.0 tests=AWL,BAYES_00,ONEWORD, VALID_BTS_CONTROL autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 10 Jun 2008 19:36:47 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5AJahJ8003849 for ; Tue, 10 Jun 2008 12:36:45 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAAh0TkhMCpcZ/2dsb2JhbACBW4c7qE0 X-IronPort-AV: E=Sophos;i="4.27,619,1204520400"; d="scan'208";a="22376714" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 10 Jun 2008 15:36:38 -0400 Received: from pastel.home ([76.10.151.25]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id QZU64038; Tue, 10 Jun 2008 15:36:38 -0400 Received: by pastel.home (Postfix, from userid 20848) id 599AC82F1; Tue, 10 Jun 2008 15:36:38 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: asad Message-ID: Date: Tue, 10 Jun 2008 15:36:38 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii tag 355 +wontfix thanks 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 Wed Jun 18 23:12:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 20 Sep 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator