1. 20 Feb, 2017 5 commits
    • Mark Oteiza's avatar
      Do not use switch-to-buffer for working in a temp buffer · 27a76829
      Mark Oteiza authored
      * lisp/play/dunnet.el (dunnet): Use pop-to-buffer-same-window instead,
      cf. Bug#22244.
      (dun-load-d, dun-eval, dun-save-game, dun-do-logfile): Use
      with-temp-buffer instead.
      27a76829
    • Mark Oteiza's avatar
      Make dun-room-shorts a defconst · e546d3d9
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-room-shorts): Make defconst and collect
      initial value into the declaration.
      (dun-space-to-hyphen): Remove.
      e546d3d9
    • Mark Oteiza's avatar
      Remove member clone · e7b0dac1
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-answer): Use member instead.
      (dun-members): Remove.
      e7b0dac1
    • Mark Oteiza's avatar
      Prefix global var · 2f605c3f
      Mark Oteiza authored
      * lisp/play/dunnet.el (room): Rename to dun-room.
      (dun-messages, dunnet, dun-describe-room, dun-drop, dun-move):
      (dun-restore, dun-do-logfile, dun-batch-loop): Use new name.
      2f605c3f
    • Mark Oteiza's avatar
      Replace nested ifs with cond · 0db5ba48
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-messages, dun-describe-room, dun-examine):
      (dun-eat, dun-put-objs, dun-turn, dun-press, dun-ls, dun-cd): Use when
      and cond where appropriate.
      (dun-sauna-heat): Accept sauna level as an argument.  Use cond.
      (dun-take): Use null and dun-mprincl.
      (dun-inven-weight, dun-load-d): Reformat.
      (dun-remove-obj-from-inven, dun-remove-obj-from-room): Nix setq to nil.
      0db5ba48
  2. 19 Feb, 2017 5 commits
    • Mark Oteiza's avatar
      ; Fix previous change · b6a1a745
      Mark Oteiza authored
      Actually adjust the comment.
      * lisp/play/dunnet.el: Change comment to refer to section, add page
      break to better demarcate section.
      b6a1a745
    • Mark Oteiza's avatar
      Set up combination and random item location · 7455c2ad
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-combination): Make defconst.
      (tloc, tcomb): Remove.  Replace with a top-level form.
      7455c2ad
    • Mark Oteiza's avatar
      Replace movement variables with an alist and accessor · 44931daf
      Mark Oteiza authored
      * lisp/play/dunnet.el (north, south, east, west, northeast, southeast):
      (northwest, southwest, up, down, in, out): Remove.
      (dun-movement-alist): New constant.
      (dun-movement): New function.
      (dun-n, dun-s, dun-e, dun-w, dun-ne, dun-se, dun-nw, dun-sw, dun-up):
      (dun-down, dun-in, dun-out): Use a symbol for indicating movement.
      (dun-move, dun-special-move): Translate movement symbol to an
      enumeration.
      44931daf
    • Mark Oteiza's avatar
      Change top-level setq forms to defvar or defconst · 48cb4a96
      Mark Oteiza authored
      Also collect some code onto fewer lines and reindent.
      * lisp/play/dunnet.el (dun-visited, dun-current-room, dun-exitf):
      (dun-badcd, dun-computer, dun-floppy, dun-key-level, dun-hole):
      (dun-correct-answer, dun-lastdir, dun-numsaves, dun-jar, dun-dead):
      (room, dun-numcmds, dun-wizard, dun-endgame-question, dun-logged-in):
      (dungeon-mode, dun-unix-verbs, dun-dos-verbs, dun-batch-mode):
      (dun-cdpath, dun-cdroom, dun-uncompressed, dun-ethernet):
      (dun-restricted, dun-ftptype, dun-endgame, dun-rooms):
      (dun-light-rooms, dun-verblist, dun-inbus, dun-nomail, dun-ignore):
      (dun-mode, dun-sauna-level, north, south, east, west, northeast):
      (southeast, northwest, southwest, up, down, in, out, dungeon-map):
      (dun-objnames, obj-special, dun-room-objects, dun-room-silents):
      (dun-inventory, dun-objects, dun-object-lbs, dun-object-pts):
      (dun-objfiles, dun-perm-objects, dun-physobj-desc, dun-permobj-desc):
      (dun-diggables, dun-room-shorts, dun-endgame-questions): Change
      declaration to use defvar or defconst.
      (dun-doverb, dun-vparse, dun-vparse2, dun-batch-parse):
      (dun-batch-parse2): Omit the dun- prefix from arguments dun-ignore
      dun-verblist.  Those are now constants and the byte compiler doesn't
      allow defconsts in lambda lists.
      48cb4a96
    • Mark Oteiza's avatar
      Move all dunnet globals up to the top · 33400529
      Mark Oteiza authored
      * lisp/play/dunnet.el: Adjust comments to reflect moved forms.
      (dun-visited, dun-current-room, dun-exitf):
      (dun-badcd, dun-computer, dun-floppy, dun-key-level, dun-hole):
      (dun-correct-answer, dun-lastdir, dun-numsaves, dun-jar, dun-dead):
      (room, dun-numcmds, dun-wizard, dun-endgame-question, dun-logged-in):
      (dungeon-mode, dun-unix-verbs, dun-dos-verbs, dun-batch-mode):
      (dun-cdpath, dun-cdroom, dun-uncompressed, dun-ethernet):
      (dun-restricted, dun-ftptype, dun-endgame, dun-rooms):
      (dun-light-rooms, dun-verblist, dun-inbus, dun-nomail, dun-ignore):
      (dun-mode, dun-sauna-level, north, south, east, west, northeast):
      (southeast, northwest, southwest, up, down, in, out, dungeon-map):
      (dun-objnames, obj-special, dun-room-objects, dun-room-silents):
      (dun-inventory, dun-objects, dun-object-lbs, dun-object-pts):
      (dun-objfiles, dun-perm-objects, dun-physobj-desc, dun-permobj-desc):
      (dun-diggables, dun-room-shorts, dun-endgame-questions): Move to the
      top of the file, before any uses.
      33400529
  3. 17 Feb, 2017 1 commit
  4. 22 Jan, 2017 1 commit
  5. 17 Jan, 2017 3 commits
    • Mark Oteiza's avatar
      Mark unused arguments and remove unused variables · 14c7d3a6
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-mode, dun-die, dun-inven, dun-try-take):
      (dun-dig, dun-type, dun-n, dun-s, dun-e, dun-w, dun-ne, dun-se):
      (dun-nw, dun-sw, dun-up, dun-down, dun-in, dun-out, dun-long):
      (dun-swim, dun-score, dun-flush, dun-piss, dun-sleep, dun-drive):
      (dun-superb, dun-power, dun-unix-parse, dun-bin, dun-fascii):
      (dun-ftpquit, dun-ftphelp, dun-uexit, dun-pwd, dun-dos-parse):
      (dun-dos-invd, dun-dos-spawn, dun-dos-exit, dun-dos-nil):
      (dungeon-nil): Mark arguments as unused.
      (dun-drop, dun-objnum-from-args, dun-get-path, dun-ftp):
      (dun-restore): Remove unused variable.
      14c7d3a6
    • Mark Oteiza's avatar
      Nix some uses of eval · 5362ef79
      Mark Oteiza authored
      * lisp/play/dunnet.el: Fix triple negative.
      (dun-doverb): Use funcall instead of eval.
      (dun-echo): Just call dun-mprinc.
      (dun-save-val): Just bind value without eval.
      5362ef79
    • Mark Oteiza's avatar
      ; * lisp/play/dunnet.el: Fix file footer. · 922850bc
      Mark Oteiza authored
      922850bc
  6. 01 Jan, 2017 1 commit
  7. 08 Jan, 2016 1 commit
  8. 01 Jan, 2016 1 commit
  9. 18 Nov, 2015 1 commit
  10. 25 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Prefer directed to neutral quotes · 875a5d0e
      Paul Eggert authored
      Prefer directed to neutral quotes in docstings and diagnostics.
      In docstrings, escape apostrophes that would otherwise be translated
      to curved quotes using the newer, simpler rules.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-lang.el (math-read-giac-subscr)
      (math-read-math-subscr):
      * lisp/calc/calc-misc.el (report-calc-bug):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      (calc-read-parse-table-part):
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/dabbrev.el (dabbrev-expand):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-arg.el (eshell-parse-arguments):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
      (filesets-update-pre010505):
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      (gnus-agent-fetch-headers):
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      (gnus-registry--split-fancy-with-parent-internal):
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/gnus/spam.el (spam-check-blackholes):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/tramp-cache.el:
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      (org-babel-goto-named-result):
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      (org-clock-resolve):
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      (org-mouse-context-menu):
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
      (dun-rooms, dun-endgame-questions):
      * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/antlr-mode.el (antlr-options-alists):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      (flymake-start-syntax-check-process):
      * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/server.el (server-get-auth-key):
      * lisp/subr.el (version-to-list):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
      Use directed rather than neutral quotes in diagnostics.
      875a5d0e
  11. 17 Aug, 2015 1 commit
  12. 12 May, 2015 1 commit
  13. 01 Jan, 2015 2 commits
  14. 16 Jun, 2014 1 commit
    • Ron Schnell's avatar
      * play/dunnet.el (dun-doassign): Fixed bug where UNIX variable assignment... · eca36e92
      Ron Schnell authored
      * play/dunnet.el (dun-doassign): Fixed bug where UNIX variable assignment without varname or rhs causes crash.
      * play/dunnet.el (dun-ftp): Fixed bug where blank ftp password is allowed, making it impossible to win endgame.
      * play/dunnet.el (dun-unix-verbs): Added ssh as alias to rlogin, because nobody knows what rlogin is anymore.
      * play/dunnet.el (dun-help): Bumped version number, updated contact info.
      eca36e92
  15. 14 Jun, 2014 1 commit
  16. 01 Jan, 2014 1 commit
  17. 28 May, 2013 1 commit
    • Glenn Morris's avatar
      dunnet.el trivia · 7a20ef83
      Glenn Morris authored
      * play/dunnet.el (byte-compile-warnings): Don't disable them all.
      (dun-unix-verbs): Remove dun-zippy.
      (dun-zippy): Remove function.
      7a20ef83
  18. 01 Jan, 2013 1 commit
  19. 01 Sep, 2012 1 commit
    • Paul Eggert's avatar
      Better seed support for (random). · 0e23ef9d
      Paul Eggert authored
      * doc/lispref/numbers.texi (Random Numbers): Document new behavior of
      the calls (random) and (random STRING).
      * etc/NEWS: Document new behavior of (random), (random "string").
      * lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el:
      * lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el:
      * lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el:
      * lisp/play/tetris.el, lisp/play/zone.el:
      * lisp/calc/calc-comb.el (math-init-random-base):
      * lisp/play/blackbox.el (bb-init-board):
      * lisp/play/life.el (life):
      * lisp/server.el (server-use-tcp):
      * lisp/type-break.el (type-break):
      Remove unnecessary call to (random t).
      * lisp/net/sasl.el (sasl-unique-id-function):
      Change (random t) to (random), now that the latter is more random.
      * lisp/play/life.el (life-initialized): Remove no-longer-needed var.
      * lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup):
      * lisp/gnus/message.el (message-canlock-generate, message-unique-id):
      Change (random t) to (random), now that the latter is more random.
      * lisp/org/org-id.el (org-id-uuid):
      Change (random t) to (random), now that the latter is more random.
      * src/emacs.c (main): Call init_random.
      * src/fns.c (Frandom): Set the seed from a string argument, if given.
      Remove long-obsolete Gentzel cruft.
      * src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long.
      (init_random): New function.
      0e23ef9d
  20. 11 Jan, 2012 1 commit
  21. 05 Jan, 2012 1 commit
  22. 30 Dec, 2011 1 commit
  23. 25 Jan, 2011 1 commit
  24. 15 Jan, 2011 1 commit
  25. 02 Jan, 2011 1 commit
  26. 13 Jan, 2010 1 commit
  27. 05 Jan, 2009 1 commit
  28. 06 May, 2008 1 commit
  29. 10 Apr, 2008 1 commit