erc-discuss
[Top][All Lists]
Advanced

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

[Erc-discuss] define-erc-module `definition-name's


From: Johan Bockgård
Subject: [Erc-discuss] define-erc-module `definition-name's
Date: Thu, 27 Jul 2006 23:19:54 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Make find-function and find-variable find the names constructed by
define-erc-module (in Emacs 22):


Index: erc.el
===================================================================
RCS file: /cvsroot/erc/erc/erc.el,v
retrieving revision 1.815
diff -u -r1.815 erc.el
--- erc.el      6 Apr 2006 02:27:29 -0000       1.815
+++ erc.el      27 Jul 2006 17:28:00 -0000
@@ -1230,7 +1230,11 @@
                (format "erc-%s-mode"
                        (downcase (symbol-name alias)))))
             (quote
-             ,mode))))))
+             ,mode)))
+       ;; For find-function and find-variable.
+       (put ',mode    'definition-name ',name)
+       (put ',enable  'definition-name ',name)
+       (put ',disable 'definition-name ',name))))
 
 (put 'define-erc-module 'doc-string-elt 3)

-- 
Johan Bockgård





reply via email to

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