Emacs symbolism

There are a couple of symbols the emacs‘ lisp interpreter gives special meaning to. Since for some reason these never made it into my long-term memory I collect them here for later reference. Quotes are copied from all over the internet. Reference to the source is given in the last column.

Symbol Meaning Reference
# The sharp quote (or function quote, or simply #‘) is an abbreviation for the function form. It is essentially a version of quote (or ‚) which enables byte-compilation, but its actual usefulness has changed throughout the years. reference
` Backquote constructs allow you to quote a list, but selectively evaluate elements of that list. reference
: A symbol whose name starts with a colon (‘:’) is called a keyword symbol. These symbols automatically act as constants, and are normally used only by comparing an unknown symbol with a few specific alternatives. reference
, Unquotes expressions in backquote-constructs. reference
' Prevents its single argument from beeing evaluated reference
? Introduces a „character literal“ (eg ?a). Evaluates to the printed representation of the character. reference

4 Kommentare

  1. In your list, you state that , prevents the argument from being evaluated. I think you actually meant to type ‚

    Also, you might want to include ? and ,@ in the list.

    1. Thanks for the hint. WordPress substitutes my apostrophe with another character, but using html entity works.

      I have never ever encountered ? and ,@ if you give me some pointers I like to include them!

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.