From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#7967: 23.2.93; keybindings should be echoed in *Message* buffer Date: Thu, 3 Feb 2011 00:48:13 +0100 Message-ID: References: <87oc6utijr.fsf@niu.edu> <19785.59348.104612.86795@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296691584 32174 80.91.229.12 (3 Feb 2011 00:06:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Feb 2011 00:06:24 +0000 (UTC) Cc: 7967@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 03 01:06:12 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PkmiB-0000jS-DV for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Feb 2011 01:06:11 +0100 Original-Received: from localhost ([127.0.0.1]:53595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkmiA-0004Er-NP for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Feb 2011 19:06:10 -0500 Original-Received: from [140.186.70.92] (port=60248 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pkmhq-000466-0z for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2011 19:05:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pkmhp-0007hh-1M for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2011 19:05:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pkmho-0007hb-Vw for bug-gnu-emacs@gnu.org; Wed, 02 Feb 2011 19:05:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PkmJq-0004YJ-8d; Wed, 02 Feb 2011 18:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Feb 2011 23:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7967 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7967-submit@debbugs.gnu.org id=B7967.129669001017435 (code B ref 7967); Wed, 02 Feb 2011 23:41:02 +0000 Original-Received: (at 7967) by debbugs.gnu.org; 2 Feb 2011 23:40:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PkmIz-0004XA-Dj for submit@debbugs.gnu.org; Wed, 02 Feb 2011 18:40:09 -0500 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PkmIx-0004Wl-IC for 7967@debbugs.gnu.org; Wed, 02 Feb 2011 18:40:08 -0500 Original-Received: by eyd10 with SMTP id 10so450237eyd.3 for <7967@debbugs.gnu.org>; Wed, 02 Feb 2011 15:48:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=hTkpI8zrm4upNjKfvsjJZhK4gTUGtkeN0AoOY7ljTzo=; b=HPBOFEDFTnZct1W8w2Gise+zckRncuUvfArETMy88g6MaQ6IjZ8lxaw2J2cjpm4uNu h7d3X3uW5ZB2ldKZ+qoxXANJUnYEZuMUbOqmhSRFJ8OKJ7IhzEnXRouJufkzJIs92J6j OK46Qi1ftjCgRo+N61BPuwcCK0OCt0HhDuQrE= 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=CJNnsK7IcqWmGL7RQoC4YKfJnFt+i0kkHuQC3EYl8lh8+d6tCN5aUe+6OSJLpMgqf7 YirOp6yLA6bCmKPvY/RFvMFAwz8faQycG/XDDNClhwOvzn33lunaQUqHfr93G0+JvkWI 1pwvTlpKgOrBtCM6ZVZ6X6mEzORTipZrlnRJM= Original-Received: by 10.213.30.20 with SMTP id s20mr523182ebc.15.1296690513729; Wed, 02 Feb 2011 15:48:33 -0800 (PST) Original-Received: by 10.213.13.20 with HTTP; Wed, 2 Feb 2011 15:48:13 -0800 (PST) In-Reply-To: <19785.59348.104612.86795@gargle.gargle.HOWL> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 02 Feb 2011 18:41:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43866 Archived-At: On Thu, Feb 3, 2011 at 12:25 AM, Roland Winkler wrote: > On Thu Feb 3 2011 Lennart Borgman wrote: >> On Wed, Feb 2, 2011 at 7:09 PM, Roland Winkler wrote: >> > Execute any command foo with a keybinding in its "long form" M-x foo. >> > Emacs issues the message >> > >> > =C2=A0You can run the command `foo' with ... >> > >> > The default is to display this message for two seconds. >> > Then the message is gone for ever. =C2=A0I'd appreciate if this >> > messsage was echoed also in the *Message* buffer. >> >> I think it is a good suggestion. >> >> However while it can help newbies it might also disturb old users so >> it is probably best to make it default and have an option to turn it >> off. > > The experienced user can already switch off these messages > completely by means of the variable > > suggest-key-bindings > > So all I am suggesting is really: if the keybindings are given in > the message area (because suggest-key-bindings is non-nil), then > these messages should also be recorded in the *Messages* buffer. > All this is handled by the built-in function execute-extended-command, > which is why this problem goes beyond my lisp hacking skills. Maybe it would still be good with a separate option for recording the suggestions in the *Messages* buffer? I am not sure. To implement your suggestion all that is needed is to replace message2_nolog with message2 in Fexecute_extended_command in keyboard.c.