From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: Problem understanding set-register syntax Date: Mon, 6 Dec 2010 14:46:16 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291675804 8568 80.91.229.12 (6 Dec 2010 22:50:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 22:50:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 06 23:49:59 2010 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.69) (envelope-from ) id 1PPjsc-0006lJ-Mn for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Dec 2010 23:49:58 +0100 Original-Received: from localhost ([127.0.0.1]:39355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPjsc-0002bn-4t for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Dec 2010 17:49:58 -0500 Original-Received: from [140.186.70.92] (port=57429 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPjp9-0000u7-7C for help-gnu-emacs@gnu.org; Mon, 06 Dec 2010 17:46:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPjp8-0004ip-5C for help-gnu-emacs@gnu.org; Mon, 06 Dec 2010 17:46:22 -0500 Original-Received: from smtpauth12.prod.mesa1.secureserver.net ([64.202.165.35]:41803) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PPjp7-0004iQ-Ro for help-gnu-emacs@gnu.org; Mon, 06 Dec 2010 17:46:22 -0500 Original-Received: (qmail 17320 invoked from network); 6 Dec 2010 22:46:18 -0000 Original-Received: from unknown (74.125.82.169) by smtpauth12.prod.mesa1.secureserver.net (64.202.165.35) with ESMTP; 06 Dec 2010 22:46:18 -0000 Original-Received: by wyj26 with SMTP id 26so5464197wyj.0 for ; Mon, 06 Dec 2010 14:46:16 -0800 (PST) Original-Received: by 10.227.151.9 with SMTP id a9mr6408586wbw.107.1291675576534; Mon, 06 Dec 2010 14:46:16 -0800 (PST) Original-Received: by 10.227.147.140 with HTTP; Mon, 6 Dec 2010 14:46:16 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:75524 Archived-At: On Mon, Dec 6, 2010 at 5:47 AM, Aur=E9lien Bottazzini wrote: > (sorry if this email is a duplicate, but the first one was lost apparentl= y) > Hello everyone, > in my init.el I have > (set-register ?i '(file . "~/.emacs.d/init.el")) > which allows me to quickly jump to my init file using C-x r j i > But I don't really understand the syntax. > Why do I have to use the exclamation mark when I set the register? > Why can't I just use: > (set-register i '(file . "~/.emacs.d/init.el")) ; will say Symbol's value= as > variable is void:i > I tried to search in the documentation for set-register and variable > definition but I did not find > anything to really explain it. > Thanks for any help. > Aur=E9lien English: !: exclamation mark (more commonly "exclamation point") ?: question mark Emacs: ?i: The character 'i' (which, technically, is equal to the number 105)= . i: A variable represented by the symbol i. Consider the difference between: int i =3D 0; and int 'i' =3D 0; -PJ