Mercurial > emacs
comparison lisp/mail/supercite.el @ 102651:7040f7fa8fef
(sc-version): Doc fix.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 19 Mar 2009 06:19:24 +0000 |
parents | 316f8efbaeae |
children | 328150f0cf76 |
comparison
equal
deleted
inserted
replaced
102650:316f8efbaeae | 102651:7040f7fa8fef |
---|---|
1966 (looking-at "^[ \t]*$") | 1966 (looking-at "^[ \t]*$") |
1967 (consp arg)) | 1967 (consp arg)) |
1968 (insert (sc-mail-field "sc-citation")) | 1968 (insert (sc-mail-field "sc-citation")) |
1969 (error "Line is already cited")))) | 1969 (error "Line is already cited")))) |
1970 | 1970 |
1971 ;; The argument logic here is crazy. | |
1971 (defun sc-version (message) | 1972 (defun sc-version (message) |
1972 "Echo the current version of Supercite in the minibuffer. | 1973 "Return the current Supercite version. |
1973 If MESSAGE is non-nil (interactively, with no prefix argument), | 1974 If MESSAGE is non-nil (interactively, with no prefix argument), |
1974 inserts the version string in the current buffer instead." | 1975 echoes the version in the minibuffer. Otherwise, inserts the |
1976 version at point." | |
1975 (interactive (list (not current-prefix-arg))) | 1977 (interactive (list (not current-prefix-arg))) |
1976 (let ((verstr (format "Using Supercite.el %s" emacs-version))) | 1978 (let ((verstr (format "Using Supercite.el %s" emacs-version))) |
1977 (if message | 1979 (if message |
1978 (message verstr) | 1980 (message verstr) |
1979 (insert "`sc-version' says: " verstr)))) | 1981 (insert "`sc-version' says: " verstr)))) |