From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: pp-eval-expression enhancements Date: Thu, 26 Jul 2007 00:40:20 +0300 Organization: JURTA Message-ID: <871wew40k2.fsf@jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185401360 6414 80.91.229.12 (25 Jul 2007 22:09:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2007 22:09:20 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 26 00:09:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IDp2f-00076u-6O for ged-emacs-devel@m.gmane.org; Thu, 26 Jul 2007 00:09:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDp2e-0006NL-Ks for ged-emacs-devel@m.gmane.org; Wed, 25 Jul 2007 18:09:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDp2c-0006N6-FB for emacs-devel@gnu.org; Wed, 25 Jul 2007 18:09:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDp2b-0006Mu-4F for emacs-devel@gnu.org; Wed, 25 Jul 2007 18:09:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDp2a-0006Mr-UI for emacs-devel@gnu.org; Wed, 25 Jul 2007 18:09:08 -0400 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IDp2Z-0007Ex-E5; Wed, 25 Jul 2007 18:09:07 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1IDp2W-0008W1-5G; Thu, 26 Jul 2007 01:09:04 +0300 In-Reply-To: (Drew Adams's message of "Tue\, 24 Jul 2007 13\:23\:52 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Scanner-Signature: 88f972a75cd389d721acc69b695bb680 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Not Detected X-SpamTest-Info: Profiles 1284 [July 25 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-detected-kernel: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75540 Archived-At: > It is quite convenient to have the result displayed > in another buffer, for examination or editing and copying. I often use `M-:' > the same way one would use `C-h f', `C-h k', and `C-h F': to get information > about something. I use both kinds of information during minibuffer input. Since it's impossible to find heuristics that would decide whether to display the result in the echo area, or to pop up a separate result buffer (because only the user can decide this), I use the following post-advice on shell-command: (when (memq last-input-char '(S-return ?\C-j)) (message "") (pop-to-buffer "*Shell Command Output*")) i.e. when the minibuffer with the command is exited with S-RET, then it displays the output buffer regardless on its size. If `M-:' created the buffer *Pp Eval Output* even without displaying it, it would be possible to create a similar hook to display it depending on some key used to exit the `M-:' minibuffer. -- Juri Linkov http://www.jurta.org/emacs/