From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9030: `where-is' doesn't play well `with with-output-to-string' Date: Sun, 07 Aug 2011 13:21:42 -0400 Message-ID: References: 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: dough.gmane.org 1312737735 14607 80.91.229.12 (7 Aug 2011 17:22:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2011 17:22:15 +0000 (UTC) Cc: "9030@debbugs.gnu.org" <9030@debbugs.gnu.org> To: PJ Weisberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 07 19:22:10 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 1Qq73C-0007aF-0Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Aug 2011 19:22:10 +0200 Original-Received: from localhost ([::1]:45054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq73B-0001sh-FM for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Aug 2011 13:22:09 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq738-0001sb-PO for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2011 13:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qq737-0007Jy-Ee for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2011 13:22:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq737-0007Js-9l for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2011 13:22:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qq742-0005gw-Cd; Sun, 07 Aug 2011 13:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Aug 2011 17:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9030-submit@debbugs.gnu.org id=B9030.131273776421848 (code B ref 9030); Sun, 07 Aug 2011 17:23:02 +0000 Original-Received: (at 9030) by debbugs.gnu.org; 7 Aug 2011 17:22:44 +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 1Qq73k-0005gL-Ht for submit@debbugs.gnu.org; Sun, 07 Aug 2011 13:22:44 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qq73j-0005gE-37 for 9030@debbugs.gnu.org; Sun, 07 Aug 2011 13:22:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAFrJPk5FxKeo/2dsb2JhbABCpzR4gUABAQQBViMQCzQSFBgNJIgAuGmGRgSfVYQx X-IronPort-AV: E=Sophos;i="4.67,333,1309752000"; d="scan'208";a="129416522" Original-Received: from 69-196-167-168.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.168]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 07 Aug 2011 13:21:43 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C616266386; Sun, 7 Aug 2011 13:21:42 -0400 (EDT) In-Reply-To: (PJ Weisberg's message of "Tue, 12 Jul 2011 21:44:26 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 07 Aug 2011 13:23:02 -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:49939 Archived-At: >>> Tangentially, I wonder why where-is needs an optional INSERT argument >>> that means "don't print the result, instead insert it (oh, and use a >>> slightly different format)". >> It's clearly meant for interactive use. =A0I'm not sure if it answers yo= ur >> question, tho. > For what it's worth, the code that gives what I was actually trting to > get from `what-is' is `(mapcar 'key-description (where-is-internal > foo))'. I don't know if there's a way to get that without using a > function with "internal" in the name. Yes, this is not quite right: where-is-internal is not nearly as internal as the name implies. It's just the natural function to use, whereas where-is is the corresponding command. Maybe we should fix the names to make where-is-internal less scary. Stefan