From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3757: 23.0.95; can you explain why C-u make it appear not in minibuffer Date: Sun, 05 Jul 2009 11:23:50 +0200 Message-ID: <878wj3iiu1.fsf@escher.local.home> References: <907065090907042125j47da8250re691e56de0c5529d@mail.gmail.com> Reply-To: Stephen Berman , 3757@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1246786761 15036 80.91.229.12 (5 Jul 2009 09:39:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jul 2009 09:39:21 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 3757@emacsbugs.donarmstrong.com To: waterloo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 05 11:39:13 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 1MNOBi-00054s-Bw for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jul 2009 11:39:10 +0200 Original-Received: from localhost ([127.0.0.1]:60534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNOBh-0000Mo-MZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jul 2009 05:39:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNOAC-0007qD-3a for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 05:37:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNOA7-0007nH-57 for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 05:37:34 -0400 Original-Received: from [199.232.76.173] (port=56482 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNOA5-0007mx-Ru for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 05:37:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53617) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNOA5-0005uW-7N for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2009 05:37:29 -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 n659bP73012081; Sun, 5 Jul 2009 02:37:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n659U5Ha010567; Sun, 5 Jul 2009 02:30:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stephen Berman Original-Sender: steve@escher.local.home Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 05 Jul 2009 09:30:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3757 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3757-submit@emacsbugs.donarmstrong.com id=B3757.12467858469594 (code B ref 3757); Sun, 05 Jul 2009 09:30:05 +0000 Original-Received: (at 3757) by emacsbugs.donarmstrong.com; 5 Jul 2009 09:24:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n659Nw4E009567 for <3757@emacsbugs.donarmstrong.com>; Sun, 5 Jul 2009 02:23:59 -0700 Original-Received: (qmail invoked by alias); 05 Jul 2009 09:23:52 -0000 Original-Received: from i59F56A52.versanet.de (EHLO escher.local.home) [89.245.106.82] by mail.gmx.net (mp004) with SMTP; 05 Jul 2009 11:23:52 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+F8ag6J4mFhZ2ZAfqlGZZw6IuDOKGGsJfw93DEcl CKtZirpe4gUoud Original-Received: by escher.local.home (Postfix, from userid 1000) id 76E631D1696; Sun, 5 Jul 2009 11:23:50 +0200 (CEST) In-Reply-To: <907065090907042125j47da8250re691e56de0c5529d@mail.gmail.com> (waterloo's message of "Sun, 5 Jul 2009 12:25:00 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 05 Jul 2009 05:37:34 -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:29183 gmane.emacs.pretest.bugs:24725 Archived-At: On Sun, 5 Jul 2009 12:25:00 +0800 waterloo wrote: > in 11.1.2 An Example: `print-elements-of-list' of `Instruction to > emacs lisp' , why C-u make the output not in minubuffer. > C-u is 4 by definition . > I can not understant why in the context. > can you explain more details or give some link ? I assume you are referring to this (in node (eintr)print-elements-of-list of the Introduction to Programming in Emacs Lisp): "Be sure to evaluate the last expression, `(print-elements-of-list animals)', by typing `C-u C-x C-e', that is, by giving an argument to `eval-last-sexp'. This will cause the result of the evaluation to be printed in the `*scratch*' buffer instead of being printed in the echo area." That is, C-u is not a prefix argument of `print-elements-of-list' but of `eval-last-sexp', and its meaning is explained in the doc string of `eval-last-sexp', which you can read by typing `C-h f eval-last-sexp': ,---- | eval-last-sexp is an interactive compiled Lisp function in `lisp-mode.el'. | | It is bound to C-x C-e. | | (eval-last-sexp eval-last-sexp-arg-internal) | | Evaluate sexp before point; print value in minibuffer. | Interactively, with prefix argument, print output into current buffer. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Truncates long output according to the value of the variables | `eval-expression-print-length' and `eval-expression-print-level'. `---- You need to use `eval-last-sexp' (or another evaluation method) because `print-elements-of-list' is not a command, i.e. an interactive function, since it lacks `(interactive)' in its definition. So you cannot call it by typing `M-x print-elements-of-list' but have to explicitly evaluate it. Steve Berman