diff options
| author | Stefan Kangas | 2020-12-05 11:53:11 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2020-12-05 12:06:19 +0100 |
| commit | a77f5abd98a9765875a08edca8f90f644ae2f982 (patch) | |
| tree | 162517d5b86d6cd4d95da75ddef42647bdae0d95 | |
| parent | e5a18efd3d96a942c6d6bdc04d0d431165f3138a (diff) | |
| download | emacs-a77f5abd98a9765875a08edca8f90f644ae2f982.tar.gz emacs-a77f5abd98a9765875a08edca8f90f644ae2f982.zip | |
Prefer setq-local in play/*.el
* lisp/play/decipher.el (decipher-mode):
* lisp/play/doctor.el (make-doctor-variables):
* lisp/play/dunnet.el (dun-mode):
* lisp/play/gomoku.el (gomoku-mode): Prefer setq-local.
| -rw-r--r-- | lisp/play/decipher.el | 4 | ||||
| -rw-r--r-- | lisp/play/doctor.el | 164 | ||||
| -rw-r--r-- | lisp/play/dunnet.el | 3 | ||||
| -rw-r--r-- | lisp/play/gomoku.el | 5 |
4 files changed, 87 insertions, 89 deletions
diff --git a/lisp/play/decipher.el b/lisp/play/decipher.el index 7a7f96c3bc3..674ddce6c9d 100644 --- a/lisp/play/decipher.el +++ b/lisp/play/decipher.el | |||
| @@ -292,8 +292,8 @@ The most useful commands are: | |||
| 292 | (set-syntax-table decipher-mode-syntax-table) | 292 | (set-syntax-table decipher-mode-syntax-table) |
| 293 | (unless (= (point-min) (point-max)) | 293 | (unless (= (point-min) (point-max)) |
| 294 | (decipher-read-alphabet)) | 294 | (decipher-read-alphabet)) |
| 295 | (set (make-local-variable 'font-lock-defaults) | 295 | (setq-local font-lock-defaults |
| 296 | '(decipher-font-lock-keywords t)) | 296 | '(decipher-font-lock-keywords t)) |
| 297 | ;; Make the buffer writable when we exit Decipher mode: | 297 | ;; Make the buffer writable when we exit Decipher mode: |
| 298 | (add-hook 'change-major-mode-hook | 298 | (add-hook 'change-major-mode-hook |
| 299 | (lambda () (setq buffer-read-only nil | 299 | (lambda () (setq buffer-read-only nil |
diff --git a/lisp/play/doctor.el b/lisp/play/doctor.el index a6f92881857..1549eb7d964 100644 --- a/lisp/play/doctor.el +++ b/lisp/play/doctor.el | |||
| @@ -145,7 +145,7 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 145 | (insert "\n")) | 145 | (insert "\n")) |
| 146 | 146 | ||
| 147 | (defun make-doctor-variables () | 147 | (defun make-doctor-variables () |
| 148 | (set (make-local-variable 'doctor--typos) | 148 | (setq-local doctor--typos |
| 149 | (mapcar (lambda (x) | 149 | (mapcar (lambda (x) |
| 150 | (put (car x) 'doctor-correction (cadr x)) | 150 | (put (car x) 'doctor-correction (cadr x)) |
| 151 | (put (cadr x) 'doctor-expansion (car (cddr x))) | 151 | (put (cadr x) 'doctor-expansion (car (cddr x))) |
| @@ -163,76 +163,76 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 163 | (you7re you\'re (i am)) | 163 | (you7re you\'re (i am)) |
| 164 | (you7ve you\'ve (i have)) | 164 | (you7ve you\'ve (i have)) |
| 165 | (you7ll you\'ll (i will))))) | 165 | (you7ll you\'ll (i will))))) |
| 166 | (set (make-local-variable 'doctor-sent) nil) | 166 | (setq-local doctor-sent nil) |
| 167 | (set (make-local-variable 'doctor-found) nil) | 167 | (setq-local doctor-found nil) |
| 168 | (set (make-local-variable 'doctor-owner) nil) | 168 | (setq-local doctor-owner nil) |
| 169 | (set (make-local-variable 'doctor--history) nil) | 169 | (setq-local doctor--history nil) |
| 170 | (set (make-local-variable 'doctor--inter) '((well\,) | 170 | (setq-local doctor--inter '((well\,) |
| 171 | (hmmm \.\.\.\ so\,) | 171 | (hmmm \.\.\.\ so\,) |
| 172 | (so) | 172 | (so) |
| 173 | (\.\.\.and) | 173 | (\.\.\.and) |
| 174 | (then))) | 174 | (then))) |
| 175 | (set (make-local-variable 'doctor--continue) '((continue) | 175 | (setq-local doctor--continue '((continue) |
| 176 | (proceed) | 176 | (proceed) |
| 177 | (go on) | 177 | (go on) |
| 178 | (keep going))) | 178 | (keep going))) |
| 179 | (set (make-local-variable 'doctor--relation) | 179 | (setq-local doctor--relation |
| 180 | '((your relationship with) | 180 | '((your relationship with) |
| 181 | (something you remember about) | 181 | (something you remember about) |
| 182 | (your feelings toward) | 182 | (your feelings toward) |
| 183 | (some experiences you have had with) | 183 | (some experiences you have had with) |
| 184 | (how you feel about))) | 184 | (how you feel about))) |
| 185 | (set (make-local-variable 'doctor--fears) | 185 | (setq-local doctor--fears |
| 186 | '(((doc$ doctor--whysay) you are (doc$ doctor--afraidof) (doc// doctor--feared) \?) | 186 | '(((doc$ doctor--whysay) you are (doc$ doctor--afraidof) (doc// doctor--feared) \?) |
| 187 | (you seem terrified by (doc// doctor--feared) \.) | 187 | (you seem terrified by (doc// doctor--feared) \.) |
| 188 | (when did you first feel (doc$ doctor--afraidof) (doc// doctor--feared) \?))) | 188 | (when did you first feel (doc$ doctor--afraidof) (doc// doctor--feared) \?))) |
| 189 | (set (make-local-variable 'doctor--sure) '((sure) | 189 | (setq-local doctor--sure '((sure) |
| 190 | (positive) | 190 | (positive) |
| 191 | (certain) | 191 | (certain) |
| 192 | (absolutely sure))) | 192 | (absolutely sure))) |
| 193 | (set (make-local-variable 'doctor--afraidof) '((afraid of) | 193 | (setq-local doctor--afraidof '((afraid of) |
| 194 | (frightened by) | 194 | (frightened by) |
| 195 | (scared of))) | 195 | (scared of))) |
| 196 | (set (make-local-variable 'doctor--areyou) '((are you) | 196 | (setq-local doctor--areyou '((are you) |
| 197 | (have you been) | 197 | (have you been) |
| 198 | (have you been))) | 198 | (have you been))) |
| 199 | (set (make-local-variable 'doctor--isrelated) | 199 | (setq-local doctor--isrelated |
| 200 | '((has something to do with) | 200 | '((has something to do with) |
| 201 | (is related to) | 201 | (is related to) |
| 202 | (could be the reason for) | 202 | (could be the reason for) |
| 203 | (is caused by) | 203 | (is caused by) |
| 204 | (is because of))) | 204 | (is because of))) |
| 205 | (set (make-local-variable 'doctor--arerelated) '((have something to do with) | 205 | (setq-local doctor--arerelated '((have something to do with) |
| 206 | (are related to) | 206 | (are related to) |
| 207 | (could have caused) | 207 | (could have caused) |
| 208 | (could be the reason for) | 208 | (could be the reason for) |
| 209 | (are caused by) | 209 | (are caused by) |
| 210 | (are because of))) | 210 | (are because of))) |
| 211 | (set (make-local-variable 'doctor--moods) | 211 | (setq-local doctor--moods |
| 212 | '(((doc$ doctor--areyou) (doc// doctor-found) often \?) | 212 | '(((doc$ doctor--areyou) (doc// doctor-found) often \?) |
| 213 | (what causes you to be (doc// doctor-found) \?) | 213 | (what causes you to be (doc// doctor-found) \?) |
| 214 | ((doc$ doctor--whysay) you are (doc// doctor-found) \?))) | 214 | ((doc$ doctor--whysay) you are (doc// doctor-found) \?))) |
| 215 | (set (make-local-variable 'doctor--maybe) '((maybe) | 215 | (setq-local doctor--maybe '((maybe) |
| 216 | (perhaps) | 216 | (perhaps) |
| 217 | (possibly))) | 217 | (possibly))) |
| 218 | (set (make-local-variable 'doctor--whatwhen) '((what happened when) | 218 | (setq-local doctor--whatwhen '((what happened when) |
| 219 | (what would happen if))) | 219 | (what would happen if))) |
| 220 | (set (make-local-variable 'doctor--hello) '((how do you do \?) | 220 | (setq-local doctor--hello '((how do you do \?) |
| 221 | (hello \.) | 221 | (hello \.) |
| 222 | (howdy!) | 222 | (howdy!) |
| 223 | (hello \.) | 223 | (hello \.) |
| 224 | (hi \.) | 224 | (hi \.) |
| 225 | (hi there \.))) | 225 | (hi there \.))) |
| 226 | (set (make-local-variable 'doctor--drnk) | 226 | (setq-local doctor--drnk |
| 227 | '((do you drink a lot of (doc// doctor-found) \?) | 227 | '((do you drink a lot of (doc// doctor-found) \?) |
| 228 | (do you get drunk often \?) | 228 | (do you get drunk often \?) |
| 229 | ((doc$ doctor--describe) your drinking habits \.))) | 229 | ((doc$ doctor--describe) your drinking habits \.))) |
| 230 | (set (make-local-variable 'doctor--drugs) | 230 | (setq-local doctor--drugs |
| 231 | '((do you use (doc// doctor-found) often \?) | 231 | '((do you use (doc// doctor-found) often \?) |
| 232 | ((doc$ doctor--areyou) addicted to (doc// doctor-found) \?) | 232 | ((doc$ doctor--areyou) addicted to (doc// doctor-found) \?) |
| 233 | (do you realize that drugs can be very harmful \?) | 233 | (do you realize that drugs can be very harmful \?) |
| 234 | ((doc$ doctor--maybe) you should try to quit using (doc// doctor-found) \.))) | 234 | ((doc$ doctor--maybe) you should try to quit using (doc// doctor-found) \.))) |
| 235 | (set (make-local-variable 'doctor--whywant) | 235 | (setq-local doctor--whywant |
| 236 | '(((doc$ doctor--whysay) (doc// doctor-subj) might (doc$ doctor--want) (doc// doctor-obj) \?) | 236 | '(((doc$ doctor--whysay) (doc// doctor-subj) might (doc$ doctor--want) (doc// doctor-obj) \?) |
| 237 | (how does it feel to want \?) | 237 | (how does it feel to want \?) |
| 238 | (why should (doc// doctor-subj) get (doc// doctor-obj) \?) | 238 | (why should (doc// doctor-subj) get (doc// doctor-obj) \?) |
| @@ -240,7 +240,7 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 240 | ((doc$ doctor--areyou) obsessed with (doc// doctor-obj) \?) | 240 | ((doc$ doctor--areyou) obsessed with (doc// doctor-obj) \?) |
| 241 | (why should i give (doc// doctor-obj) to (doc// doctor-subj) \?) | 241 | (why should i give (doc// doctor-obj) to (doc// doctor-subj) \?) |
| 242 | (have you ever gotten (doc// doctor-obj) \?))) | 242 | (have you ever gotten (doc// doctor-obj) \?))) |
| 243 | (set (make-local-variable 'doctor--canyou) | 243 | (setq-local doctor--canyou |
| 244 | '((of course i can \.) | 244 | '((of course i can \.) |
| 245 | (why should i \?) | 245 | (why should i \?) |
| 246 | (what makes you think i would even want to \?) | 246 | (what makes you think i would even want to \?) |
| @@ -251,8 +251,8 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 251 | (can you \?) | 251 | (can you \?) |
| 252 | (maybe i can\, maybe i can\'t \.\.\.) | 252 | (maybe i can\, maybe i can\'t \.\.\.) |
| 253 | (i don\'t think i should do that \.))) | 253 | (i don\'t think i should do that \.))) |
| 254 | (set (make-local-variable 'doctor--want) '((want) (desire) (wish) (want) (hope))) | 254 | (setq-local doctor--want '((want) (desire) (wish) (want) (hope))) |
| 255 | (set (make-local-variable 'doctor--shortlst) | 255 | (setq-local doctor--shortlst |
| 256 | '((can you elaborate on that \?) | 256 | '((can you elaborate on that \?) |
| 257 | ((doc$ doctor--please) continue \.) | 257 | ((doc$ doctor--please) continue \.) |
| 258 | (go on\, don\'t be afraid \.) | 258 | (go on\, don\'t be afraid \.) |
| @@ -264,23 +264,23 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 264 | (you aren\'t being very talkative today\!) | 264 | (you aren\'t being very talkative today\!) |
| 265 | (is that all there is to it \?) | 265 | (is that all there is to it \?) |
| 266 | (why must you respond so briefly \?))) | 266 | (why must you respond so briefly \?))) |
| 267 | (set (make-local-variable 'doctor--famlst) | 267 | (setq-local doctor--famlst |
| 268 | '((tell me (doc$ doctor--something) about (doc// doctor-owner) family \.) | 268 | '((tell me (doc$ doctor--something) about (doc// doctor-owner) family \.) |
| 269 | (you seem to dwell on (doc// doctor-owner) family \.) | 269 | (you seem to dwell on (doc// doctor-owner) family \.) |
| 270 | ((doc$ doctor--areyou) hung up on (doc// doctor-owner) family \?))) | 270 | ((doc$ doctor--areyou) hung up on (doc// doctor-owner) family \?))) |
| 271 | (set (make-local-variable 'doctor--huhlst) | 271 | (setq-local doctor--huhlst |
| 272 | '(((doc$ doctor--whysay) (doc// doctor-sent) \?) | 272 | '(((doc$ doctor--whysay) (doc// doctor-sent) \?) |
| 273 | (is it because of (doc$ doctor--things) that you say (doc// doctor-sent) \?))) | 273 | (is it because of (doc$ doctor--things) that you say (doc// doctor-sent) \?))) |
| 274 | (set (make-local-variable 'doctor--longhuhlst) | 274 | (setq-local doctor--longhuhlst |
| 275 | '(((doc$ doctor--whysay) that \?) | 275 | '(((doc$ doctor--whysay) that \?) |
| 276 | (i don\'t understand \.) | 276 | (i don\'t understand \.) |
| 277 | ((doc$ doctor--thlst)) | 277 | ((doc$ doctor--thlst)) |
| 278 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) that \?))) | 278 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) that \?))) |
| 279 | (set (make-local-variable 'doctor--feelings-about) '((feelings about) | 279 | (setq-local doctor--feelings-about '((feelings about) |
| 280 | (apprehensions toward) | 280 | (apprehensions toward) |
| 281 | (thoughts on) | 281 | (thoughts on) |
| 282 | (emotions toward))) | 282 | (emotions toward))) |
| 283 | (set (make-local-variable 'doctor--random-adjective) | 283 | (setq-local doctor--random-adjective |
| 284 | '((vivid) | 284 | '((vivid) |
| 285 | (emotionally stimulating) | 285 | (emotionally stimulating) |
| 286 | (exciting) | 286 | (exciting) |
| @@ -291,23 +291,23 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 291 | (unusual) | 291 | (unusual) |
| 292 | (shocking) | 292 | (shocking) |
| 293 | (embarrassing))) | 293 | (embarrassing))) |
| 294 | (set (make-local-variable 'doctor--whysay) '((why do you say) | 294 | (setq-local doctor--whysay '((why do you say) |
| 295 | (what makes you believe) | 295 | (what makes you believe) |
| 296 | (are you sure that) | 296 | (are you sure that) |
| 297 | (do you really think) | 297 | (do you really think) |
| 298 | (what makes you think))) | 298 | (what makes you think))) |
| 299 | (set (make-local-variable 'doctor--isee) '((i see \.\.\.) | 299 | (setq-local doctor--isee '((i see \.\.\.) |
| 300 | (yes\,) | 300 | (yes\,) |
| 301 | (i understand \.) | 301 | (i understand \.) |
| 302 | (oh \.) )) | 302 | (oh \.) )) |
| 303 | (set (make-local-variable 'doctor--please) '((please\,) | 303 | (setq-local doctor--please '((please\,) |
| 304 | (i would appreciate it if you would) | 304 | (i would appreciate it if you would) |
| 305 | (perhaps you could) | 305 | (perhaps you could) |
| 306 | (please\,) | 306 | (please\,) |
| 307 | (would you please) | 307 | (would you please) |
| 308 | (why don\'t you) | 308 | (why don\'t you) |
| 309 | (could you))) | 309 | (could you))) |
| 310 | (set (make-local-variable 'doctor--bye) | 310 | (setq-local doctor--bye |
| 311 | '((my secretary will send you a bill \.) | 311 | '((my secretary will send you a bill \.) |
| 312 | (bye bye \.) | 312 | (bye bye \.) |
| 313 | (see ya \.) | 313 | (see ya \.) |
| @@ -315,12 +315,12 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 315 | (talk to you later \.) | 315 | (talk to you later \.) |
| 316 | (ok\, have fun \.) | 316 | (ok\, have fun \.) |
| 317 | (ciao \.))) | 317 | (ciao \.))) |
| 318 | (set (make-local-variable 'doctor--something) '((something) | 318 | (setq-local doctor--something '((something) |
| 319 | (more) | 319 | (more) |
| 320 | (how you feel))) | 320 | (how you feel))) |
| 321 | (set (make-local-variable 'doctor--thing) '((your life) | 321 | (setq-local doctor--thing '((your life) |
| 322 | (your sex life))) | 322 | (your sex life))) |
| 323 | (set (make-local-variable 'doctor--things) '((your plans) | 323 | (setq-local doctor--things '((your plans) |
| 324 | (the people you hang around with) | 324 | (the people you hang around with) |
| 325 | (problems at school) | 325 | (problems at school) |
| 326 | (any hobbies you have) | 326 | (any hobbies you have) |
| @@ -328,69 +328,69 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 328 | (your inhibitions) | 328 | (your inhibitions) |
| 329 | (some problems in your childhood) | 329 | (some problems in your childhood) |
| 330 | (some problems at home))) | 330 | (some problems at home))) |
| 331 | (set (make-local-variable 'doctor--describe) '((describe) | 331 | (setq-local doctor--describe '((describe) |
| 332 | (tell me about) | 332 | (tell me about) |
| 333 | (talk about) | 333 | (talk about) |
| 334 | (discuss) | 334 | (discuss) |
| 335 | (tell me more about) | 335 | (tell me more about) |
| 336 | (elaborate on))) | 336 | (elaborate on))) |
| 337 | (set (make-local-variable 'doctor--ibelieve) | 337 | (setq-local doctor--ibelieve |
| 338 | '((i believe) (i think) (i have a feeling) (it seems to me that) | 338 | '((i believe) (i think) (i have a feeling) (it seems to me that) |
| 339 | (it looks like))) | 339 | (it looks like))) |
| 340 | (set (make-local-variable 'doctor--problems) '((problems) | 340 | (setq-local doctor--problems '((problems) |
| 341 | (inhibitions) | 341 | (inhibitions) |
| 342 | (hangups) | 342 | (hangups) |
| 343 | (difficulties) | 343 | (difficulties) |
| 344 | (anxieties) | 344 | (anxieties) |
| 345 | (frustrations))) | 345 | (frustrations))) |
| 346 | (set (make-local-variable 'doctor--bother) '((does it bother you that) | 346 | (setq-local doctor--bother '((does it bother you that) |
| 347 | (are you annoyed that) | 347 | (are you annoyed that) |
| 348 | (did you ever regret) | 348 | (did you ever regret) |
| 349 | (are you sorry) | 349 | (are you sorry) |
| 350 | (are you satisfied with the fact that))) | 350 | (are you satisfied with the fact that))) |
| 351 | (set (make-local-variable 'doctor--machlst) | 351 | (setq-local doctor--machlst |
| 352 | '((you have your mind on (doc// doctor-found) \, it seems \.) | 352 | '((you have your mind on (doc// doctor-found) \, it seems \.) |
| 353 | (you think too much about (doc// doctor-found) \.) | 353 | (you think too much about (doc// doctor-found) \.) |
| 354 | (you should try taking your mind off of (doc// doctor-found)\.) | 354 | (you should try taking your mind off of (doc// doctor-found)\.) |
| 355 | (are you a computer hacker \?))) | 355 | (are you a computer hacker \?))) |
| 356 | (set (make-local-variable 'doctor--qlist) | 356 | (setq-local doctor--qlist |
| 357 | '((what do you think \?) | 357 | '((what do you think \?) |
| 358 | (i\'ll ask the questions\, if you don\'t mind!) | 358 | (i\'ll ask the questions\, if you don\'t mind!) |
| 359 | (i could ask the same thing myself \.) | 359 | (i could ask the same thing myself \.) |
| 360 | ((doc$ doctor--please) allow me to do the questioning \.) | 360 | ((doc$ doctor--please) allow me to do the questioning \.) |
| 361 | (i have asked myself that question many times \.) | 361 | (i have asked myself that question many times \.) |
| 362 | ((doc$ doctor--please) try to answer that question yourself \.))) | 362 | ((doc$ doctor--please) try to answer that question yourself \.))) |
| 363 | (set (make-local-variable 'doctor--foullst) | 363 | (setq-local doctor--foullst |
| 364 | '(((doc$ doctor--please) watch your tongue!) | 364 | '(((doc$ doctor--please) watch your tongue!) |
| 365 | ((doc$ doctor--please) avoid such unwholesome thoughts \.) | 365 | ((doc$ doctor--please) avoid such unwholesome thoughts \.) |
| 366 | ((doc$ doctor--please) get your mind out of the gutter \.) | 366 | ((doc$ doctor--please) get your mind out of the gutter \.) |
| 367 | (such lewdness is not appreciated \.))) | 367 | (such lewdness is not appreciated \.))) |
| 368 | (set (make-local-variable 'doctor--deathlst) | 368 | (setq-local doctor--deathlst |
| 369 | '((this is not a healthy way of thinking \.) | 369 | '((this is not a healthy way of thinking \.) |
| 370 | ((doc$ doctor--bother) you\, too\, may die someday \?) | 370 | ((doc$ doctor--bother) you\, too\, may die someday \?) |
| 371 | (i am worried by your obsession with this topic!) | 371 | (i am worried by your obsession with this topic!) |
| 372 | (did you watch a lot of crime and violence on television as a child \?))) | 372 | (did you watch a lot of crime and violence on television as a child \?))) |
| 373 | (set (make-local-variable 'doctor--sexlst) | 373 | (setq-local doctor--sexlst |
| 374 | '(((doc$ doctor--areyou) (doc$ doctor--afraidof) sex \?) | 374 | '(((doc$ doctor--areyou) (doc$ doctor--afraidof) sex \?) |
| 375 | ((doc$ doctor--describe) (doc$ doctor--something) about your sexual history \.) | 375 | ((doc$ doctor--describe) (doc$ doctor--something) about your sexual history \.) |
| 376 | ((doc$ doctor--please) (doc$ doctor--describe) your sex life \.\.\.) | 376 | ((doc$ doctor--please) (doc$ doctor--describe) your sex life \.\.\.) |
| 377 | ((doc$ doctor--describe) your (doc$ doctor--feelings-about) your sexual partner \.) | 377 | ((doc$ doctor--describe) your (doc$ doctor--feelings-about) your sexual partner \.) |
| 378 | ((doc$ doctor--describe) your most (doc$ doctor--random-adjective) sexual experience \.) | 378 | ((doc$ doctor--describe) your most (doc$ doctor--random-adjective) sexual experience \.) |
| 379 | ((doc$ doctor--areyou) satisfied with (doc// doctor--lover) \.\.\. \?))) | 379 | ((doc$ doctor--areyou) satisfied with (doc// doctor--lover) \.\.\. \?))) |
| 380 | (set (make-local-variable 'doctor--neglst) '((why not \?) | 380 | (setq-local doctor--neglst '((why not \?) |
| 381 | ((doc$ doctor--bother) i ask that \?) | 381 | ((doc$ doctor--bother) i ask that \?) |
| 382 | (why not \?) | 382 | (why not \?) |
| 383 | (why not \?) | 383 | (why not \?) |
| 384 | (how come \?) | 384 | (how come \?) |
| 385 | ((doc$ doctor--bother) i ask that \?))) | 385 | ((doc$ doctor--bother) i ask that \?))) |
| 386 | (set (make-local-variable 'doctor--beclst) | 386 | (setq-local doctor--beclst |
| 387 | '((is it because (doc// doctor-sent) that you came to me \?) | 387 | '((is it because (doc// doctor-sent) that you came to me \?) |
| 388 | ((doc$ doctor--bother) (doc// doctor-sent) \?) | 388 | ((doc$ doctor--bother) (doc// doctor-sent) \?) |
| 389 | (when did you first know that (doc// doctor-sent) \?) | 389 | (when did you first know that (doc// doctor-sent) \?) |
| 390 | (is the fact that (doc// doctor-sent) the real reason \?) | 390 | (is the fact that (doc// doctor-sent) the real reason \?) |
| 391 | (does the fact that (doc// doctor-sent) explain anything else \?) | 391 | (does the fact that (doc// doctor-sent) explain anything else \?) |
| 392 | ((doc$ doctor--areyou) (doc$ doctor--sure) (doc// doctor-sent) \? ))) | 392 | ((doc$ doctor--areyou) (doc$ doctor--sure) (doc// doctor-sent) \? ))) |
| 393 | (set (make-local-variable 'doctor--shortbeclst) | 393 | (setq-local doctor--shortbeclst |
| 394 | '(((doc$ doctor--bother) i ask you that \?) | 394 | '(((doc$ doctor--bother) i ask you that \?) |
| 395 | (that\'s not much of an answer!) | 395 | (that\'s not much of an answer!) |
| 396 | ((doc$ doctor--inter) why won\'t you talk about it \?) | 396 | ((doc$ doctor--inter) why won\'t you talk about it \?) |
| @@ -398,27 +398,27 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 398 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) talking about it \?) | 398 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) talking about it \?) |
| 399 | (don\'t be (doc$ doctor--afraidof) elaborating \.) | 399 | (don\'t be (doc$ doctor--afraidof) elaborating \.) |
| 400 | ((doc$ doctor--please) go into more detail \.))) | 400 | ((doc$ doctor--please) go into more detail \.))) |
| 401 | (set (make-local-variable 'doctor--thlst) | 401 | (setq-local doctor--thlst |
| 402 | '(((doc$ doctor--maybe) (doc$ doctor--thing) (doc$ doctor--isrelated) this \.) | 402 | '(((doc$ doctor--maybe) (doc$ doctor--thing) (doc$ doctor--isrelated) this \.) |
| 403 | ((doc$ doctor--maybe) (doc$ doctor--things) (doc$ doctor--arerelated) this \.) | 403 | ((doc$ doctor--maybe) (doc$ doctor--things) (doc$ doctor--arerelated) this \.) |
| 404 | (is it because of (doc$ doctor--things) that you are going through all this \?) | 404 | (is it because of (doc$ doctor--things) that you are going through all this \?) |
| 405 | (how do you reconcile (doc$ doctor--things) \? ) | 405 | (how do you reconcile (doc$ doctor--things) \? ) |
| 406 | ((doc$ doctor--maybe) this (doc$ doctor--isrelated) (doc$ doctor--things) \?))) | 406 | ((doc$ doctor--maybe) this (doc$ doctor--isrelated) (doc$ doctor--things) \?))) |
| 407 | (set (make-local-variable 'doctor--remlst) | 407 | (setq-local doctor--remlst |
| 408 | '((earlier you said (doc$ doctor--history) \?) | 408 | '((earlier you said (doc$ doctor--history) \?) |
| 409 | (you mentioned that (doc$ doctor--history) \?) | 409 | (you mentioned that (doc$ doctor--history) \?) |
| 410 | ((doc$ doctor--whysay) (doc$ doctor--history) \? ))) | 410 | ((doc$ doctor--whysay) (doc$ doctor--history) \? ))) |
| 411 | (set (make-local-variable 'doctor--toklst) | 411 | (setq-local doctor--toklst |
| 412 | '((is this how you relax \?) | 412 | '((is this how you relax \?) |
| 413 | (how long have you been smoking grass \?) | 413 | (how long have you been smoking grass \?) |
| 414 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) of being drawn to using harder stuff \?))) | 414 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) of being drawn to using harder stuff \?))) |
| 415 | (set (make-local-variable 'doctor--states) | 415 | (setq-local doctor--states |
| 416 | '((do you get (doc// doctor-found) often \?) | 416 | '((do you get (doc// doctor-found) often \?) |
| 417 | (do you enjoy being (doc// doctor-found) \?) | 417 | (do you enjoy being (doc// doctor-found) \?) |
| 418 | (what makes you (doc// doctor-found) \?) | 418 | (what makes you (doc// doctor-found) \?) |
| 419 | (how often (doc$ doctor--areyou) (doc// doctor-found) \?) | 419 | (how often (doc$ doctor--areyou) (doc// doctor-found) \?) |
| 420 | (when were you last (doc// doctor-found) \?))) | 420 | (when were you last (doc// doctor-found) \?))) |
| 421 | (set (make-local-variable 'doctor--replist) '((i . (you)) | 421 | (setq-local doctor--replist '((i . (you)) |
| 422 | (my . (your)) | 422 | (my . (your)) |
| 423 | (me . (you)) | 423 | (me . (you)) |
| 424 | (you . (me)) | 424 | (you . (me)) |
| @@ -467,52 +467,52 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 467 | (wouldn\'t . (would not)) | 467 | (wouldn\'t . (would not)) |
| 468 | (won\'t . (will not)) | 468 | (won\'t . (will not)) |
| 469 | (hasn\'t . (has not)))) | 469 | (hasn\'t . (has not)))) |
| 470 | (set (make-local-variable 'doctor--stallmanlst) | 470 | (setq-local doctor--stallmanlst |
| 471 | '(((doc$ doctor--describe) your (doc$ doctor--feelings-about) him \.) | 471 | '(((doc$ doctor--describe) your (doc$ doctor--feelings-about) him \.) |
| 472 | ((doc$ doctor--areyou) a friend of Stallman \?) | 472 | ((doc$ doctor--areyou) a friend of Stallman \?) |
| 473 | ((doc$ doctor--bother) Stallman is (doc$ doctor--random-adjective) \?) | 473 | ((doc$ doctor--bother) Stallman is (doc$ doctor--random-adjective) \?) |
| 474 | ((doc$ doctor--ibelieve) you are (doc$ doctor--afraidof) him \.))) | 474 | ((doc$ doctor--ibelieve) you are (doc$ doctor--afraidof) him \.))) |
| 475 | (set (make-local-variable 'doctor--schoollst) | 475 | (setq-local doctor--schoollst |
| 476 | '(((doc$ doctor--describe) your (doc// doctor-found) \.) | 476 | '(((doc$ doctor--describe) your (doc// doctor-found) \.) |
| 477 | ((doc$ doctor--bother) your grades could (doc$ doctor--improve) \?) | 477 | ((doc$ doctor--bother) your grades could (doc$ doctor--improve) \?) |
| 478 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) (doc// doctor-found) \?) | 478 | ((doc$ doctor--areyou) (doc$ doctor--afraidof) (doc// doctor-found) \?) |
| 479 | ((doc$ doctor--maybe) this (doc$ doctor--isrelated) to your attitude \.) | 479 | ((doc$ doctor--maybe) this (doc$ doctor--isrelated) to your attitude \.) |
| 480 | ((doc$ doctor--areyou) absent often \?) | 480 | ((doc$ doctor--areyou) absent often \?) |
| 481 | ((doc$ doctor--maybe) you should study (doc$ doctor--something) \.))) | 481 | ((doc$ doctor--maybe) you should study (doc$ doctor--something) \.))) |
| 482 | (set (make-local-variable 'doctor--improve) | 482 | (setq-local doctor--improve |
| 483 | '((improve) (be better) (be improved) (be higher))) | 483 | '((improve) (be better) (be improved) (be higher))) |
| 484 | (set (make-local-variable 'doctor--elizalst) | 484 | (setq-local doctor--elizalst |
| 485 | '(((doc$ doctor--areyou) (doc$ doctor--sure) \?) | 485 | '(((doc$ doctor--areyou) (doc$ doctor--sure) \?) |
| 486 | ((doc$ doctor--ibelieve) you have (doc$ doctor--problems) with (doc// doctor-found) \.) | 486 | ((doc$ doctor--ibelieve) you have (doc$ doctor--problems) with (doc// doctor-found) \.) |
| 487 | ((doc$ doctor--whysay) (doc// doctor-sent) \?))) | 487 | ((doc$ doctor--whysay) (doc// doctor-sent) \?))) |
| 488 | (set (make-local-variable 'doctor--sportslst) | 488 | (setq-local doctor--sportslst |
| 489 | '((tell me (doc$ doctor--something) about (doc// doctor-found) \.) | 489 | '((tell me (doc$ doctor--something) about (doc// doctor-found) \.) |
| 490 | ((doc$ doctor--describe) (doc$ doctor--relation) (doc// doctor-found) \.) | 490 | ((doc$ doctor--describe) (doc$ doctor--relation) (doc// doctor-found) \.) |
| 491 | (do you find (doc// doctor-found) (doc$ doctor--random-adjective) \?))) | 491 | (do you find (doc// doctor-found) (doc$ doctor--random-adjective) \?))) |
| 492 | (set (make-local-variable 'doctor--mathlst) | 492 | (setq-local doctor--mathlst |
| 493 | '(((doc$ doctor--describe) (doc$ doctor--something) about math \.) | 493 | '(((doc$ doctor--describe) (doc$ doctor--something) about math \.) |
| 494 | ((doc$ doctor--maybe) your (doc$ doctor--problems) (doc$ doctor--arerelated) (doc// doctor-found) \.) | 494 | ((doc$ doctor--maybe) your (doc$ doctor--problems) (doc$ doctor--arerelated) (doc// doctor-found) \.) |
| 495 | (i don\'t know much (doc// doctor-found) \, but (doc$ doctor--continue) | 495 | (i don\'t know much (doc// doctor-found) \, but (doc$ doctor--continue) |
| 496 | anyway \.))) | 496 | anyway \.))) |
| 497 | (set (make-local-variable 'doctor--zippylst) | 497 | (setq-local doctor--zippylst |
| 498 | '(((doc$ doctor--areyou) Zippy \?) | 498 | '(((doc$ doctor--areyou) Zippy \?) |
| 499 | ((doc$ doctor--ibelieve) you have some serious (doc$ doctor--problems) \.) | 499 | ((doc$ doctor--ibelieve) you have some serious (doc$ doctor--problems) \.) |
| 500 | ((doc$ doctor--bother) you are a pinhead \?))) | 500 | ((doc$ doctor--bother) you are a pinhead \?))) |
| 501 | (set (make-local-variable 'doctor--chatlst) | 501 | (setq-local doctor--chatlst |
| 502 | '(((doc$ doctor--maybe) we could chat \.) | 502 | '(((doc$ doctor--maybe) we could chat \.) |
| 503 | ((doc$ doctor--please) (doc$ doctor--describe) (doc$ doctor--something) about chat mode \.) | 503 | ((doc$ doctor--please) (doc$ doctor--describe) (doc$ doctor--something) about chat mode \.) |
| 504 | ((doc$ doctor--bother) our discussion is so (doc$ doctor--random-adjective) \?))) | 504 | ((doc$ doctor--bother) our discussion is so (doc$ doctor--random-adjective) \?))) |
| 505 | (set (make-local-variable 'doctor--abuselst) | 505 | (setq-local doctor--abuselst |
| 506 | '(((doc$ doctor--please) try to be less abusive \.) | 506 | '(((doc$ doctor--please) try to be less abusive \.) |
| 507 | ((doc$ doctor--describe) why you call me (doc// doctor-found) \.) | 507 | ((doc$ doctor--describe) why you call me (doc// doctor-found) \.) |
| 508 | (i\'ve had enough of you!))) | 508 | (i\'ve had enough of you!))) |
| 509 | (set (make-local-variable 'doctor--abusewords) | 509 | (setq-local doctor--abusewords |
| 510 | '(boring bozo clown clumsy cretin dumb dummy | 510 | '(boring bozo clown clumsy cretin dumb dummy |
| 511 | fool foolish gnerd gnurd idiot jerk | 511 | fool foolish gnerd gnurd idiot jerk |
| 512 | lose loser louse lousy luse luser | 512 | lose loser louse lousy luse luser |
| 513 | moron nerd nurd oaf oafish reek | 513 | moron nerd nurd oaf oafish reek |
| 514 | stink stupid tool toolish twit)) | 514 | stink stupid tool toolish twit)) |
| 515 | (set (make-local-variable 'doctor--howareyoulst) | 515 | (setq-local doctor--howareyoulst |
| 516 | '((how are you) (hows it going) (hows it going eh) | 516 | '((how are you) (hows it going) (hows it going eh) |
| 517 | (how\'s it going) (how\'s it going eh) (how goes it) | 517 | (how\'s it going) (how\'s it going eh) (how goes it) |
| 518 | (whats up) (whats new) (what\'s up) (what\'s new) | 518 | (whats up) (whats new) (what\'s up) (what\'s new) |
| @@ -520,24 +520,24 @@ reads the sentence before point, and prints the Doctor's answer." | |||
| 520 | (how is everything) (how do you do) | 520 | (how is everything) (how do you do) |
| 521 | (how\'s it hanging) (que pasa) | 521 | (how\'s it hanging) (que pasa) |
| 522 | (how are you doing) (what do you say))) | 522 | (how are you doing) (what do you say))) |
| 523 | (set (make-local-variable 'doctor--whereoutp) '(huh remem rthing)) | 523 | (setq-local doctor--whereoutp '(huh remem rthing)) |
| 524 | (set (make-local-variable 'doctor-subj) nil) | 524 | (setq-local doctor-subj nil) |
| 525 | (set (make-local-variable 'doctor-verb) nil) | 525 | (setq-local doctor-verb nil) |
| 526 | (set (make-local-variable 'doctor-obj) nil) | 526 | (setq-local doctor-obj nil) |
| 527 | (set (make-local-variable 'doctor--feared) nil) | 527 | (setq-local doctor--feared nil) |
| 528 | (set (make-local-variable 'doctor--repetitive-shortness) '(0 . 0)) | 528 | (setq-local doctor--repetitive-shortness '(0 . 0)) |
| 529 | (set (make-local-variable 'doctor--**mad**) nil) | 529 | (setq-local doctor--**mad** nil) |
| 530 | (set (make-local-variable 'doctor--rms-flag) nil) | 530 | (setq-local doctor--rms-flag nil) |
| 531 | (set (make-local-variable 'doctor--eliza-flag) nil) | 531 | (setq-local doctor--eliza-flag nil) |
| 532 | (set (make-local-variable 'doctor--zippy-flag) nil) | 532 | (setq-local doctor--zippy-flag nil) |
| 533 | (set (make-local-variable 'doctor--suicide-flag) nil) | 533 | (setq-local doctor--suicide-flag nil) |
| 534 | (set (make-local-variable 'doctor--lover) '(your partner)) | 534 | (setq-local doctor--lover '(your partner)) |
| 535 | (set (make-local-variable 'doctor--bak) nil) | 535 | (setq-local doctor--bak nil) |
| 536 | (set (make-local-variable 'doctor--lincount) 0) | 536 | (setq-local doctor--lincount 0) |
| 537 | (set (make-local-variable 'doctor--*print-upcase*) nil) | 537 | (setq-local doctor--*print-upcase* nil) |
| 538 | (set (make-local-variable 'doctor--*print-space*) nil) | 538 | (setq-local doctor--*print-space* nil) |
| 539 | (set (make-local-variable 'doctor--howdyflag) nil) | 539 | (setq-local doctor--howdyflag nil) |
| 540 | (set (make-local-variable 'doctor-object) nil)) | 540 | (setq-local doctor-object nil)) |
| 541 | 541 | ||
| 542 | ;; Define equivalence classes of words that get treated alike. | 542 | ;; Define equivalence classes of words that get treated alike. |
| 543 | 543 | ||
diff --git a/lisp/play/dunnet.el b/lisp/play/dunnet.el index eb3805d6690..1df28a0f376 100644 --- a/lisp/play/dunnet.el +++ b/lisp/play/dunnet.el | |||
| @@ -1144,8 +1144,7 @@ treasures for points?" "4" "four") | |||
| 1144 | 1144 | ||
| 1145 | (define-derived-mode dun-mode text-mode "Dungeon" | 1145 | (define-derived-mode dun-mode text-mode "Dungeon" |
| 1146 | "Major mode for running dunnet." | 1146 | "Major mode for running dunnet." |
| 1147 | (make-local-variable 'scroll-step) | 1147 | (setq-local scroll-step 2)) |
| 1148 | (setq scroll-step 2)) | ||
| 1149 | 1148 | ||
| 1150 | (defun dun-parse (_arg) | 1149 | (defun dun-parse (_arg) |
| 1151 | "Function called when return is pressed in interactive mode to parse line." | 1150 | "Function called when return is pressed in interactive mode to parse line." |
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el index 403398672b1..8ede82a6b9c 100644 --- a/lisp/play/gomoku.el +++ b/lisp/play/gomoku.el | |||
| @@ -195,9 +195,8 @@ You play by moving the cursor over the square you choose and hitting \\[gomoku-h | |||
| 195 | Other useful commands:\n | 195 | Other useful commands:\n |
| 196 | \\{gomoku-mode-map}" | 196 | \\{gomoku-mode-map}" |
| 197 | (gomoku-display-statistics) | 197 | (gomoku-display-statistics) |
| 198 | (make-local-variable 'font-lock-defaults) | 198 | (setq-local font-lock-defaults '(gomoku-font-lock-keywords t)) |
| 199 | (setq font-lock-defaults '(gomoku-font-lock-keywords t) | 199 | (setq buffer-read-only t) |
| 200 | buffer-read-only t) | ||
| 201 | (add-hook 'post-command-hook #'gomoku--intangible nil t)) | 200 | (add-hook 'post-command-hook #'gomoku--intangible nil t)) |
| 202 | 201 | ||
| 203 | ;;; | 202 | ;;; |