From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Glen Stark <mail@glenstark.net>
Newsgroups: gmane.emacs.help
Subject: a little help with  basic elisp
Date: Fri, 20 Feb 2015 06:47:04 GMT
Organization: Easynews - www.easynews.com
Message-ID: <ILAFw.813229$394.409278@fx25.am4>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: ger.gmane.org 1424415032 10211 80.91.229.3 (20 Feb 2015 06:50:32 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 20 Feb 2015 06:50:32 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 07:50:32 2015
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1YOhPx-000658-WB
	for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 07:50:30 +0100
Original-Received: from localhost ([::1]:59274 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1YOhPx-0007Fu-8R
	for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 01:50:29 -0500
Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!81.171.118.61.MISMATCH!peer01.fr7!news.highwinds-media.com!post01.fr7!fx25.am4.POSTED!not-for-mail
Original-Newsgroups: gnu.emacs.help
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
Original-Lines: 36
Original-X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise
	we will be unable to process your complaint properly.
X-Received-Body-CRC: 234614925
X-Received-Bytes: 1837
Original-Xref: usenet.stanford.edu gnu.emacs.help:210538
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:102815
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/102815>

Hi everyone

I'm having trouble with the basics of lisp, and I'd like some help 
understanding and correcting what I am doing wrong in the following mce:


(defun gas-push-sr-pair ()
  "I want to add a apair consisting of a the string I prompted for at the 
mini-buffer, and the string yo"
  (interactive)
  (let (to-string)
	(setq to-string (read-from-minibuffer (concat (thing-at-point 
'symbol) " to: ")))
	(add-to-list 'gas-sr-stack  '(to-string . "yo") )
	)
  )


When I run this, and do   (insert (pop gas-sr-stack)), I get the 
following:

  gas-pop-word: Wrong type argument: char-or-string-p, (to-string . "yo")

>From this I can see that I probably can't insert a char-or-string-p.  I 
guess I can figure that out -- it's not really part of my end goal 
problem anyway.

What's tripping me up is it seems that the values stored in the char-or-
string-p are to-string and "yo".

I wanted to store the value which is currently in to-string, and "yo".  

Can someone please explain to me what I am doing wrong?  I'd like to 
understand the language better, and of course solve my concrete problem.

Cheers