unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Tip of the day
Date: 24 Jun 2007 22:51:20 GMT	[thread overview]
Message-ID: <slrnf7u0rm.hp2.tyler.smith@blackbart.mynetwork> (raw)
In-Reply-To: f5mpak$k5b$1@lust.ihug.co.nz

On 2007-06-24, Adam <nospam@example.com> 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 <ret> or M-: (totd) <ret>.

Note that you should probably change the 'n' values in the concat
strings to '\n' to get properly formatted output.

HTH,

Tyler

  reply	other threads:[~2007-06-24 22:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-24 20:32 Tip of the day Adam
2007-06-24 20:43 ` Tassilo Horn
2007-06-24 21:58   ` Adam
2007-06-24 22:51     ` Tyler Smith [this message]
2007-06-24 23:13       ` Adam
2007-06-25  6:58       ` Christian Herenz
2007-06-25  9:20         ` Tassilo Horn
  -- strict thread matches above, loose matches on Subject: below --
2003-04-05 20:39 Tip of the day: buffer navigation with global mark Kai Großjohann
2003-04-07 15:35 ` Tip of the day Robert Epprecht
2003-04-07 17:00   ` Kai Großjohann
2003-04-07 18:47   ` David Kastrup
2003-04-07 19:28     ` Robert Epprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnf7u0rm.hp2.tyler.smith@blackbart.mynetwork \
    --to=tyler.smith@mail.mcgill.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).