unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hattuari <susudata@setidava.kushan.aa>
Subject: Re: Using passing the tempo-template user input to my function?
Date: Sat, 30 Oct 2004 08:11:43 -0400	[thread overview]
Message-ID: <zM2dnVK1BdEfGB7cRVn-sA@speakeasy.net> (raw)
In-Reply-To: wk8y9soz18.fsf@hotmail.com

Vagn Johansen wrote:

> Hattuari <susudata@setidava.kushan.aa> writes:
> 
>> I've tried all the ways I can come up with to pass the string returned
>> from querying the user to my own function.
> 
> [...]
> 
>> If I explicitly pass the correct string to the function, the correct
>> output
>> is generated.  Suggestions?
> 
> Use your own query-function and a global variable.
> 
> For example
> 
>     (defvar xyz-name nil)
> 
>     (defun xyz-read ()
>         (interactive)
>         (setq xyz-name (read-from-minibuffer "xyz-name? ")))
> 
>     (defun xyz-func ()
>         (upcase xyz-name))
> 
>     (tempo-define-template "xyz"
>         '("xyz { " (xyz-read) " } { " 'xyz-name " } { " (xyz-func) " }" )
>         "xyz" "desc" 'elisp-tempo-tags)
> 

I just wanted to let you know I didn't ignore this.  I did look at the code
you posted, and tried a few variations.  The reason I'm exploring
alternative approaches is that I simply came to the conclusion that I need
to work on the fundamentals of Lisp a bit more.  I've been stabbing in the
dark at my .emacs for years without really understanding what I'm doing.
I've wasted a lot of time trying to accomplish 'simple' things because I
didn't know what I was doing.
-- 
p->m == (*p).m == p[0].m

      reply	other threads:[~2004-10-30 12:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26 13:05 Using passing the tempo-template user input to my function? Hattuari
2004-10-26 15:49 ` Kevin Rodgers
2004-10-27  6:15   ` Hattuari
2004-10-27 16:59     ` Hattuari
2004-10-31 15:22       ` Kai Grossjohann
     [not found]       ` <mailman.6359.1099233079.2017.help-gnu-emacs@gnu.org>
2004-10-31 16:02         ` Hattuari
     [not found]           ` <mailman.6437.1099256821.2017.help-gnu-emacs@gnu.org>
2004-10-31 21:46             ` Hattuari
2004-10-31 21:56           ` Kai Grossjohann
2004-10-27 17:23 ` Vagn Johansen
2004-10-30 12:11   ` Hattuari [this message]

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=zM2dnVK1BdEfGB7cRVn-sA@speakeasy.net \
    --to=susudata@setidava.kushan.aa \
    /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).