From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Comparing against the single-quote symbol ' Date: Tue, 10 Jun 2008 19:07:26 +0200 Organization: Organization?!? Message-ID: <85tzg1w75d.fsf@lola.goethe.zz> References: <59b99487-d20b-4381-8a11-6d8b7d31f4ad@d45g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1213119738 20721 80.91.229.12 (10 Jun 2008 17:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2008 17:42:18 +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 Jun 10 19:43:01 2008 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 1K67rw-0002L4-BP for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jun 2008 19:42:52 +0200 Original-Received: from localhost ([127.0.0.1]:46900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K67r9-0000M2-0M for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jun 2008 13:42:03 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:PNjxuxqVeJXQOeZQ/zTwKTn0ZWg= Original-Lines: 25 Original-NNTP-Posting-Date: 10 Jun 2008 19:07:26 CEST Original-NNTP-Posting-Host: 5847842e.newsspool3.arcor-online.net Original-X-Trace: DXC=AHjZdjB^C5MOK`; S:bhJ\6ZobH 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:54672 Archived-At: Nordlöw writes: > How do I explicitly compare against the single-quote symbol ' in emacs > lisp programs? > > I thought I could use this expression > (equal prefix \') > > where the value the symbol `prefix' is > \' > > but \' is not allowed in lisp-code; Since when? > it complains about void variable \' Sure. The symbol \' has no variable value by default. If you don't want to access its variable value but rather its symbol, you need to quote it. And sure enough '\' works just fine (even though it looks misleadingly symmetric). -- David Kastrup, Kriemhildstr. 15, 44793 Bochum