美文网首页
Elisp笔记

Elisp笔记

作者: Elinx | 来源:发表于2016-10-25 16:25 被阅读38次
  • M-x ielm enter into a interactive elisp evaluation mode
  • difference between dotted pair and list:
    • CDR of pairs need not to be a list
    • list is more convenient for no dot notation
    • listp consp are identical on pair or list
    • use a prime notation on pair definition
  • optional argument: put keyword &optional before actual arguments; if a argument is both needed and optional, elisp prefer it to be optional
  • reset argument: one can have a function that takes unspecified any number of arguments. And &reset before parameter after last argument, the parameter might be a list or nil
  • property list: a list of paired elements. Each of the pairs associated with a property name which is a symbol with a property or value. I usually see symbol as name with a colon prefix.

相关文章

网友评论

      本文标题:Elisp笔记

      本文链接:https://www.haomeiwen.com/subject/bniruttx.html