From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T. V. Raman" Newsgroups: gmane.emacs.devel Subject: Re: pp-eval-expression enhancements Date: Sat, 4 Aug 2007 16:42:11 -0700 Message-ID: <18101.3795.372547.277141@gargle.gargle.HOWL> References: <871wew40k2.fsf@jurta.org> Reply-To: raman@users.sf.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186271035 32427 80.91.229.12 (4 Aug 2007 23:43:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2007 23:43:55 +0000 (UTC) Cc: rms@gnu.org, monnier@iro.umontreal.ca, drew.adams@oracle.com, emacs-devel@gnu.org To: juri@jurta.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 05 01:43:53 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 1IHTHU-0000hL-CI for ged-emacs-devel@m.gmane.org; Sun, 05 Aug 2007 01:43:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHTHR-0002Po-HU for ged-emacs-devel@m.gmane.org; Sat, 04 Aug 2007 19:43:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHTHN-0002PE-NP for emacs-devel@gnu.org; Sat, 04 Aug 2007 19:43:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHTHD-0002P2-OE for emacs-devel@gnu.org; Sat, 04 Aug 2007 19:43:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHTHD-0002Oz-Ii for emacs-devel@gnu.org; Sat, 04 Aug 2007 19:43:19 -0400 Original-Received: from alnrmhc12.comcast.net ([204.127.225.92]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IHTGp-0004QL-2i; Sat, 04 Aug 2007 19:42:55 -0400 Original-Received: from localhost (c-71-202-191-236.hsd1.ca.comcast.net[71.202.191.236]) by comcast.net (alnrmhc12) with ESMTP id <20070804234211b1200dpsage>; Sat, 4 Aug 2007 23:42:12 +0000 Original-Received: by localhost (Postfix, from userid 1000) id 7752F12A4071; Sat, 4 Aug 2007 16:42:11 -0700 (PDT) In-Reply-To: <871wew40k2.fsf@jurta.org> X-Mailer: VM alpha-478 under Emacs 22.1.50.10 (i686-pc-linux-gnu) x-attribution: tvr X-Detected-Kernel: NetCache Data OnTap 5.x 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:76037 Archived-At: My present solution to this problem is to use a personal wrapper around cl-prettyprint and cl-prettyexpand >>>>> "Juri" == Juri Linkov writes: >> 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. Juri> Juri> Since it's impossible to find heuristics that would Juri> decide whether to display the result in the echo area, Juri> or to pop up a separate result buffer (because only the Juri> user can decide this), I use the following post-advice Juri> on shell-command: Juri> Juri> (when (memq last-input-char '(S-return ?\C-j)) Juri> (message "") (pop-to-buffer "*Shell Command Output*")) Juri> Juri> i.e. when the minibuffer with the command is exited Juri> with S-RET, then it displays the output buffer Juri> regardless on its size. Juri> Juri> If `M-:' created the buffer *Pp Eval Output* even Juri> without displaying it, it would be possible to create a Juri> similar hook to display it depending on some key used Juri> to exit the `M-:' minibuffer. Juri> Juri> -- Juri Linkov http://www.jurta.org/emacs/ Juri> Juri> Juri> _______________________________________________ Juri> Emacs-devel mailing list Emacs-devel@gnu.org Juri> http://lists.gnu.org/mailman/listinfo/emacs-devel -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs