From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.devel Subject: Re: Menu commands to M-x history? Date: Tue, 28 Jul 2009 00:00:31 +0200 Message-ID: <7dbe73ed0907271500m7adfca48k72dd47f536e2d733@mail.gmail.com> References: <87skgqu2ce.fsf@olgas.newt.com> <7432.1248236149@olgas.newt.com> <7dbe73ed0907221134o1a1fe024k353b1a9a61482041@mail.gmail.com> <9D1E3CE97BF4491E973F872B00D6277D@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248732375 1617 80.91.229.12 (27 Jul 2009 22:06:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jul 2009 22:06:15 +0000 (UTC) Cc: rms@gnu.org, Drew Adams , emacs-devel@gnu.org To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 28 00:06:08 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MVYKc-0006uS-QA for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2009 00:06:07 +0200 Original-Received: from localhost ([127.0.0.1]:39556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVYKc-00057d-30 for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2009 18:06:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVYKX-00056n-0a for emacs-devel@gnu.org; Mon, 27 Jul 2009 18:06:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVYKR-00054M-4P for emacs-devel@gnu.org; Mon, 27 Jul 2009 18:05:59 -0400 Original-Received: from [199.232.76.173] (port=55843 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVYKQ-00054J-UU for emacs-devel@gnu.org; Mon, 27 Jul 2009 18:05:54 -0400 Original-Received: from mail-ew0-f228.google.com ([209.85.219.228]:62030) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVYFa-0000kQ-EN; Mon, 27 Jul 2009 18:00:54 -0400 Original-Received: by ewy28 with SMTP id 28so3393827ewy.42 for ; Mon, 27 Jul 2009 15:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=i5lsZZc2yqK0c2vz9I9bek18OhyYNWJRw0sZ3Vf31Bg=; b=oSl8mLscRi5NQr/o22OPdS7Yiou3obLxoIl2ZTbobYRPUjmjYVQPXgPTMUC8dGnwQw TbJoBcpXr2rgzh3tvaIX+8jdkX/iiT08MOmyXQh3VFbLWBlcdl86/jrfwS+ykMms1AZZ EsP4oCapaEiFBGnQuBkvt1y7BvQpSyAhxt6gI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=nITKQZOeFD25WJpWCIh35N4mTMAsbQVGaAHxFhAOb2ZmCk/PLdE6GNDwVRyXdiBOpE vf+Ut1UQ8S7SmMVzAudxNcN9Pxtl8SiC7ujc33aY010wcgvhh2SznbRN8X7jxkrxZwxq dNAJBT5QdKjq6D2zNSq8OAYC+JK/Fhab1Mmes= Original-Received: by 10.216.70.134 with SMTP id p6mr1713300wed.40.1248732051171; Mon, 27 Jul 2009 15:00:51 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:113259 Archived-At: > Matthias said: > =A0 =A0Quite often I execute the same M-x > =A0 =A0command over and over again, doing something else in between, and = if > =A0 =A0what I did in between included executing some menu commands I migh= t be > =A0 =A0annoyed to have to step back some extra steps in order to get at t= he > =A0 =A0command I want to run. > > Sorry Matthias, forgot to answer, but exactly why is it useful to > distinguish between commands started from the menu and from M-x > because of this? I don't believe that you think something like "ah, > wait, now I will do the next command from the menus to avoid getting > it into M-x history". Or do you actually do that? ;-) As I was trying to say earlier, I think I would be annoyed having "my precious M-x history polluted by "other stuff". I can see that at times it would be convenient to get at a previously executed "menu command". It would be a way to not having to reach for the mouse again (I'm mostly a keyboard guy). However, thinking about how annoyed I think I would be when I don't want this and comparing that with having to ask Emacs (via C-h k) what the command behind a menu option is, I would prefer not to have a thing like this. At least not enabled by default. I agree with you that commands executed via the keyboard are not the same thing (well, there are some *extremely* complicated ones which I *might* have wanted to know the name if instead, and then *theoretically* I *might* "be nice" to have them in some sort of history - yes, I am being very vague now, I know...) as menu executed commands so the "We cannot add all commands called interactively to the M-x history"-argument does not bite on me either. I took the liberty to check how this works in AutoCAD, a program that also has a sort of command line and where you can freely mix keyboard with mouse work in very convenient ways (you can start a command from a menu, the keyboard or a toolbar, and then "continue" the execution of command, that is to enter arguments, via the mouse or keyboard). However, it does not mix the command history like you are suggesting here. Commands initiated from the command line is what is available in the command line history. Commands initiated via mouse (menu or toolbar) is not in the command line history. AutoCAD has been around for many years and I know that many of its users are very keen on using the keyboard, and if "mixing the histories" had been a useful thing to have by default, I am sure it would have been by now. Of course, this is not a real argument, it's more of an example. I have one small "issue" that is very similar to this and which unfortunately :) argues in your direction and that is file name history. I use bookmarks quite much, to files and directories. From time to time, when doing C-x C-f I try to find a file that I previously opened using a bookmark, and each time I am a bit annoyed that I cannot find the file in the find-file history. So I have to do C-x r b again to jump to my bookmark. Now, I also use the `anything' package and there I have both bookmarks and file name history and recentf history etc etc, so most of the time I use that. By the way, someone mentioned that we could hint the user how he could run a command he just executed using the menu, like we do when the user M-x:es a command that has a keybinding. That suggestion I like very much. Okay, enough babbling from me. /Mathias PS. And no, I don't do the kind of thinking you suggested above :)