[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

:name or 'name?

From: Oleksandr Gavenko
Subject: :name or 'name?
Date: Mon, 21 Jan 2013 20:26:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Is that usual use :name instead of 'name in elisp code (in places where you
need symbol)?

For example instead of defining error as:

  (put 'mylib-error "Unknown mylib error")
  (put 'mylib-error 'error-conditions '(mylib-error error))
  (condition-case 'var BODY (mylib-error ...))


  (put :mylib-error "Unknown mylib error")
  (put :mylib-error 'error-conditions '(:mylib-error error))
  (condition-case 'var BODY (:mylib-error ...))

Best regards!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]