all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* :name or 'name?
@ 2013-01-21 18:26 Oleksandr Gavenko
  2013-01-21 18:45 ` Christopher Schmidt
  2013-01-21 18:53 ` Suvayu Ali
  0 siblings, 2 replies; 7+ messages in thread
From: Oleksandr Gavenko @ 2013-01-21 18:26 UTC (permalink / raw)
  To: help-gnu-emacs

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 ...))

use:

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

-- 
Best regards!




^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <mailman.18029.1358793499.855.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2013-01-21 23:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-21 18:26 :name or 'name? Oleksandr Gavenko
2013-01-21 18:45 ` Christopher Schmidt
2013-01-21 19:36   ` Oleksandr Gavenko
2013-01-21 21:07     ` Drew Adams
2013-01-21 18:53 ` Suvayu Ali
2013-01-21 19:29   ` Oleksandr Gavenko
     [not found] <mailman.18029.1358793499.855.help-gnu-emacs@gnu.org>
2013-01-21 23:47 ` Pascal J. Bourguignon

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.