unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using passing the tempo-template user input to my function?
@ 2004-10-26 13:05 Hattuari
  2004-10-26 15:49 ` Kevin Rodgers
  2004-10-27 17:23 ` Vagn Johansen
  0 siblings, 2 replies; 10+ messages in thread
From: Hattuari @ 2004-10-26 13:05 UTC (permalink / raw)


I've tried all the ways I can come up with to pass the string returned from
querying the user to my own function.  I know the string is there, I can
paste it into the text at the point where I'm trying to paste a modified
version.

This is an example of code that pastes the original user text:

(tempo-define-template
 "array"
 '("typedef array<"
   (P "Data type: " data-type)
   ","
   (P "Number of components: 1 to 4 " data-order)
   "> Array" (s data-type)))
;;

Variations such as the following don't work:

;; this does not produce an error message, but fails to produce the intended
;; result.
"> Array" (plist-get paste-data-type-map (tempo-lookup-named 'data-type))))

;; This produces errors whether data-type is quoted or not.
"> Array" (plist-get paste-data-type-map (s 'data-type))))

If I explicitly pass the correct string to the function, the correct output
is generated.  Suggestions?
-- 
p->m == (*p).m == p[0].m

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-10-31 21:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).