From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: Using setq to obtain a symbol from a list, so that I can assign a function to it Date: Tue, 22 Apr 2008 10:22:45 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86d4oh9anu.fsf@lifelogs.com> References: <48505b79-009c-42c9-912f-219a06474731@f24g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208879113 21814 80.91.229.12 (22 Apr 2008 15:45:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2008 15:45:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 22 17:45:38 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JoKfb-0000IM-CR for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2008 17:44:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoKev-0008PA-T6 for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2008 11:43:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-X-Trace: news.albasani.net sRhsMKJCzkg9VhbBAW36Q9rirRA3p/L9VySrcr2dKbTQgCjKk6KT8LikEAXl+DujnYd+q41LClJeGynh2aBFaMlttJNCaGKMM0KvW+y/FvFbbDxItVHdktE6Ra0fPHVo Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Tue, 22 Apr 2008 15:19:43 +0000 (UTC) X-User-ID: kOeeosIx5RJy5FEknPzTaXcCqXUVw5mxluNwR8fFTjc= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:AqCOa43XIC3U4stQ4CWed68pnIQ= sha1:npUK2n5lITpvgpvDCAD6VjUR3is= User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: vLHg5fLIcLwigzBWPo/KDv2gkDq0bBTZishnSi2YxWY= Original-Xref: shelby.stanford.edu gnu.emacs.help:158113 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53475 Archived-At: On Mon, 21 Apr 2008 19:28:03 -0700 (PDT) srinik001@hotmail.com wrote: s> So, I am trying to write a tool that will enable me to write specific s> XML files by prompting me to enter values. Here is how I am trying to s> do it. You may want to look at the various templating packages available, in case one of them does what you want. Check out skeleton.el in particular (http://www.emacswiki.org/cgi-bin/wiki/SkeletonMode for some examples) since any element of the template can itself be a template. That will probably save you a lot of time. Anytime you find yourself auto-generating functions you should wonder if your data structure could be better (sometimes the answer is 'no' :) Ted