summaryrefslogtreecommitdiff
path: root/lisp/play
Commit message (Collapse)AuthorAgeFilesLines
* Minor cleanups in tetris.elStefan Kangas2020-12-281-32/+14
| | | | | | * lisp/play/tetris.el: Remove redundant :group args. (tetris-get-tick-period): Drop unnecessary check. (tetris): Stylistic doc fixes.
* ; * lisp/play/5x5.el: Fix my last change.Stefan Kangas2020-12-161-1/+1
|
* * lisp/play/5x5.el: Fix typo. Remove redundant :group args.Stefan Kangas2020-12-141-15/+7
|
* * lisp/play/dunnet.el: Make it so loading the file is harmlessStefan Monnier2020-12-111-113/+87
| | | | | | Move comments into docstrings while at it. (dun-batch): New function.
* ; * lisp/play/doctor.el (make-doctor-variables): Fix indentation.Stefan Kangas2020-12-051-311/+311
|
* Prefer setq-local in play/*.elStefan Kangas2020-12-054-89/+87
| | | | | | | * 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.
* * lisp/play/dunnet.el: Remove Emacs 18 compat code.Stefan Kangas2020-12-021-9/+4
|
* Use null-device where appropriateMichael Albinus2020-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/filesets.el (filesets-select-command): * lisp/shell.el (shell-mode): * lisp/term.el (term-exec-1): * lisp/wdired.el (wdired-do-symlink-changes): * lisp/cedet/ede/pmake.el (ede-proj-makefile-create): * lisp/eshell/esh-io.el (eshell-set-output-handle): * lisp/gnus/gnus-fun.el (gnus-grab-cam-x-face): * lisp/gnus/mml2015.el (mml2015-epg-key-image): * lisp/gnus/smime.el (smime-noverify-region): * lisp/org/ob-picolisp.el (org-babel-execute:picolisp): * lisp/org/ob-screen.el (org-babel-prep-session:screen) (org-babel-prep-session:screen): * lisp/play/fortune.el (fortune-quiet-strfile-options): * lisp/progmodes/cperl-mode.el (cperl-pod2man-build-command): * lisp/progmodes/sh-script.el (sh-tmp-file): * lisp/vc/diff-mode.el (diff-add-log-current-defuns) (diff--font-lock-prettify): * lisp/vc/ediff-mult.el (ediff-patch-file-form-meta): * lisp/vc/ediff-ptch.el (ediff-map-patch-buffer) (ediff-fixup-patch-map, ediff-dispatch-file-patching-job): * lisp/vc/vc.el (vc-diff-internal): Use null-device or (null-device), respectively. (Bug#3736)
* Make the handwrite.el PS valid againLars Ingebrigtsen2020-11-161-1/+1
| | | | | * lisp/play/handwrite.el (handwrite): Make the PS valid (bug#44648). Suggested by Omar Antolín <omar.antolin@gmail.com>.
* Use lexical-binding in fortune.el and add testsStefan Kangas2020-11-141-35/+33
| | | | | | | | | * lisp/play/fortune.el: Use lexical-binding. Remove redundant :group args. (fortune-in-buffer): Quote function symbol as such. * test/lisp/play/fortune-resources/fortunes: * test/lisp/play/fortune-tests.el: New files. * .gitignore: Ignore generated file fortunes.dat.
* Remove redundant installation instructionsStefan Kangas2020-11-122-17/+2
| | | | | | | | | | | | | | | | | | | | | | * lisp/net/newsticker.el: * lisp/net/sieve-mode.el: * lisp/play/bubbles.el: * lisp/play/handwrite.el: * lisp/progmodes/python.el: * lisp/progmodes/ruby-mode.el: * lisp/whitespace.el: Remove redundant installation instructions. These packages are distributed with Emacs and/or GNU ELPA. * lisp/calendar/timeclock.el: * lisp/ehelp.el: * lisp/emacs-lisp/checkdoc.el: * lisp/filesets.el: * lisp/mail/reporter.el: * lisp/net/rfc2104.el: * lisp/net/webjump.el: * lisp/pixel-scroll.el: Remove redundant recommendation to call require before using autoloaded functions. * lisp/tar-mode.el: Remove reference to package uncompress, removed in Emacs 23.
* Use lexical-binding in solitaire.elStefan Kangas2020-11-031-5/+3
| | | | | * lisp/play/solitaire.el: Use lexical-binding. Remove redundant :group args.
* Add "Old-" prefix to "Version" header in more casesStefan Kangas2020-10-182-3/+3
| | | | | These version numbers are historical accidents and not relevant today. Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html
* ; Prefer https to http in many URLsStefan Kangas2020-10-011-1/+1
| | | | These were all tested with https and confirmed working.
* Don't quote lambdas in several placesStefan Kangas2020-10-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/find-gc.el (find-gc-unsafe): * lisp/align.el (align-rules-list): * lisp/comint.el (comint-arguments): * lisp/double.el (isearch-mode-map): * lisp/ehelp.el (electric-help-command-loop): * lisp/emacs-lisp/cl-macs.el (cl-defstruct): * lisp/emulation/cua-rect.el (cua--copy-rectangle-as-kill) (cua-copy-rectangle-as-text): * lisp/eshell/esh-var.el (eshell-parse-variable-ref): * lisp/hexl.el (hexl-insert-multibyte-char): * lisp/international/titdic-cnv.el (tsang-quick-converter) (ziranma-converter): * lisp/language/tibet-util.el (tibetan-decompose-precomposition-alist): * lisp/mail/mailalias.el (mail-get-names): * lisp/mh-e/mh-e.el (mh-auto-fields-list, mh-identity-default): * lisp/mouse.el (mouse-buffer-menu-map, mouse-buffer-menu-alist): * lisp/play/gametree.el (gametree-make-heading-function): * lisp/shell.el (shell--command-completion-data): * lisp/talk.el (talk-update-buffers): * lisp/tempo.el (tempo-insert-template, tempo-is-user-element) (tempo-build-collection): * lisp/term.el (term-input-filter, term-pager-help): * lisp/textmodes/table.el (table-delete-column): * lisp/url/url-cache.el (url-cache-create-filename-human-readable): * lisp/textmodes/tex-mode.el (latex-imenu-create-index): Don't quote lambdas.
* Ensure that the game directory exists before trying to write to itLars Ingebrigtsen2020-09-221-0/+2
| | | | | * lisp/play/gamegrid.el (gamegrid-add-score-insecure): Make the directory if it doesn't exist (bug#37836).
* ; Fix typosStefan Kangas2020-09-211-1/+1
|
* Merge from origin/emacs-27Glenn Morris2020-09-091-1/+1
|\ | | | | | | | | 9b35b0c99c ; * lisp/man.el (Man-mode): Fix formatting. abca75d2e9 ; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"
| * ; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"Stefan Kangas2020-09-021-1/+1
| |
* | Use lexical-binding in pong.elStefan Kangas2020-08-311-18/+2
| | | | | | | | | | * lisp/play/pong.el: Use lexical-binding. Remove redundant :group args.
* | Use lexical-binding in life.el and add testsStefan Kangas2020-08-301-9/+21
| | | | | | | | | | | | | | | | | | | | * lisp/play/life.el: Use lexical-binding. (life--tick): Extract from... (life): ...here. (life--max-width, life--max-height): New variables. (life-mode, life-setup): Use above variables. * test/lisp/play/life-tests.el: New file.
* | Various life.el improvementsStefan Kangas2020-08-301-12/+48
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/play/life.el (life): New defgroup. (life-step-time): New defcustom (lower default from 1 to 0.5). (life): Use above new variable. Make prefix arguments set step time in tenths of a second instead of whole seconds. (life-expand-plane-if-needed): Rename argument to step-time. (life-setup): Fix running `M-x life' with existing buffer. (life-patterns): Add three more classic patterns.
* | Remove some XEmacs compat code from gamegrid.elStefan Kangas2020-08-301-6/+1
| | | | | | | | | | * lisp/play/gamegrid.el (gamegrid-setup-face): Remove XEmacs compat code.
* | * lisp/play/tetris.el: Use lexical-binding.Stefan Kangas2020-08-301-1/+1
| |
* | Fix compilation warning in snake.elLars Ingebrigtsen2020-08-301-1/+1
| | | | | | | | | | * lisp/play/snake.el (snake-reset-game): Avoid warning about unused variable.
* | * lisp/play/snake.el: Use lexical-binding.Stefan Kangas2020-08-291-1/+1
| |
* | Remove some compat code from bubbles.elLars Ingebrigtsen2020-08-121-6/+4
| | | | | | | | | | | | * lisp/play/bubbles.el (bubbles--remove-overlays): Make into an obsolete alias. (bubbles--initialize, bubbles--show-images): Adjust callers.
* | * lisp/play/snake.el (snake-null-map): Quit on `q'. (Bug#42731)Peder O. Klingenberg2020-08-071-0/+1
| |
* | ; Fix warning in last changeBasil L. Contovounesios2020-05-131-1/+1
| | | | | | | | | | * lisp/play/animate.el (animate-place-char): Silence 'unused lexical variable' warning.
* | Use lexical-binding in animate.el and add testsStefan Kangas2020-05-131-1/+1
| | | | | | | | | | * lisp/play/animate.el: Use lexical-binding. * test/lisp/play/animate-tests.el: New file.
* | Use lexical-binding in dissociate.el and add testsStefan Kangas2020-05-131-1/+1
| | | | | | | | | | * lisp/play/dissociate.el: Use lexical-binding. * test/lisp/play/dissociate-tests.el: New file.
* | Use lexical-binding in spook.elStefan Kangas2020-04-261-5/+3
| | | | | | | | | | | | * lisp/play/spook.el: Use lexical-binding. (spook-phrases-file, spook-phrase-default-count): Remove redundant :group args.
* | Fix movement commands in gomokuAsher Gordon2020-04-031-10/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/play/gomoku.el (gomoku-mode-map): Bind cursor motion keys to gomoku-specific commands. (gomoku-point-x, gomoku-move-right, gomoku-move-left): New commands. (gomoku--intangible, gomoku-move-ne, gomoku-move-se) (gomoku-move-nw, gomoku-move-sw): Call gomoku-move-left and gomoku-move-right instead of forward-char and backward-char. (Bug#40169) * etc/NEWS: Call out the changes.
* | Declare some <package>-version variables obsoleteStefan Kangas2020-03-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are not used for anything these days and can therefore be removed. Package developers should check the Emacs version instead. Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html * lisp/calendar/icalendar.el (icalendar-version): * lisp/dframe.el (dframe-version): * lisp/emacs-lisp/checkdoc.el (checkdoc-version): * lisp/emulation/edt.el (edt-version): * lisp/international/mule.el (mule-version) (mule-version-date): * lisp/linum.el (linum-version): * lisp/play/bubbles.el (bubbles-version): * lisp/speedbar.el (speedbar-version): * lisp/textmodes/remember.el (remember-version): * lisp/url/url-vars.el (url-version): * lisp/woman.el (woman-version): Declare obsolete. * lisp/emacs-lisp/checkdoc.el (checkdoc-start-section): * lisp/speedbar.el (speedbar-mode): * lisp/url/url-about.el (url-about-protocols): * lisp/url/url-http.el (url-http--user-agent-default-string): * lisp/url/url-news.el (url-news-fetch-message-id): * lisp/woman.el (woman-menu, woman-mode): Stop using variables declared obsolete above.
* | Remove subsumed repetitions in regexpsMattias Engdegård2020-02-201-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make regexps smaller and faster by removing terms that are superfluous by virtue of standing next to another term that matches more. See https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00949.html for details. * lisp/bs.el (bs--make-header-match-string): * lisp/gnus/deuglify.el (gnus-outlook-repair-attribution-block): * lisp/gnus/message.el (message-subject-trailing-was-ask-regexp) (message-subject-trailing-was-regexp): * lisp/informat.el (Info-validate): * lisp/net/browse-url.el (browse-url-button-regexp): * lisp/net/rcirc.el (rcirc-url-regexp): * lisp/org/ob-core.el (org-babel-remove-result): * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap): * lisp/org/org-capture.el (org-capture-set-target-location): * lisp/org/org-table.el (org-table-expand-lhs-ranges): * lisp/org/org.el (org-maybe-keyword-time-regexp, org-ts-regexp) (org-ts-regexp-inactive, org-ts-regexp-both): * lisp/play/gametree.el (gametree-hack-file-layout): * lisp/progmodes/cc-mode.el (c-Java-defun-prompt-regexp): * lisp/progmodes/idlw-shell.el (idlwave-shell-halting-error): * lisp/progmodes/ruby-mode.el (ruby-mode-set-encoding): * lisp/progmodes/verilog-mode.el (verilog-error-font-lock-keywords) (verilog-verilint-off, verilog-case-indent-level) (verilog-within-translate-off, verilog-start-translate-off) (verilog-back-to-start-translate-off, verilog-end-translate-off) (verilog-expand-dirnames): * lisp/term.el (term-control-seq-regexp): * lisp/textmodes/reftex-vars.el (featurep): * lisp/url/url-gw.el (url-open-telnet): * lisp/vc/ediff-ptch.el (ediff-context-diff-label-regexp): * lisp/vc/pcvs-parse.el (cvs-parse-status): * test/src/regex-emacs-tests.el (regex-tests-PCRE): Remove subsumed repetitions. * lisp/progmodes/sh-script.el (sh-syntax-propertize-function): Simplify repetition of a repetition.
* Update copyright year to 2020Paul Eggert2020-01-0123-23/+23
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Fixes bug where restoring game saved in an endgame question room would show ↵Ronnie Schnell2019-11-041-0/+2
| | | | 'nil' as the question.
* Remove XEmacs compat code from decipher.elStefan Kangas2019-10-201-7/+1
| | | | | * lisp/play/decipher.el (decipher-last-command-char) (decipher-keypress): Remove XEmacs compat code.
* Disable pause/resume from menu in snake and tetrisStefan Kangas2019-10-202-12/+22
| | | | | | * lisp/play/tetris.el (tetris--menu-def): * lisp/play/snake.el (snake--menu-def): Disable pause/resume from menu.
* Port snake menu to EmacsStefan Kangas2019-10-171-13/+29
| | | | | | | * lisp/play/snake.el (snake--menu-def): New constant. (snake-mode-menu, snake-null-menu): Add a menu. (snake-mode): Remove XEmacs compat code. (snake-mode-map, snake-null-map): Add docstring.
* Port tetris menu to EmacsStefan Kangas2019-10-171-13/+29
| | | | | | | * lisp/play/tetris.el (tetris--menu-def): New constant. (tetris-mode-menu, tetris-null-menu): Add a menu. (tetris-mode): Remove XEmacs compat code. (tetris-null-map, tetris-mode-map): Add docstring.
* lisp/*.el, src/*.c: Doc fixes related to returning t vs non-nilJuanma Barranquero2019-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/flymake-proc.el (flymake-proc--find-buffer-for-file): Doc fix; return value is a buffer, not t. * lisp/progmodes/ebrowse.el (ebrowse-member-display-p): Doc fix; return value is the MEMBER argument, not nil. * lisp/files.el (hack-one-local-variable-eval-safep): * lisp/play/doctor.el (doctor-nounp, doctor-pronounp): * lisp/progmodes/flymake-proc.el (flymake-proc--check-include): * lisp/progmodes/js.el (js--broken-arrow-terminates-line-p): Doc fix; a non-nil return value is not always t. * lisp/image.el (image-type-available-p): * lisp/simple.el (region-active-p): * lisp/window.el (frame-root-window-p): * src/buffer.c (Fbuffer_live_p): * src/image.c (Finit_image_library): * src/window.c (Fwindow_minibuffer_p): Doc fix; a non-nil return value is always t. * doc/lispref/minibuf.texi (Minibuffer Windows): Doc fix.
* Revert "Remove XEmacs code from tetris.el"Lars Ingebrigtsen2019-10-151-0/+11
| | | | | | This reverts commit 68b91333d5a070c84afeadc273fd5c44df70f0a6. This should be ported to Emacs instead.
* Revert "Remove XEmacs-only code from snake.el"Lars Ingebrigtsen2019-10-151-0/+11
| | | | | | This reverts commit 7174a2b59f4cb883beb70bb3d182d59ab425e2f1. This should be ported to Emacs instead.
* Remove XEmacs-only code from snake.elLars Ingebrigtsen2019-10-041-11/+0
| | | | * lisp/play/snake.el (snake-mode): Remove XEmacs-only code.
* Remove XEmacs code from tetris.elLars Ingebrigtsen2019-10-041-11/+0
| | | | * lisp/play/tetris.el (tetris-mode): Remove XEmacs-only code.
* Allow gamegrid-add-score to treat lower scores as better.Federico Tedin2019-09-141-22/+27
| | | | | | | | | | | * lisp/play/gamegrid.el (gamegrid-add-score): Add 'reverse' parameter. (gamegrid-add-score-with-update-game-score): Add 'reverse' parameter. (gamegrid-add-score-with-update-game-score-1): Add 'reverse' parameter. Pass on "-r" argument to update-game-score. (gamegrid-add-score-insecure): Add 'reverse' parameter, reverse scores when it's non-nil. (Bug#36867) * etc/NEWS: Announce the change.
* Really save games scores to the games scores directoryLars Ingebrigtsen2019-08-231-1/+2
| | | | | | * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score): Save games scores to `gamegrid-user-score-file-directory' by default (bug#36971).
* Add C-b/f/p/n keystrokes in `M-x snake'Lars Ingebrigtsen2019-08-141-1/+6
| | | | | * lisp/play/snake.el (snake-mode-map): Add the C-b/f/p/n in addition to the cursor keys (bug#16720).
* Merge from origin/emacs-26Glenn Morris2019-08-101-2/+2
|\ | | | | | | | | | | | | | | 0860ac0 (origin/emacs-26) Improve documentation of features that use ... fae1ff6 Fix docstrings in pong 82a2894 Improve doc strings of 'append-to-buffer' and friends cb0403d Fix octave-mode ElDoc support 691790b Avoid Groff hanging on MS-Windows when invoked by "M-x man"