[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Erbot-cvs] Changes to erbot/erbeng.el
From: |
D . Goel |
Subject: |
[Erbot-cvs] Changes to erbot/erbeng.el |
Date: |
Sat, 08 Jan 2005 15:49:02 -0500 |
Index: erbot/erbeng.el
diff -u erbot/erbeng.el:1.10 erbot/erbeng.el:1.11
--- erbot/erbeng.el:1.10 Sat Jan 1 01:57:54 2005
+++ erbot/erbeng.el Sat Jan 8 20:36:45 2005
@@ -1,5 +1,5 @@
;;; erbeng.el ---
-;; Time-stamp: <2004-12-31 20:33:10 deego>
+;; Time-stamp: <2005-01-08 15:37:23 deego>
;; Copyright (C) 2002 D. Goel
;; Emacs Lisp Archive entry
;; Filename: erbeng.el
@@ -271,6 +271,27 @@
+;; proposed register syntax..
+(defun erbeng-register-syntax (fsbot-command priority check &optional
+ remap)
+
+"If CHECK is a function, then it is passed the user input as a
+string... If it claims a match, it should return (t arglist).
+Arglist is a list of arguments to be passed to the FSBOT-COMMAND.
+
+If CHECK is a regexp, it is matched against the user input string. If
+it is a match, all the submatches 1....n (NOT 0) are passed to the
+function as arguments in that order, except that you can remap using
+the optional REMAP list. That list is a list of numbers, like, say (0
+1 2 4).<-- this tells us that the arguments to be passed to the
+fsbot-command are the regexp-matches 0,1,2 4 in that order. If REMAP
+is not supplied, you can see that the default value is more-or-less
+equivalent to (1 2 3 4....)
+
+"
+nil)
+
+
(provide 'erbeng)
(run-hooks 'erbeng-after-load-hooks)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Erbot-cvs] Changes to erbot/erbeng.el,
D . Goel <=