From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Menu commands to M-x history? Date: Wed, 22 Jul 2009 04:18:52 +0200 Message-ID: References: <87skgqu2ce.fsf@olgas.newt.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248229150 12514 80.91.229.12 (22 Jul 2009 02:19:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jul 2009 02:19:10 +0000 (UTC) Cc: Bill Wohler , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 22 04:19:03 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 1MTRQ6-0002Dv-MD for ged-emacs-devel@m.gmane.org; Wed, 22 Jul 2009 04:19:02 +0200 Original-Received: from localhost ([127.0.0.1]:38918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTRQ5-0002bt-Vn for ged-emacs-devel@m.gmane.org; Tue, 21 Jul 2009 22:19:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTRQ1-0002bL-CQ for emacs-devel@gnu.org; Tue, 21 Jul 2009 22:18:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTRPy-0002al-1h for emacs-devel@gnu.org; Tue, 21 Jul 2009 22:18:57 -0400 Original-Received: from [199.232.76.173] (port=57612 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTRPx-0002ai-R4 for emacs-devel@gnu.org; Tue, 21 Jul 2009 22:18:53 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.210.172]:40035) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTRPw-0005eT-JO; Tue, 21 Jul 2009 22:18:52 -0400 Original-Received: by yxe2 with SMTP id 2so6309772yxe.14 for ; Tue, 21 Jul 2009 19:18: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 :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5Y5zPiD3IxEdKBAfMujdsDppAikjMtW46ZVKy+YCnyw=; b=kAHq+qLOotsaTd31qqCE8ztQVkUPl2RKJsMn8EFbp/jusBzWQW+g7g8t4ev72XZLWA WDYxzDSC4pqcWkdS0n7HzA4slZXzStVkLwywO41pt7aLwk2odRD03L4+/ZEluMXgsh1T x8GLiRgKZF9eI+iOxsxe5LbLKEj9ACqjSOUlE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=utswFSdaQbRNJgliIne7skUBYF7MATNHKVNuK9ItXJ7YTNnyf5mvkh0qC4tJMz293C LIHk6WzhJYh4gt72xlUyx/JpHdg164RzNq+yO8shn+siUSJLzl3nixy4WQDFKlli594l 6rfBeBJyjd6sMoTu71M5pmSH0gJdO1AdwPBp4= Original-Received: by 10.100.41.9 with SMTP id o9mr496321ano.155.1248229132240; Tue, 21 Jul 2009 19:18:52 -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:112976 Archived-At: On Wed, Jul 22, 2009 at 3:43 AM, Richard Stallman wrote: > =C2=A0 =C2=A0> Menu commands are all commands that can be started from M-= x. =C2=A0I think > =C2=A0 =C2=A0> they should be added to M-x history. > > =C2=A0 =C2=A0This seems like a good idea. Whether a command is run with M= -x, a menu > =C2=A0 =C2=A0item, or a button, the semantics should be identical. > > The only "M-x history" in Emacs is the history list used for reading > the argument of M-x. =C2=A0That should only be used for arguments that yo= u > enter in the M-x command. > > Keyboard keys also run commands that you could run with M-x, but > putting their names in the M-x history list would not be consistent or > useful. It would not be useful to put commands run by keyboard keys in the history of course since the user already knows a good way to start the command. I therefore did not suggest that. Sorry if you misunderstod me. Regarding the consistency I do not mind. We do similar things in other parts of Emacs. On this level, ie UI, the usefulness is more important, at least to my understanding. And the history list is only for usefulness, it's target is the user. Not the developer. > It is the same for menu-run commands. No. For menu-run commands the user may need some help. One of the reasons for using menus is that you do not know the command name. Putting the commands in the history makes it easier to remember. Consider the case that a user used a menu command and then a while later want to do the same thing again. Then having the command in the history would be useful (both to new and old users, actually). However what I wonder is if other find such a feature useful. It is not tremendously important, but small things adds together. > There is also command-history, which gets all commands > that read an argument from the terminal, whether or not they > were run from a menu. Yes, but that is not very helpful here, or?