From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: Re: Tip of the day Date: 24 Jun 2007 22:51:20 GMT Organization: Sedgeboy Inc. Message-ID: References: <87ir9ddqxz.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1182728438 10741 80.91.229.12 (24 Jun 2007 23:40:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2007 23:40:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 25 01:40:37 2007 Return-path: Envelope-to: geh-help-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 1I2bgy-0005D1-Ih for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jun 2007 01:40:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2bgy-0003AK-4N for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jun 2007 19:40:28 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!nx01.iad01.newshosting.com!newshosting.com!post01.iad01!news.aliant.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Lines: 26 Original-X-Complaints-To: abuse@aliant.net Original-Xref: shelby.stanford.edu gnu.emacs.help:149671 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45257 Archived-At: On 2007-06-24, Adam wrote: > > Thanks Tassilo. > > Forgive my ignorance, I suppose really I was wanting > to give that function a test-run, by not including it > in my startup file, but by entering it into my Emacs > session. Then running (totd) or M-x totd > > Then including in .emacs, and binding to a key later. > > Is this possible, by entering the function into > the *scratch* buffer and evaluating it somehow. > Yes, if you copy the function to scratch, move the cursor to the line after the end of the function, you can evaluate it with C-x C-e. You can then run the code with M-x totd or M-: (totd) . Note that you should probably change the 'n' values in the concat strings to '\n' to get properly formatted output. HTH, Tyler