From: ueno Date: Sun, 19 Oct 2003 04:30:21 +0000 (+0000) Subject: * riece-version.el (riece-extended-version): Remove interactive spec. X-Git-Tag: riece-0_1_4~7 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2f7f3cf97a82a26e8519fe0a6d708e30fcce24;p=elisp%2Friece.git * riece-version.el (riece-extended-version): Remove interactive spec. (riece-version): New command. * riece.el (riece-command-map): Bind "V" to riece-version. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 48a76fc..aae7b39 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2003-10-19 Daiki Ueno + * riece-version.el (riece-extended-version): Remove interactive spec. + (riece-version): New command. + * riece.el (riece-command-map): Bind "V" to riece-version. + * riece-options.el (riece-command-prefix): New user option. (riece-tab-stop-list): Abolish. diff --git a/lisp/riece-version.el b/lisp/riece-version.el index 87326cb..93b7e52 100644 --- a/lisp/riece-version.el +++ b/lisp/riece-version.el @@ -60,7 +60,6 @@ string, be sure to use a valid format, see RFC 2616." (defun riece-extended-version () "Stringified Riece version and Emacs version. See the variable `riece-user-agent'." - (interactive) (let* ((riece-v (concat riece-product-name "/" (prin1-to-string riece-version-number t))) @@ -103,6 +102,14 @@ See the variable `riece-user-agent'." (when emacs-v (concat " " emacs-v)))))) +(defun riece-version (&optional arg) + "Version number of this version of Riece. +If ARG, use user-agent format." + (interactive "P") + (if arg + (message "%s" (riece-extended-version)) + (message "%s" riece-version))) + (provide 'riece-version) ;;; riece-version.el ends here diff --git a/lisp/riece.el b/lisp/riece.el index 1cf4769..d6994bb 100644 --- a/lisp/riece.el +++ b/lisp/riece.el @@ -192,7 +192,8 @@ If optional argument SAFE is nil, overwrite previous definitions." "o" riece-command-set-operators "\C-p" riece-command-part "r" riece-command-configure-windows - "v" riece-command-set-speakers) + "v" riece-command-set-speakers + "V" riece-version) (set-keymap-parent riece-command-map riece-dialogue-mode-map) (riece-define-keys riece-user-list-mode-map