From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.help Subject: Re: copy-region-as-kill => variable Date: Tue, 17 Jan 2006 02:46:19 +0100 Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137462180 32376 80.91.229.2 (17 Jan 2006 01:43:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2006 01:43:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 17 02:42:58 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eyfs7-0006NT-Uz for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jan 2006 02:42:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EyfuR-0003CI-75 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jan 2006 20:45:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: fiinbeck.math.ntnu.no Original-X-Trace: orkan.itea.ntnu.no 1137461963 7264 129.241.15.140 (17 Jan 2006 01:39:23 GMT) Original-X-Complaints-To: usenet@itea.ntnu.no Original-NNTP-Posting-Date: Tue, 17 Jan 2006 01:39:23 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix) Cancel-Lock: sha1:zhWg3YzMjZ5vs67LJglYf+vBzek= Original-Xref: shelby.stanford.edu gnu.emacs.help:137073 Original-To: help-gnu-emacs@gnu.org 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:32695 Archived-At: + Tim Johnson : | (defun copy-rad-tag-text () | "Copy text inside of radio pseudo-tag to custom variable" I should have guessed you had a more specialized itch scratch than you were letting on. 8-) | ;; I get a wrong-type-of-argument error with 'set, thus setq. Yeah, set does an extra indirection, since it is an ordinary function: Its first variable is evaluated - the value must be a symbol - and then the value is assigned to that symbol. So after, e.g., (let ((foo 'bar)) (set foo "Foo!")) then bar has the value "Foo!" It worked in my general function, but not in your specialized one. Usually it's setq you want - set is for special occasions. -- * Harald Hanche-Olsen - Debating gives most of us much more psychological satisfaction than thinking does: but it deprives us of whatever chance there is of getting closer to the truth. -- C.P. Snow