1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-05 08:53:45 +00:00
Commit Graph

756 Commits

Author SHA1 Message Date
Stefan Kangas
9a110cb0d9 ; Make function missed in previous change obsolete
* lisp/play/handwrite.el (menu-bar-handwrite-map): Make unused
function obsolete.
2021-02-28 00:13:24 +01:00
Lars Ingebrigtsen
97eec9db79 Do mode tagging in decipher.el 2021-02-22 23:30:04 +01:00
Lars Ingebrigtsen
11e22452b0 Do mode tagging in bubbles.el 2021-02-22 23:27:53 +01:00
Stefan Kangas
767608ef56 Make unused variable menu-bar-handwrite-map obsolete
* lisp/play/handwrite.el (menu-bar-handwrite-map): Make unused
variable obsolete.
2021-02-21 10:49:07 +01:00
Stefan Kangas
1b9e233493 Convert bubbles menu to easy-menu-define
* lisp/play/bubbles.el (bubbles-game-theme-menu)
(bubbles-graphics-theme-menu, bubbles-menu, bubbles-mode-map):
Move menu definition from here...
(bubbles-menu): ...to here, and convert to easy-menu-define.
2021-02-21 10:49:07 +01:00
Stefan Kangas
73a6ab0a1b Do interactive mode tagging for snake.el 2021-02-19 06:51:49 +01:00
Stefan Kangas
928b643a28 Do interactive mode tagging for tetris.el 2021-02-19 06:32:04 +01:00
Stefan Kangas
03adc69af7 Do `interactive' mode tagging in gomoku.el
* lisp/play/gomoku.el: Do `interactive' mode tagging.
2021-02-16 10:06:42 +01:00
Stefan Kangas
9f843572d2 * lisp/play/gomoku.el: Minor doc fixes; formatting. 2021-02-16 10:06:42 +01:00
Lars Ingebrigtsen
d6bfa30860 Do command markup in blackbox.el 2021-02-14 18:14:36 +01:00
Lars Ingebrigtsen
1baadbe060 Mark up 5x5 for interactive mode 2021-02-14 16:18:47 +01:00
Stefan Monnier
1be27e3bf3 * lisp/play/decipher.el: Use lexical-binding
(decipher-mode-syntax-table): Move initialization into declaration.
(decipher-mode, decipher-stats-mode): Use `define-derived-mode`.
(decipher-stats-buffer): Use `buffer-local-value`.
2021-02-10 17:47:18 -05:00
Stefan Kangas
a0451be18b Use lexical-binding in almost all of play/*.el
* lisp/play/5x5.el: Use lexical-binding.
(5x5-draw-grid-end, 5x5-draw-grid, 5x5-solver)
(5x5-solve-suggest): Silence byte-compiler.

* lisp/play/cookie1.el: Use lexical-binding.
(cookie-shuffle-vector, cookie-apropos): Silence byte-compiler.

* lisp/play/zone.el: Use lexical-binding.
(zone): Convert lambda to proper lexical closure.
(zone-replace-char, zone-fill-out-screen): Silence byte-compiler.

* lisp/play/blackbox.el:
* lisp/play/doctor.el:
* lisp/play/gametree.el:
* lisp/play/hanoi.el: Use lexical-binding.

* test/lisp/play/cookie1-resources/cookies:
* test/lisp/play/cookie1-tests.el: New files.
2021-02-10 06:25:28 +01:00
Stefan Kangas
cfe8d9e0f7 Remove redundant :group args in play/*.el
* lisp/play/bubbles.el:
* lisp/play/cookie1.el:
* lisp/play/decipher.el:
* lisp/play/dunnet.el:
* lisp/play/gametree.el:
* lisp/play/gomoku.el:
* lisp/play/hanoi.el: Remove redundant :group args.
2021-02-02 09:57:07 +01:00
Stefan Kangas
a0b743da19 ; Fix my previous commit
* lisp/play/5x5.el (5x5-solver-output): Prefer defvar-local.
* lisp/play/gamegrid.el (gamegrid-display-table): Provide default
value.
2021-01-31 05:50:10 +01:00
Stefan Kangas
31ec1a7d32 Prefer defvar-local in play/*.el
* lisp/play/5x5.el
(5x5-grid, 5x5-x-pos, 5x5-y-pos, 5x5-moves, 5x5-cracking):
* lisp/play/decipher.el (decipher-alphabet)
(decipher-stats-buffer, decipher-undo-list-size)
(decipher-undo-list):
* lisp/play/gamegrid.el (gamegrid-use-glyphs)
(gamegrid-use-color, gamegrid-font, gamegrid-face)
(gamegrid-display-options, gamegrid-buffer-width)
(gamegrid-buffer-height, gamegrid-blank, gamegrid-timer)
(gamegrid-display-mode, gamegrid-display-table)
(gamegrid-face-table, gamegrid-buffer-start)
(gamegrid-score-file-length):
* lisp/play/snake.el (snake-length, snake-velocity-x)
(snake-velocity-y, snake-positions, snake-score, snake-paused)
(snake-moved-p, snake-velocity-queue):
* lisp/play/tetris.el (tetris-shape, tetris-rot)
(tetris-next-shape, tetris-n-shapes, tetris-n-rows)
(tetris-score, tetris-pos-x, tetris-pos-y, tetris-paused):
Prefer defvar-local.

* lisp/play/5x5.el (5x5-defvar-local): Make obsolete.
2021-01-31 05:28:40 +01:00
Stefan Kangas
44eb87cd0a Remove redundant requires of 'derived'
* lisp/net/newst-backend.el (derived):
* lisp/net/newst-plainview.el (derived):
* lisp/play/gametree.el (derived):
* lisp/textmodes/less-css-mode.el (derived): Remove redundant require;
'define-derived-mode' is autoloaded.
2021-01-31 04:30:48 +01:00
Stefan Kangas
f3f6e84ca6 Use lexical-binding in mpuz.el
* lisp/play/mpuz.el: Use lexical-binding.  Remove redundant :group
args.
(mpuz-switch-to-window): Minor cleanup.
2021-01-30 00:33:15 +01:00
Stefan Kangas
1a4bb1e2f2 Use lexical-binding in handwrite.el
* lisp/play/handwrite.el: Use lexical-binding.  Remove redundant
:group args.  Minor cleanups.

(handwrite): Minor cleanups.
(handwrite-set-pagenumber-off, handwrite-set-pagenumber-on): Make
comments into docstrings.
2021-01-30 00:32:52 +01:00
Stefan Monnier
ba011e487d * lisp/play/dunnet.el: Run the game when loaded via --batch -l dunnet
(dun--batch): Rename from `dun-batch` and don't autoload.
(dunnet): Delegate to `dun--batch` when in batch mode.
2021-01-05 21:29:41 -05:00
Paul Eggert
ba05d005e5 Update copyright year to 2021
Run "TZ=UTC0 admin/update-copyright".
2021-01-01 01:13:56 -08:00
Stefan Kangas
5e1416fd0a Minor cleanups in tetris.el
* lisp/play/tetris.el: Remove redundant :group args.
(tetris-get-tick-period): Drop unnecessary check.
(tetris): Stylistic doc fixes.
2020-12-28 08:01:55 +01:00
Stefan Kangas
d1b1a5c0e6 ; * lisp/play/5x5.el: Fix my last change. 2020-12-16 15:21:39 +01:00
Stefan Kangas
b857ea24f7 * lisp/play/5x5.el: Fix typo. Remove redundant :group args. 2020-12-14 18:08:20 +01:00
Stefan Monnier
78607f21b5 * lisp/play/dunnet.el: Make it so loading the file is harmless
Move comments into docstrings while at it.

(dun-batch): New function.
2020-12-11 19:06:55 -05:00
Stefan Kangas
dc39c66d3b ; * lisp/play/doctor.el (make-doctor-variables): Fix indentation. 2020-12-05 12:06:19 +01:00
Stefan Kangas
a77f5abd98 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.
2020-12-05 12:06:19 +01:00
Stefan Kangas
b7c43b85fa * lisp/play/dunnet.el: Remove Emacs 18 compat code. 2020-12-02 13:09:32 +01:00
Michael Albinus
67a8bdb90c Use null-device where appropriate
* 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)
2020-11-25 22:13:33 +01:00
Lars Ingebrigtsen
b4b3eb8b80 Make the handwrite.el PS valid again
* lisp/play/handwrite.el (handwrite): Make the PS valid
(bug#44648).  Suggested by Omar Antolín <omar.antolin@gmail.com>.
2020-11-16 23:54:02 +01:00
Stefan Kangas
08b1028c1e Use lexical-binding in fortune.el and add tests
* 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.
2020-11-14 15:55:08 +01:00
Stefan Kangas
4e94267042 Remove redundant installation instructions
* 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.
2020-11-12 03:12:35 +01:00
Stefan Kangas
39561fbfb3 Use lexical-binding in solitaire.el
* lisp/play/solitaire.el: Use lexical-binding.  Remove redundant
:group args.
2020-11-03 04:19:53 +01:00
Stefan Kangas
58a9cec525 Add "Old-" prefix to "Version" header in more cases
These version numbers are historical accidents and not relevant today.
Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html
2020-10-18 20:35:26 +02:00
Stefan Kangas
c6fa0ad315 ; Prefer https to http in many URLs
These were all tested with https and confirmed working.
2020-10-01 15:28:15 +02:00
Stefan Kangas
b03f74e0f2 Don't quote lambdas in several places
* 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.
2020-10-01 15:28:14 +02:00
Lars Ingebrigtsen
44bb59f79e Ensure that the game directory exists before trying to write to it
* lisp/play/gamegrid.el (gamegrid-add-score-insecure): Make the
directory if it doesn't exist (bug#37836).
2020-09-22 17:32:51 +02:00
Stefan Kangas
462dbc1cb2 ; Fix typos 2020-09-21 14:26:42 +02:00
Glenn Morris
5a9e237e15 Merge from origin/emacs-27
9b35b0c99c ; * lisp/man.el (Man-mode): Fix formatting.
abca75d2e9 ; Fix typos; change "Emacs-Lisp" to "Emacs Lisp"
2020-09-09 07:51:14 -07:00
Stefan Kangas
abca75d2e9 ; Fix typos; change "Emacs-Lisp" to "Emacs Lisp" 2020-09-02 00:01:37 +02:00
Stefan Kangas
2ea34662c2 Use lexical-binding in pong.el
* lisp/play/pong.el: Use lexical-binding.
Remove redundant :group args.
2020-08-31 20:48:59 +02:00
Stefan Kangas
6593d73928 Use lexical-binding in life.el and add tests
* 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.
2020-08-30 21:09:07 +02:00
Stefan Kangas
be2ef629ee Various life.el improvements
* 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.
2020-08-30 21:09:07 +02:00
Stefan Kangas
87b4368862 Remove some XEmacs compat code from gamegrid.el
* lisp/play/gamegrid.el (gamegrid-setup-face): Remove XEmacs
compat code.
2020-08-30 21:09:07 +02:00
Stefan Kangas
2c284889e0 * lisp/play/tetris.el: Use lexical-binding. 2020-08-30 21:09:07 +02:00
Lars Ingebrigtsen
6ac270dcd3 Fix compilation warning in snake.el
* lisp/play/snake.el (snake-reset-game): Avoid warning about
unused variable.
2020-08-30 14:16:07 +02:00
Stefan Kangas
17291414b1 * lisp/play/snake.el: Use lexical-binding. 2020-08-29 22:47:39 +02:00
Lars Ingebrigtsen
af6ea5578a Remove some compat code from bubbles.el
* lisp/play/bubbles.el (bubbles--remove-overlays): Make into an
obsolete alias.
(bubbles--initialize, bubbles--show-images): Adjust callers.
2020-08-12 18:39:17 +02:00
Peder O. Klingenberg
8c4fe52286 * lisp/play/snake.el (snake-null-map): Quit on `q'. (Bug#42731) 2020-08-07 12:23:31 +02:00
Basil L. Contovounesios
41e6682eb6 ; Fix warning in last change
* lisp/play/animate.el (animate-place-char): Silence 'unused lexical
variable' warning.
2020-05-13 03:03:17 +01:00