;;; Commentary:
-;; This add-on evaluate an input string as lisp object and send a result
+;; This add-on evaluates an input string as lisp object and sends a result
;; as notice. Note the risky of this add-on.
;; To use, add the following line to your ~/.riece/init.el:
:prefix "riece-"
:group 'riece)
-(defcustom riece-eval-regexp "^, "
+(defcustom riece-eval-regexp "^, \\(.+\\)"
"*Pattern of string evaluating."
:type 'string
:group 'riece-eval)
(when (and riece-eval-enabled
(riece-message-own-p message)
(string-match riece-eval-regexp (riece-message-text message)))
- (let ((form (substring (riece-message-text message) 2))
+ (let ((form (match-string 1 (riece-message-text message)))
object string)
(condition-case err
(progn