From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#4118: 23.1; eval-last-sexp-print-value is inconvenient Date: Sat, 15 Aug 2009 20:00:21 -0400 Message-ID: <19079.19477.34624.793366@winooski.ccs.neu.edu> References: <19073.20002.692770.552510@winooski.ccs.neu.edu> <87ocqkfxa5.fsf@mail.jurta.org> <19075.27103.685992.984191@winooski.ccs.neu.edu> <87fxbvp9e5.fsf@mail.jurta.org> <19076.48381.916404.208797@winooski.ccs.neu.edu> <87y6pm6kwt.fsf@mail.jurta.org> <19078.4514.641879.952867@winooski.ccs.neu.edu> <87eircy8ev.fsf@mail.jurta.org> Reply-To: Eli Barzilay , 4118@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250381266 28397 80.91.229.12 (16 Aug 2009 00:07:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 00:07:46 +0000 (UTC) Cc: 4118@emacsbugs.donarmstrong.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 16 02:07:38 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1McTHe-00075f-Jt for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Aug 2009 02:07:38 +0200 Original-Received: from localhost ([127.0.0.1]:35097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McTHe-0003KV-1s for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Aug 2009 20:07:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McTH3-00034p-Lh for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 20:07:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McTGx-00032l-2p for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 20:06:59 -0400 Original-Received: from [199.232.76.173] (port=57759 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McTGw-00032B-Bu for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 20:06:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59471) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1McTGv-00083d-5p for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2009 20:06:53 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7G06nAw014211; Sat, 15 Aug 2009 17:06:50 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7G05A5P013994; Sat, 15 Aug 2009 17:05:10 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Barzilay Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 16 Aug 2009 00:05:10 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4118 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4118-submit@emacsbugs.donarmstrong.com id=B4118.125038082312601 (code B ref 4118); Sun, 16 Aug 2009 00:05:10 +0000 Original-Received: (at 4118) by emacsbugs.donarmstrong.com; 16 Aug 2009 00:00:23 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from barzilay.org (winooski.ccs.neu.edu [129.10.115.117]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7G00L5u012594 for <4118@emacsbugs.donarmstrong.com>; Sat, 15 Aug 2009 17:00:22 -0700 Original-Received: from eli by barzilay.org with local (Exim 4.66) (envelope-from ) id 1McTAb-0006uy-1V; Sat, 15 Aug 2009 20:00:21 -0400 In-Reply-To: <87eircy8ev.fsf@mail.jurta.org> X-Mailer: VM 7.19 under Emacs 22.1.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 15 Aug 2009 20:06:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30247 Archived-At: On Aug 16, Juri Linkov wrote: > >> Wrapping an (insert ...) around the expression is not as easy as > >> typing `C-u C-x C-e', copying the character and undoing the change > >> with C-/. > > > > ...and this is a good description for a solution: have it print out > > the extra information only on something like an explicit positive > > prefix argument (eg, C-u C-1 C-x C-e), and otherwise don't show it. > > And then the number could mean the verbosity level, e.g. `C-1 C-x > C-e' prints octal and hex, and `C-2 C-x C-e' prints octal, hex and a > character. Cute idea, > But I don't see how to insert different representations to the > current buffer instead of displaying them in the echo area since > `C-u C-1 C-x C-e' and `C-1 C-x C-e' have the same numeric argument > `1'. but yes, that won't work as is. It could work as a verbosity level indicator for insertion into the buffer, and echo-area messages could still do the different output based on the number of times it was called. The echo area messages won't be consistent but that's not as important. And negative prefixes could be used for those rare cases where you want the verbose output into the echo area. Something like this: A prefix of 1 (or just C-u) -> output a plain number into the buffer 2 -> number + alternative radix outputs into the buffer 3 -> number + alternates + character into the buffer -1, -2, -3 -> same as above, but for the echo area And the above always behaves the same. *No* prefix means: show the plain number output in the echo area on first use number + alternates on second use (with no prefix, of course) number + alternates + character on the third use. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life!