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: Sun, 5 Dec 2010 10:51:59 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e64cbf6c07da2d0496a6b927 X-Trace: dough.gmane.org 1291671982 22717 80.91.229.12 (6 Dec 2010 21:46:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 21:46:22 +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:46:19 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 1PPisz-0001si-WB for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Dec 2010 22:46:18 +0100 Original-Received: from localhost ([127.0.0.1]:53286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPisz-0004cQ-7P for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Dec 2010 16:46:17 -0500 Original-Received: from [140.186.70.92] (port=56226 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPBGE-0001b5-60 for help-gnu-emacs@gnu.org; Sun, 05 Dec 2010 04:52:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPBGC-0002fv-Ue for help-gnu-emacs@gnu.org; Sun, 05 Dec 2010 04:52:02 -0500 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:62919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPBGC-0002fo-SF for help-gnu-emacs@gnu.org; Sun, 05 Dec 2010 04:52:00 -0500 Original-Received: by qwk4 with SMTP id 4so1336637qwk.0 for ; Sun, 05 Dec 2010 01:51:59 -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=Ih5kfA6AKaxMKQbYH3CP8Wjc2Bp0dx0grocWBCYTVA0=; b=ZSPBVhx46zdcM665tZPag6MJBaFF7XIipfoPspB7tBcCUSaUFZfo8nrjgxCy2EjCPe ZYd1FUOMHIjX7KB+DdSqjMBiperb1W0vRfH1DazTOXx/05VfQTccwsJInoG3x91ElXYc rUULubCUxqPoU8tgjDCQAvwtEN2idU8BFgsSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WITOZd2rs3x0GH7XdHfKi2QGXL+ru0Rhu68MlHfx0R+ECxcs/uKsZxGCMKh7MSiAXx VMIJbRHsp+J3ydyhqcjK4f4xA6BRnRaUbTEEb8zLAuuqfhWbE5jDwFU3ZHlWt9lMWWWX xV2jRWRYY0mImSaSJz7ldhp7u+Qbsv0RQ6L1U= Original-Received: by 10.229.238.16 with SMTP id kq16mr3122609qcb.134.1291542719879; Sun, 05 Dec 2010 01:51:59 -0800 (PST) Original-Received: by 10.229.214.18 with HTTP; Sun, 5 Dec 2010 01:51:59 -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:07 -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:75517 Archived-At: --0016e64cbf6c07da2d0496a6b927 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 --0016e64cbf6c07da2d0496a6b927 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello everyone,

in my init.el I have

(set-register ?i '(file . "~/.emacs.d/init.el"))

<= span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">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 mar= k when I set the register?

<= span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">Why ca= n't I just use:

<= span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">(set-register i '(file . "~/.emacs.d/init.el&quo= t;)) ; will say Symbol's value as variable is void:i

<= span class=3D"Apple-style-span" style=3D"border-collapse: collapse;">I trie= d to search in the documentation for set-register and variable definition b= ut I did not find
anything to rea= lly explain it.

Thanks for any help.

Aur=E9lien
--0016e64cbf6c07da2d0496a6b927--