diff options
| author | Richard M. Stallman | 2002-09-23 16:04:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-09-23 16:04:57 +0000 |
| commit | daa6ddb5d6926516d1f82cffc3fdfbba16f372d8 (patch) | |
| tree | 91f844529abab1213385666b68adc6e8d4d3e574 | |
| parent | 0f7df8ac6ab7428289445a1109413d628f2a884a (diff) | |
| download | emacs-daa6ddb5d6926516d1f82cffc3fdfbba16f372d8.tar.gz emacs-daa6ddb5d6926516d1f82cffc3fdfbba16f372d8.zip | |
(doctor-doc): Add 2 question words.
(doctor-getnoun): Parse and save the complete object phrase.
| -rw-r--r-- | lisp/ChangeLog | 40 | ||||
| -rw-r--r-- | lisp/play/doctor.el | 6 |
2 files changed, 44 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 19cb7aef4a0..6bf40c777b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,40 @@ | |||
| 1 | 2002-09-23 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * ielm.el (*1): Fix previous change. | ||
| 4 | |||
| 5 | 2002-09-22 Oliver Scholz <alkibiades@gmx.de> | ||
| 6 | |||
| 7 | * play/gamegrid.el (gamegrid-face): new variable to emulate a | ||
| 8 | buffer-local default face. | ||
| 9 | (gamegrid-xbm): new variable; XBM image as a replacement for | ||
| 10 | `gamegrid-xpm' on Emacsen compiled without XPM-support. | ||
| 11 | (gamegrid-colorize-glyph): Ported XEmacs-code for the generation | ||
| 12 | of images to Emacs. | ||
| 13 | (gamegrid-match-spec): Call `gamegrid-make-image-from-vector' to | ||
| 14 | convert XEmacs-type image descriptors. | ||
| 15 | (gamegrid-color-display-p): Removed. (Use `display-colors-p' | ||
| 16 | instead.) | ||
| 17 | (gamegrid-make-image-from-vector): New function. Convert XEmacs' | ||
| 18 | image descriptors. | ||
| 19 | (gamegrid-display-type): Use Emacs' standard `display-.*-p' | ||
| 20 | functions to check for display capabilities. Fix the recognition | ||
| 21 | of image-support in Emacs 21 by this way. | ||
| 22 | (gamegrid-hide-cursor): Removed. | ||
| 23 | (gamegrid-setup-default-font): Ported the code from XEmacs to | ||
| 24 | Emacs: create a new face and assign the variable `gamegrid-face' | ||
| 25 | to it. Make sure that the face is not higher than the smallest | ||
| 26 | image used by the game. | ||
| 27 | (gamegrid-initialize-display): Use `(setq cursor-type nil)' | ||
| 28 | instead of `gamegrid-hide-cursor'. | ||
| 29 | (gamegrid-set-face): If `gamegrid-display-mode' is 'glyph, put an | ||
| 30 | image in the buffer, instead of applying a face. [This is because | ||
| 31 | Emacs display-tables are not as capable as the display-tables in | ||
| 32 | XEmacs. Maybe this function should be renamed to reflect the | ||
| 33 | change?] | ||
| 34 | (gamegrid-init-buffer): If `gamegrid-display-mode' is 'glyph, put | ||
| 35 | the face held by `gamegrid-face' in an overlay over the whole | ||
| 36 | buffer to emulate a buffer-local default-face. | ||
| 37 | |||
| 1 | 2002-09-23 Juanma Barranquero <lektu@terra.es> | 38 | 2002-09-23 Juanma Barranquero <lektu@terra.es> |
| 2 | 39 | ||
| 3 | * net/tramp.el (tramp-unified-filenames): Autoload it. | 40 | * net/tramp.el (tramp-unified-filenames): Autoload it. |
| @@ -8,6 +45,9 @@ | |||
| 8 | 45 | ||
| 9 | 2002-09-22 Richard M. Stallman <rms@gnu.org> | 46 | 2002-09-22 Richard M. Stallman <rms@gnu.org> |
| 10 | 47 | ||
| 48 | * play/doctor.el (doctor-doc): Add 2 question words. | ||
| 49 | (doctor-getnoun): Parse and save the complete object phrase. | ||
| 50 | |||
| 11 | * international/mule-cmds.el (select-safe-coding-system): Cope if | 51 | * international/mule-cmds.el (select-safe-coding-system): Cope if |
| 12 | default-coding-system gives nil which was then used in `min'. | 52 | default-coding-system gives nil which was then used in `min'. |
| 13 | 53 | ||
diff --git a/lisp/play/doctor.el b/lisp/play/doctor.el index 4254a99f27e..2f00b9dfb3a 100644 --- a/lisp/play/doctor.el +++ b/lisp/play/doctor.el | |||
| @@ -905,7 +905,7 @@ Otherwise call the Doctor to parse preceding sentence." | |||
| 905 | 'sentence 'used 'was | 905 | 'sentence 'used 'was |
| 906 | "..." | 906 | "..." |
| 907 | '(doc// bak)))) | 907 | '(doc// bak)))) |
| 908 | ((memq (car sent) '(do has have how when where who why)) | 908 | ((memq (car sent) '(are is do has have how when where who why)) |
| 909 | (doctor-type (doc$ qlist))) | 909 | (doctor-type (doc$ qlist))) |
| 910 | ;; ((eq (car sent) 'forget) | 910 | ;; ((eq (car sent) 'forget) |
| 911 | ;; (set (cadr sent) nil) | 911 | ;; (set (cadr sent) nil) |
| @@ -1166,7 +1166,9 @@ the subject noun, and return the portion of the sentence following it." | |||
| 1166 | (car x) (car x)))))) | 1166 | (car x) (car x)))))) |
| 1167 | " ") | 1167 | " ") |
| 1168 | (doctor-getnoun (cdr x)))) | 1168 | (doctor-getnoun (cdr x)))) |
| 1169 | (t (setq object (car x))) )) | 1169 | (t (setq object (car x)) |
| 1170 | (doctor-build (doctor-build (car x) " ") (doctor-getnoun (cdr x)))) | ||
| 1171 | )) | ||
| 1170 | 1172 | ||
| 1171 | (defun doctor-modifierp (x) | 1173 | (defun doctor-modifierp (x) |
| 1172 | (or (doctor-adjectivep x) | 1174 | (or (doctor-adjectivep x) |