From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marco Parrone Newsgroups: gmane.emacs.help Subject: Re: evaluate expression in scratch buffer Date: Thu, 22 Apr 2004 21:27:36 GMT Organization: TIN Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87n053vho7.fsf@marc0.dyndns.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0417840089==" X-Trace: sea.gmane.org 1082669902 22245 80.91.224.253 (22 Apr 2004 21:38:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Apr 2004 21:38:22 +0000 (UTC) Keywords: emacs, elisp, eval Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 22 23:38:02 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGltS-0007w0-00 for ; Thu, 22 Apr 2004 23:38:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGlmx-0005jI-Gk for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Apr 2004 17:31:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Language: it X-Accept-Language: it, en X-Country: Italy X-Attribution: marc0 X-Face: ]KIe+0@lNbQo2y\ey;]!*LKsR-0$V737yt[BnA*)c,)gu>IH>S}:"PPNWkV<}[ usLa_gJyB!BRUEC!~5OY;:`k1Tcv2g2<0|,'RI}ZhnPpaXC.,L^y?}R&FfrRiLE*b+AE, JY/a! `/ZN{E`NgLO_QV#s`!,#M%ppv@mcIb`K^/1``d^=o"AvteN1nNFyzU List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Mime-version: 1.0 Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17885 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17885 --===============0417840089== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= William Payne on Thu, 22 Apr 2004 23:04:03 +0200 writes: > Hello, I want to evaluate the following expression: > (insert (prin1-to-string (w32-select-font))) > > I read that I should evaluate it in the scratch buffer, so I typed it in > there...but what do I do to get the actual evaluation to occur? C-h a eval RET [Of these, the functions I find more useful are:] (snip) eval-buffer M-x eval-buffer RET Command: Execute the current buffer as Lisp code. (snip) eval-last-sexp C-x C-e Command: Evaluate sexp before point; print value in minibuffer. (snip) eval-region M-x eval-region RET Command: Execute the region as Lisp code. (snip) -- Marco Parrone (marc0) [0x45070AD6] --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAiDXOi2MRZ0UHCtYRAj7WAKDDPETnMQQbp5MdAaKIyNKpqWOPlACgg6Nb O8yGsIwnDZ7KOhLW4/UzWzQ= =Uq7T -----END PGP SIGNATURE----- --=-=-=-- --===============0417840089== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs --===============0417840089==--