all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3757: 23.0.95; can you explain why C-u make it appear not in minibuffer
@ 2009-07-05  4:25 waterloo
  2009-07-05  9:23 ` Stephen Berman
  0 siblings, 1 reply; 3+ messages in thread
From: waterloo @ 2009-07-05  4:25 UTC (permalink / raw)
  To: emacs-pretest-bug

[-- Attachment #1: Type: text/plain, Size: 6472 bytes --]

--text follows this line--
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 ?
thanks
waterloo2005@gmail.com



In GNU Emacs 23.0.95.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
 of 2009-06-21 on laptop
Windowing system distributor `The X.Org Foundation', version 11.0.10503000
configured using `configure  '--prefix=/usr' '--build=i686-pc-linux-gnu'
'--host=i686-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib' '--program-suffix=-emacs-23'
'--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x'
'--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png'
'--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf'
'--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod'
'--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus'
'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2
-march=pentium-m -pipe' 'LDFLAGS=-Wl,-O1''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: en_US.UTF-8
  value of $LC_CTYPE: zh_CN.UTF-8
  value of $LC_MESSAGES: en_US.UTF-8
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Info

Minor modes in effect:
  TeX-source-specials-mode: t
  minibuffer-depth-indicate-mode: t
  icicle-mode: t
  show-paren-mode: t
  display-time-mode: t
  global-auto-complete-mode: t
  desktop-save-mode: t
  yas/minor-mode: t
  auto-image-file-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <down-mouse-4>
<mouse-4> <down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4>
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4>
<help-echo> <help-echo> <menu-bar> <buffer> TAB <help-echo>
<tool-bar> <kill-buffer> <help-echo> <help-echo> <help-echo>
<menu-bar> <buffer> C-h <help-echo> <help-echo> <help-echo>
<tool-bar> <kill-buffer> <help-echo> <menu-bar> <buffer>
C-a <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <buffer> C-a <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5>
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4>
<down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4> <down-mouse-4>
<mouse-4> <down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4>
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4>
<down-mouse-5> <mouse-5> <down-mouse-4> <mouse-4> <double-down-mouse-4>
<double-mouse-4> <down-mouse-5> <mouse-5> <down-mouse-5>
<mouse-5> <down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4>
<down-mouse-4> <mouse-4> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <down-mouse-5> <mouse-5> <down-mouse-5>
<mouse-5> <double-down-mouse-5> <double-mouse-5> <down-mouse-4>
<mouse-4> <double-down-mouse-4> <double-mouse-4> <down-mouse-4>
<mouse-4> <double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4>
<down-mouse-4> <mouse-4> <double-down-mouse-4> <double-mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <down-mouse-4>
<mouse-4> <help-echo> <help-echo> <help-echo> <help-echo>
<down-mouse-5> <mouse-5> <down-mouse-5> <mouse-5> <help-echo>
<menu-bar> <buffer> C-a <help-echo> <down-mouse-4>
<mouse-4> <double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <down-mouse-4> <mouse-4> <double-down-mouse-4>
<double-mouse-4> <triple-down-mouse-4> <triple-mouse-4>
<triple-down-mouse-4> <triple-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <down-mouse-4> <mouse-4> <double-down-mouse-4>
<double-mouse-4> <down-mouse-4> <mouse-4> <double-down-mouse-4>
<double-mouse-4> <down-mouse-4> <mouse-4> <down-mouse-5>
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<down-mouse-4> <mouse-4> <down-mouse-4> <mouse-4> <help-echo>
<menu-bar> <buffer> C-a <help-echo> <down-mouse-4>
<mouse-4> <down-mouse-4> <mouse-4> <down-mouse-5> <mouse-5>
<double-down-mouse-5> <double-mouse-5> <down-mouse-5>
<mouse-5> <down-mouse-1> <mouse-movement> <mouse-movement>
<drag-mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> <help-echo>
<help-echo> <menu-bar> <buffer> C-b <down-mouse-1>
<mouse-movement> <mouse-movement> <help-echo> <drag-mouse-1>
<help-echo> <backspace> <down-mouse-1> <mouse-movement>
<mouse-movement> <mouse-movement> <mouse-movement>
<mouse-movement> <mouse-movement> <drag-mouse-1> \
<backspace> <down-mouse-1> <drag-mouse-1> <down-mouse-1>
<mouse-movement> <mouse-movement> <drag-mouse-1> <backspace>
<down-mouse-1> <mouse-1> C-x C-e <down-mouse-1> <mouse-movement>
<mouse-1> C-x C-e <down-mouse-1> <mouse-1> C-x C-e
C-u C-x C-e <menu-bar> <buffer> C-a <help-echo> <down-mouse-4>
<mouse-4> <down-mouse-5> <mouse-5> <down-mouse-4> <mouse-4>
<double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <down-mouse-5> <mouse-5> <double-down-mouse-5>
<double-mouse-5> <down-mouse-5> <mouse-5> <down-mouse-4>
<mouse-4> <double-down-mouse-4> <double-mouse-4> <triple-down-mouse-4>
<triple-mouse-4> <triple-down-mouse-4> <triple-mouse-4>
<down-mouse-5> <mouse-5> <double-down-mouse-5> <double-mouse-5>
M-x r e p o r <tab> <return>

Recent messages:

gazelle

giraffe

lion

tiger
nil
Computing completion candidates...

[-- Attachment #2: Type: text/html, Size: 9000 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#3757: 23.0.95; can you explain why C-u make it appear not in minibuffer
  2009-07-05  4:25 bug#3757: 23.0.95; can you explain why C-u make it appear not in minibuffer waterloo
@ 2009-07-05  9:23 ` Stephen Berman
  2009-07-05 10:27   ` waterloo
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Berman @ 2009-07-05  9:23 UTC (permalink / raw)
  To: waterloo; +Cc: emacs-pretest-bug, 3757

On Sun, 5 Jul 2009 12:25:00 +0800 waterloo <waterloo2005@gmail.com> 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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#3757: 23.0.95; can you explain why C-u make it appear not in  minibuffer
  2009-07-05  9:23 ` Stephen Berman
@ 2009-07-05 10:27   ` waterloo
  0 siblings, 0 replies; 3+ messages in thread
From: waterloo @ 2009-07-05 10:27 UTC (permalink / raw)
  To: Stephen Berman; +Cc: emacs-pretest-bug, 3757

[-- Attachment #1: Type: text/plain, Size: 1910 bytes --]

Thanks a lot !

2009/7/5 Stephen Berman <stephen.berman@gmx.net>

> On Sun, 5 Jul 2009 12:25:00 +0800 waterloo <waterloo2005@gmail.com> 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
>

[-- Attachment #2: Type: text/html, Size: 2447 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-05 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-05  4:25 bug#3757: 23.0.95; can you explain why C-u make it appear not in minibuffer waterloo
2009-07-05  9:23 ` Stephen Berman
2009-07-05 10:27   ` waterloo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.