aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2011-04-21 04:45:31 +0200
committerJuanma Barranquero2011-04-21 04:45:31 +0200
commit58d468b44d8e8b639e8dd13f9895516d30bcbba5 (patch)
treec1b3860bb40246491697daeec290fb1fcdc501b8
parent40c9205d587f0b0ae88c683cd523b125eeb2c39e (diff)
downloademacs-58d468b44d8e8b639e8dd13f9895516d30bcbba5.tar.gz
emacs-58d468b44d8e8b639e8dd13f9895516d30bcbba5.zip
lisp/play/doctor.el: Fix typos in docstrings.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/play/doctor.el16
2 files changed, 13 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 13561921b1f..77c586c47fb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-04-21 Juanma Barranquero <lekktu@gmail.com>
2
3 * play/doctor.el (doc$, doctor-$, doctor-read-print, doctor-read-token)
4 (doctor-nounp, doctor-pronounp): Fix typos in docstrings.
5
12011-04-15 Juanma Barranquero <lekktu@gmail.com> 62011-04-15 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * mouse-drag.el (mouse-drag-throw): Fix typo in docstring. 8 * mouse-drag.el (mouse-drag-throw): Fix typo in docstring.
diff --git a/lisp/play/doctor.el b/lisp/play/doctor.el
index 6a21f035cd2..fd69497dc42 100644
--- a/lisp/play/doctor.el
+++ b/lisp/play/doctor.el
@@ -61,11 +61,11 @@
61(defun doc// (x) x) 61(defun doc// (x) x)
62 62
63(defmacro doc$ (what) 63(defmacro doc$ (what)
64 "quoted arg form of doctor-$" 64 "Quoted arg form of doctor-$."
65 (list 'doctor-$ (list 'quote what))) 65 (list 'doctor-$ (list 'quote what)))
66 66
67(defun doctor-$ (what) 67(defun doctor-$ (what)
68 "Return the car of a list, rotating the list each time" 68 "Return the car of a list, rotating the list each time."
69 (let* ((vv (symbol-value what)) 69 (let* ((vv (symbol-value what))
70 (first (car vv)) 70 (first (car vv))
71 (ww (append (cdr vv) (list first)))) 71 (ww (append (cdr vv) (list first))))
@@ -562,8 +562,8 @@ reads the sentence before point, and prints the Doctor's answer."
562(defun doctor-meaning (x) (get x 'doctor-meaning)) 562(defun doctor-meaning (x) (get x 'doctor-meaning))
563 563
564(defmacro doctor-put-meaning (symb val) 564(defmacro doctor-put-meaning (symb val)
565 "Store the base meaning of a word on the property list." 565 "Store the base meaning of a word on the property list."
566 (list 'put (list 'quote symb) ''doctor-meaning val)) 566 (list 'put (list 'quote symb) ''doctor-meaning val))
567 567
568(doctor-put-meaning howdy 'howdy) 568(doctor-put-meaning howdy 'howdy)
569(doctor-put-meaning hi 'howdy) 569(doctor-put-meaning hi 'howdy)
@@ -851,7 +851,7 @@ Otherwise call the Doctor to parse preceding sentence."
851 (newline arg))) 851 (newline arg)))
852 852
853(defun doctor-read-print nil 853(defun doctor-read-print nil
854 "top level loop" 854 "Top level loop."
855 (interactive) 855 (interactive)
856 (let ((sent (doctor-readin))) 856 (let ((sent (doctor-readin)))
857 (insert "\n") 857 (insert "\n")
@@ -869,7 +869,7 @@ Otherwise call the Doctor to parse preceding sentence."
869 sentence)) 869 sentence))
870 870
871(defun doctor-read-token () 871(defun doctor-read-token ()
872 "read one word from buffer" 872 "Read one word from buffer."
873 (prog1 (intern (downcase (buffer-substring (point) 873 (prog1 (intern (downcase (buffer-substring (point)
874 (progn 874 (progn
875 (forward-word 1) 875 (forward-word 1)
@@ -1039,7 +1039,7 @@ the subject noun, and return the portion of the sentence following it."
1039 nil)))) 1039 nil))))
1040 1040
1041(defun doctor-nounp (x) 1041(defun doctor-nounp (x)
1042 "Returns t if the symbol argument is a noun." 1042 "Return t if the symbol argument is a noun."
1043 (or (doctor-pronounp x) 1043 (or (doctor-pronounp x)
1044 (not (or (doctor-verbp x) 1044 (not (or (doctor-verbp x)
1045 (equal x 'not) 1045 (equal x 'not)
@@ -1047,7 +1047,7 @@ the subject noun, and return the portion of the sentence following it."
1047 (doctor-modifierp x) )) )) 1047 (doctor-modifierp x) )) ))
1048 1048
1049(defun doctor-pronounp (x) 1049(defun doctor-pronounp (x)
1050 "Returns t if the symbol argument is a pronoun." 1050 "Return t if the symbol argument is a pronoun."
1051 (memq x '( 1051 (memq x '(
1052 i me mine myself 1052 i me mine myself
1053 we us ours ourselves ourself 1053 we us ours ourselves ourself