emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pp-eval-expression enhancements


From: T. V. Raman
Subject: Re: pp-eval-expression enhancements
Date: Sat, 4 Aug 2007 16:42:11 -0700

My present solution to this problem is to use a personal wrapper
around cl-prettyprint and cl-prettyexpand 

>>>>> "Juri" == Juri Linkov <address@hidden> 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 address@hidden
    Juri> http://lists.gnu.org/mailman/listinfo/emacs-devel

-- 
Best Regards,
--raman

      
Email:  address@hidden
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: address@hidden
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]