From: sokobania.01@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Symbol properties :prop vs 'prop
Date: Tue, 14 Oct 2014 08:33:18 -0700 (PDT) [thread overview]
Message-ID: <7b167aec-fcf6-4af8-817f-03611bd169a3@googlegroups.com> (raw)
In-Reply-To: <87k3454tqt.fsf@kuiper.lan.informatimago.com>
Le dimanche 12 octobre 2014 09:44:42 UTC+2, Pascal J. Bourguignon a écrit :
> Paul Rankin writes:
>
> > Is there any difference between naming a symbol property as :prop vs
> > 'prop? i.e. what does the colon ":" mean?
> > (put 'my-symbol :width 45)
> > (put 'my-symbol 'width 45)
>
> In emacs lisp, there's no difference.
You just need to be coherent of course!
ELISP> (put 'my-symbol :width 45)
45
ELISP> (get 'my-symbol :width)
45
ELISP> (get 'my-symbol 'width)
nil
ELISP> (eq 'width ':width)
nil
next prev parent reply other threads:[~2014-10-14 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11026.1413087622.1147.help-gnu-emacs@gnu.org>
2014-10-12 7:44 ` Symbol properties :prop vs 'prop Pascal J. Bourguignon
2014-10-13 10:54 ` Paul Rankin
2014-10-14 15:33 ` sokobania.01 [this message]
2014-10-12 4:17 Paul Rankin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7b167aec-fcf6-4af8-817f-03611bd169a3@googlegroups.com \
--to=sokobania.01@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).