unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9030: `where-is' doesn't play well `with with-output-to-string'
@ 2011-07-09  2:39 PJ Weisberg
  2011-07-12 22:33 ` Glenn Morris
  2011-09-13  7:18 ` Glenn Morris
  0 siblings, 2 replies; 6+ messages in thread
From: PJ Weisberg @ 2011-07-09  2:39 UTC (permalink / raw)
  To: 9030

This expression:

(with-output-to-string
  (where-is 'yank))

returns nil, and prints a message in the echo area.  This one-line
change fixes it:

diff --git a/lisp/help.el b/lisp/help.el
index e6496f6..53e99e7 100644
--- 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)





^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-09-13  7:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-09  2:39 bug#9030: `where-is' doesn't play well `with with-output-to-string' PJ Weisberg
2011-07-12 22:33 ` Glenn Morris
2011-07-13  3:54   ` Stefan Monnier
2011-07-13  4:44     ` PJ Weisberg
2011-08-07 17:21       ` Stefan Monnier
2011-09-13  7:18 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).