From: bg66 Date: Wed, 2 Feb 2005 03:51:32 +0000 (+0000) Subject: * riece-eval.el (riece-eval-regexp): Fix regexp. X-Git-Tag: riece-1_0_7~73 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=2f2fa84dcd93ada0f240bfc444f2c95ad2cb53f9;p=elisp%2Friece.git * riece-eval.el (riece-eval-regexp): Fix regexp. (riece-eval-display-message-function): Follow the change above. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a9f70b8..1721594 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-02-02 OHASHI Akira + + * riece-eval.el (riece-eval-regexp): Fix regexp. + (riece-eval-display-message-function): Follow the change above. + 2005-02-02 Daiki Ueno * riece-server.el (riece-close-server-process): Run diff --git a/lisp/riece-eval.el b/lisp/riece-eval.el index b5aaca5..dd107ee 100644 --- a/lisp/riece-eval.el +++ b/lisp/riece-eval.el @@ -39,7 +39,7 @@ :prefix "riece-" :group 'riece) -(defcustom riece-eval-regexp "^, " +(defcustom riece-eval-regexp "^, \\(.+\\)" "*Pattern of string evaluating." :type 'string :group 'riece-eval) @@ -58,7 +58,7 @@ (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