From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9030: `where-is' doesn't play well `with with-output-to-string' Date: Tue, 12 Jul 2011 18:33:42 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310510073 10418 80.91.229.12 (12 Jul 2011 22:34:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2011 22:34:33 +0000 (UTC) Cc: 9030@debbugs.gnu.org To: PJ Weisberg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 00:34:29 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 1QglX9-0007GV-Ut for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 00:34:28 +0200 Original-Received: from localhost ([::1]:53991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QglX8-0008B5-Uw for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jul 2011 18:34:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QglWm-0008AN-Vp for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 18:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QglWl-0003I9-KQ for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 18:34:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QglWl-0003Hz-Aa for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2011 18:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QglWk-0007pr-HK; Tue, 12 Jul 2011 18:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jul 2011 22:34: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.131051003730106 (code B ref 9030); Tue, 12 Jul 2011 22:34:02 +0000 Original-Received: (at 9030) by debbugs.gnu.org; 12 Jul 2011 22:33:57 +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 1QglWe-0007pX-SL for submit@debbugs.gnu.org; Tue, 12 Jul 2011 18:33:57 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QglWd-0007pH-3H for 9030@debbugs.gnu.org; Tue, 12 Jul 2011 18:33:55 -0400 Original-Received: from localhost ([127.0.0.1]:42998) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QglWR-00063p-G4; Tue, 12 Jul 2011 18:33:43 -0400 X-Spook: BATF SAFE Consul lynch Al-Qaeda ASO New World Order red X-Ran: 4=tzDc0p~Khte1a3h(NimKeBFo/2*Fi`*2kJIX3thgIk=>lYfNf.n?aYxB (PJ Weisberg's message of "Fri, 8 Jul 2011 19:39:24 -0700") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 12 Jul 2011 18:34:02 -0400 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: , 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:48802 Archived-At: PJ Weisberg wrote: > (with-output-to-string > (where-is 'yank)) > > returns nil, and prints a message in the echo area. This one-line > change fixes it: [...] > --- a/lisp/help.el > +++ b/lisp/help.el > @@ -527,7 +527,7 @@ If INSERT (the prefix arg) is non-nil, insert the > message in the buffer." > (unless definition (error "No command")) > (let ((func (indirect-function definition)) > (defs nil) > - (standard-output (if insert (current-buffer) t))) > + (standard-output (if insert (current-buffer) standard-output))) > ;; In DEFS, find all symbols that are aliases for DEFINITION. > (mapatoms (lambda (symbol) > (and (fboundp symbol) 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)".