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#9293: say what they are shadowed by Date: Mon, 22 Aug 2011 23:44:23 +0200 Message-ID: References: <87aabd1n1e.fsf@jidanni.org> 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 1314049551 30331 80.91.229.12 (22 Aug 2011 21:45:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Aug 2011 21:45:51 +0000 (UTC) Cc: 9293@debbugs.gnu.org, jidanni@jidanni.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 22 23:45:46 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QvcJV-0000pZ-71 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2011 23:45:45 +0200 Original-Received: from localhost ([::1]:51856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvcJU-0001MA-3c for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Aug 2011 17:45:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvcJR-0001Lr-6X for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2011 17:45:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvcJO-0002se-3e for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2011 17:45:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvcJO-0002sa-0r for bug-gnu-emacs@gnu.org; Mon, 22 Aug 2011 17:45:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QvcLh-0001b2-Go; Mon, 22 Aug 2011 17:48:01 -0400 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: Mon, 22 Aug 2011 21:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9293 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9293-submit@debbugs.gnu.org id=B9293.13140496306068 (code B ref 9293); Mon, 22 Aug 2011 21:48:01 +0000 Original-Received: (at 9293) by debbugs.gnu.org; 22 Aug 2011 21:47: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 1QvcKr-0001Zo-NK for submit@debbugs.gnu.org; Mon, 22 Aug 2011 17:47:09 -0400 Original-Received: from mail-ey0-f176.google.com ([209.85.215.176]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QvcKp-0001Zg-Pc for 9293@debbugs.gnu.org; Mon, 22 Aug 2011 17:47:08 -0400 Original-Received: by eyz10 with SMTP id 10so3606701eyz.21 for <9293@debbugs.gnu.org>; Mon, 22 Aug 2011 14:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=UWKlBTgfslRilfbfKUv8wx/1Iz+37yg37vpyINQTJ4E=; b=BIEO2EhpBL6HtpmrVEwcSxY2/Or/lktbBq25b/H38OemEMjznKV3wj8fFf3lup6n7/ kfotb5rrnYFcteov4G0DMofB4PBwjvqYAwpkCEHDQUJfrPDcTXDZPdJN2DAyi12qSvcR nxB5WYXvCzf1xlHoDb4a12YfZRHOluIX2mSzs= Original-Received: by 10.213.3.19 with SMTP id 19mr805929ebl.36.1314049483153; Mon, 22 Aug 2011 14:44:43 -0700 (PDT) Original-Received: by 10.213.19.132 with HTTP; Mon, 22 Aug 2011 14:44:23 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 22 Aug 2011 17:48:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50227 Archived-At: On Mon, Aug 22, 2011 at 23:29, Stefan Monnier wr= ote: > severity 9293 wishlist > thanks > >> =C2=A0 =C2=A0Tar mode defined in `tar-mode.el':... >> =C2=A0 =C2=A00 .. 9 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 digit-argu= ment =C2=A0(binding currently shadowed) > >> Shadowed by what? > >> =C2=A0 =C2=A0e .. f =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 tar-extrac= t =C2=A0(binding currently shadowed) > >> =C2=A0 =C2=A0C-d =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= tar-flag-deleted >> =C2=A0 =C2=A0RET =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= tar-extract >> =C2=A0 =C2=A0 =C2=A0(that binding is currently shadowed by another mode) >> =C2=A0 =C2=A0C-n =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= tar-next-line >> =C2=A0 =C2=A0C-p =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= tar-previous-line >> =C2=A0 =C2=A0SPC =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= tar-next-line >> =C2=A0 =C2=A0 =C2=A0(that binding is currently shadowed by another mode) > >> Say what mode on each of such lines! > > That would be nice, indeed. I agree. I took a look at this quite some time ago now and wrote the command describe-key-and-map-briefly (which is in ourcomment-utils.el in nXhtml). This uses some adhod guessing to find the keymap that the used key is defined in. Perhaps this can be expanded to take care of the case above too (I am not quite sure at the moment). The command itself is also useful and might replace describe-key-briefly. However when writing this command I noticed that there is not enough information available so some guessing must be done (or the information must be enhanced somehow, of course).