all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem understanding set-register syntax
@ 2010-12-06 13:47 Aurélien Bottazzini
  2010-12-06 22:46 ` PJ Weisberg
  0 siblings, 1 reply; 5+ messages in thread
From: Aurélien Bottazzini @ 2010-12-06 13:47 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

(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 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élien

[-- Attachment #2: Type: text/html, Size: 2710 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Problem understanding set-register syntax
@ 2010-12-05  9:51 Aurélien Bottazzini
  2010-12-06 22:23 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Aurélien Bottazzini @ 2010-12-05  9:51 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

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élien

[-- Attachment #2: Type: text/html, Size: 3044 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-06 22:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 13:47 Problem understanding set-register syntax Aurélien Bottazzini
2010-12-06 22:46 ` PJ Weisberg
  -- strict thread matches above, loose matches on Subject: below --
2010-12-05  9:51 Aurélien Bottazzini
2010-12-06 22:23 ` Drew Adams
2010-12-06 22:54   ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.