unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* An interactive command definiftion
@ 2004-08-11 12:40 Rodolfo Medina
  0 siblings, 0 replies; 3+ messages in thread
From: Rodolfo Medina @ 2004-08-11 12:40 UTC (permalink / raw)


Hi, all.

Here's my question. In Gnu emacs lisp programming language:
first I define a variable called my-weather and assign a value to it by
saying, e.g.,

(setq my-weather 'sunshine)

. Then I want to define a command, let's call it manage-my-weather,
that prompts me the message:

my-weather is now: sunshine. If it is okay, press enter; if you to change
it, press c

. Of course, if my-weather were rain, the message should be:

my-weather is now: rain. If it is okay, press enter; if you to change it,
press c


. Then, after pressing c (and then enter, I suppose),
manage-my-weather should prompt this new message:

enter new value for my-weather

, this way allowing me to change my-weather's value at my pleasure.
Is it possible to do this, and how?

Thanks in advance,
                Rodolfo

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.803.1092228211.2011.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2004-08-11 15:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 12:40 An interactive command definiftion Rodolfo Medina
     [not found] <mailman.803.1092228211.2011.help-gnu-emacs@gnu.org>
2004-08-11 12:51 ` Oliver Scholz
2004-08-11 15:35   ` Rodolfo Medina

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).