emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gnugo fef1847 040/357: [gnugo] Use special constructs f


From: Stefan Monnier
Subject: [elpa] externals/gnugo fef1847 040/357: [gnugo] Use special constructs for keybindings in docstrings.
Date: Sun, 29 Nov 2020 14:50:43 -0500 (EST)

branch: externals/gnugo
commit fef18477e5c880cbe659762df34e0c9f6364b44e
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [gnugo] Use special constructs for keybindings in docstrings.
    
    * packages/gnugo/gnugo.el (gnugo-board-mode, gnugo): Rewrite docstring.
---
 gnugo.el | 51 ++++-----------------------------------------------
 1 file changed, 4 insertions(+), 47 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index 15143ba..1d1166c 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1618,54 +1618,9 @@ NOTE: At this time, GTP command handling specification 
is still
 (defun gnugo-board-mode ()
   "Major mode for playing GNU Go.
 Entering this mode runs the normal hook `gnugo-board-mode-hook'.
-In this mode, keys do not self insert.  Default keybindings:
+In this mode, keys do not self insert.
 
-  ?             View this help.
-
-  RET or SPC    Run `gnugo-move'.
-
-  q or Q        Quit (the latter without confirmation).
-
-  R             Resign.
-
-  u             Run `gnugo-undo-two-moves'.
-
-  U             Pass to `gnugo-magic-undo' either the board position
-                at point (if no prefix arg), or the prefix arg converted
-                to a number.  E.g., to undo 16 moves: `C-u C-u U' (see
-                `universal-argument'); to undo 42 moves: `M-4 M-2 U'.
-
-  C-l           Run `gnugo-refresh'.
-
-  _ or M-_      Bury the Board buffer (when the boss is near).
-
-  P             Run `gnugo-pass'.
-
-  i             Toggle display using XPM images (if supported).
-
-  w             Run `gnugo-worm-stones'.
-  d             Run `gnugo-dragon-stones'.
-
-  W             Run `gnugo-worm-data'.
-  D             Run `gnugo-dragon-data'.
-
-  t             Run `gnugo-toggle-dead-group'.
-
-  !             Run `gnugo-estimate-score'.
-
-  : or ;        Run `gnugo-command' (for GTP commands to GNU Go).
-
-  =             Display board position under point (if valid).
-
-  h             Run `gnugo-move-history'.
-
-  F             Run `gnugo-display-final-score'.
-
-  s             Run `gnugo-write-sgf-file'.
-  or C-x C-w
-  or C-x C-s
-
-  l             Run `gnugo-read-sgf-file'."
+\\{gnugo-board-mode-map}"
   (switch-to-buffer (generate-new-buffer "(Uninitialized GNUGO Board)"))
   (buffer-disable-undo)                 ; todo: undo undo undoing
   (kill-all-local-variables)
@@ -1785,6 +1740,8 @@ In this mode, keys do not self insert.  Default 
keybindings:
   "Run gnugo in a buffer, or resume a game in progress.
 Prefix arg means skip the game-in-progress check and start a new
 game straight away.
+\\<gnugo-board-mode-map>
+To play, use \\[gnugo-move] to place a stone or \\[gnugo-pass] to pass.
 
 You are queried for additional command-line options (Emacs supplies
 \"--mode gtp --quiet\" automatically).  Here is a list of options



reply via email to

[Prev in Thread] Current Thread [Next in Thread]