From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Aur=E9lien_Bottazzini?= Newsgroups: gmane.emacs.help Subject: Problem understanding set-register syntax Date: Mon, 6 Dec 2010 14:47:31 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636831cda2aecee0496be21eb X-Trace: dough.gmane.org 1291672358 24498 80.91.229.12 (6 Dec 2010 21:52:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 21:52:38 +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 22:52:34 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 1PPiz3-0004kY-BN for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Dec 2010 22:52:33 +0100 Original-Received: from localhost ([127.0.0.1]:52852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPiz2-00082z-Kh for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Dec 2010 16:52:32 -0500 Original-Received: from [140.186.70.92] (port=49145 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPbPh-0008WH-Jq for help-gnu-emacs@gnu.org; Mon, 06 Dec 2010 08:47:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPbPg-00006i-H8 for help-gnu-emacs@gnu.org; Mon, 06 Dec 2010 08:47:33 -0500 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:48393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPbPg-00006E-9K for help-gnu-emacs@gnu.org; Mon, 06 Dec 2010 08:47:32 -0500 Original-Received: by qyk7 with SMTP id 7so3445615qyk.0 for ; Mon, 06 Dec 2010 05:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=SDzPqYhlivsiekjAojFbcjbi/LIoiwSC6bZcJ17/mr4=; b=LMTCrlPyEHq9gHEN3CKKi/LMhhJOcMG9yoJQXNWBUZkxDY1N8BlUNSteOWpTUEq0mE 9yunYumBPrurCOQXtUadflpPL3hX8AusZF0cqu0qyoRVIwvyHrUiHQdRoIfJZ8ZYW/J0 sgKpdrGhQEdxIKfzF/b7/lGrRb9NHja0+SGq0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NmhWgkveMwJGLiol5MaYk+qc+0ERv7d4K7IKfiDv8LZqLIpviS2qCL++AaU4dyrykj IlMMfiKSEp4QcPUSxcGxn9H5wuRATl26KS4zymOclMxGOyMllQhpLX7sFJYRQgxHXjSZ xM/MGrDuLv/Av8yvrNSZ5U2tLpJAgBXSKqrLY= Original-Received: by 10.229.98.135 with SMTP id q7mr4304337qcn.286.1291643251255; Mon, 06 Dec 2010 05:47:31 -0800 (PST) Original-Received: by 10.229.214.18 with HTTP; Mon, 6 Dec 2010 05:47:31 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 06 Dec 2010 16:45:16 -0500 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:75519 Archived-At: --001636831cda2aecee0496be21eb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable (sorry if this email is a duplicate, but the first one was lost apparently) 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 a= s 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 --001636831cda2aecee0496be21eb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
<= span class=3D"Apple-style-span" style=3D"font-family: arial, sans-serif; fo= nt-size: 13px; border-collapse: collapse; ">(sorry if this email is a dupli= cate, but the first one was lost apparently)

Hello ev= eryone,

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 documentatio= n for set-register and variable definition but I did not find=
anything to really explain it.

=
Thanks for any help.