Path: utzoo!utgpu!water!watmath!clyde!mtunx!whuts!homxb!ho7cad!msb From: msb@ho5cad.ATT.COM Newsgroups: comp.emacs Subject: does concat really return a string Message-ID: <324@ho7cad.ATT.COM> Date: 5 May 88 19:55:16 GMT Sender: nuucp@ho7cad.ATT.COM Lines: 39 I am trying to 'concat' a string to be ised in 'interactive' so that a default string shows up in the 'interactive' string. As a test case, I have the following sections of code. Doesn't seem that the return value of 'concat' can be fed to 'interactive'. What gives? Is there a good way to print an 'interactive' prompt of the form: "gimme a character [ character-chosen-last-time ]" Then assume that an empty character assumes the character-chosen-last-time value? **************************************************************** ;;; This one works ;;; ================================================================ ;;; (defun test-case (test-variable) ;;; "this is a test, only a test. Do not use it" ;;; (interactive "*cgimme a character") ;;; (message "character was %c" test-variable) ;;; ) ;;; ;;; ;;; This one chokes with the following error: ;;; Wrong type argument: listp, "*cgimme a character" ;;; ================================================================ ;;; (defun test-case (test-variable) ;;; "this is a test, only a test. Do not use it" ;;; (interactive (concat "*cgimme " "a " "character")) ;;; (message "character was %c" test-variable) ;;; ) ;;; ---------------------------------------------------------------------- Michael S. Balenger (201) 949-8789 AT&T Bell Labs Crawfords Corner Road ihnp4!ho5cad!msb Holmdel, NJ 07733