branch: externals/hyperbole
commit 1ad4299f20c3bf2916f5f3e1cd4bc0edaf62659e
Author: bw <[email protected]>
Commit: bw <[email protected]>

    kotl-mode.el - Update {C-c ; b}, {C-c C-c}, {C-c [} and {C-c ]} keys
    
    man/hyperbole.texi (View Specs, Relocating and Copying, Koutliner Keys):
    kotl/EXAMPLE.kotl: INCOMPATIBLE CHANGE: Move {C-c ; b}
    (kotl-mode:toggle-blank-lines) to {C-c ]}.  Move {C-c C-c}
    (kotl-mode:copy-before) to {C-c ; b} to match with {c-c ; c}
    (kotl-mode:copy-after) binding.  {C-c C-c} no longer worked
    because Org-compatibility overrode its binding.
    
    kotl/EXAMPLE.kotl:
    man/hyperbole.texi (Promoting and Demoting):
    kotl/kotl-mode.el (kotl-mode:setup-keymap): INCOMPATIBLE CHANGE:
    Move {C-c C-]} binding to {C-c [} as is easier-to-type and is a
    'left' opening brace like left 'TAB' key.
    
    kotl-mode:toggle-tab-flag - Add missing (interactive) expression
    and fix mis-printing of TAB/S-TAB keys due to bindings being
    wrapped in org-hijacker calls.
    
    kotl-mode:to-end-of-line - Rename to 'kotl-mode:end-of-line'.
    This was not done previously due to an old XEmacs compiler but
    XEmacs is no longer supported.
    
    kotl/EXAMPLE.kotl:
    man/hyperbole.texi (Cell Attributes): Update key binding
    descriptions and move {C-c ; h} description into the key binding
    table.  Also, change C-0 to M-0 and C--1 to M--1 since control
    digits don't typically work on a terminal.
---
 ChangeLog          |  28 +++++++++++++
 kotl/EXAMPLE.kotl  |  68 +++++++++++++++++--------------
 kotl/kotl-mode.el  | 115 +++++++++++++++++++++++++++++------------------------
 kotl/kview.el      |   6 +--
 man/hyperbole.texi |  92 +++++++++++++++++++++---------------------
 5 files changed, 178 insertions(+), 131 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 27a2c41af01..518a24bbdb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,31 @@
+2026-10-16  Bob Weiner  <[email protected]>
+
+* man/hyperbole.texi (View Specs, Relocating and Copying, Koutliner Keys):
+* kotl/EXAMPLE.kotl: INCOMPATIBLE CHANGE: Move {C-c ; b}
+    (kotl-mode:toggle-blank-lines) to {C-c ]}.  Move {C-c C-c}
+    (kotl-mode:copy-before) to {C-c ; b} to match with {c-c ; c}
+    (kotl-mode:copy-after) binding.  {C-c C-c} no longer worked
+    because Org-compatibility overrode its binding.
+
+* kotl/EXAMPLE.kotl:
+  man/hyperbole.texi (Promoting and Demoting):
+  kotl/kotl-mode.el (kotl-mode:setup-keymap): INCOMPATIBLE CHANGE:
+    Move {C-c C-]} binding to {C-c [} as is easier-to-type and is a
+    'left' opening brace like left 'TAB' key.
+
+* kotl/kotl-mode.el (kotl-mode:toggle-tab-flag): Add missing
+    (interactive) expression and fix mis-printing of TAB/S-TAB
+    keys due to bindings being wrapped in org-hijacker calls.
+                    (kotl-mode:to-end-of-line): Rename to
+    'kotl-mode:end-of-line'.  This was not done previously due to an old
+    XEmacs compiler but XEmacs is no longer supported.
+
+* kotl/EXAMPLE.kotl:
+  man/hyperbole.texi (Cell Attributes): Update key binding
+    descriptions and move {C-c ; h} description into the key binding
+    table.  Also, change C-0 to M-0 and C--1 to M--1 since control
+    digits don't typically work on a terminal.
+
 2026-10-14  Bob Weiner  <[email protected]>
 
 * hyrolo.el (hyrolo-grep): Add check of 'hsys-consult-flag' before
diff --git a/kotl/EXAMPLE.kotl b/kotl/EXAMPLE.kotl
index e88dcd9f3d0..6a19824fd2f 100644
--- a/kotl/EXAMPLE.kotl
+++ b/kotl/EXAMPLE.kotl
@@ -29,15 +29,21 @@
 
      3b. Advanced outline processing
 
-       3b1. NOTE: As of Hyperbole version 9.3.0, the Koutliner {C-c
-            <letter>} keys have moved to {C-c ; <letter>} so as not to
-            override keys reserved for global user-specific bindings.  If
-            you don't care about this and want the old bindings back,
-            uncomment the `kotl-mode:letter-prefix' setting in your
-            Hyperbole `use-package' initialization based on the reference
-            file "${hyperb:dir}/man/use-package".  You can also
-            interactively toggle between `C-c ;' and `C-c' prefixes with
-            {M-1 C-c C-l}.
+       3b1. NOTE: There are two major changes to the Koutliner as of
+            Hyperbole version 9.3.0:
+
+         3b1a. The {TAB} and {S-TAB} keys default to Org-style cycling
+               rather than tree demotion/promotion (use {M-<right> and
+               M-<left> arrow keys for tree demotion/promotion).  {C-c [}
+               toggles {TAB} and {S-TAB} from Org-style cycling to tree
+               demotion/promotion and back again, for this traditional
+               outliner operation.
+
+         3b1b. The Koutliner {C-c <letter>} keys have moved to {C-c ;
+               <letter>} so as not to override keys reserved for global
+               user-specific bindings.  {M-1 C-c C-l} will toggle between
+               restoring the original {C-c <letter>} bindings and removing
+               them; it does not affect the {C-c ; <letter>} bindings.
 
        3b2. Autonumbering: Full auto-numbering in Augment (1a2) or legal
             (1.1.2) formats.  Augment style is the default because it is
@@ -53,17 +59,17 @@
             least two characters long.
 
        3b4. Cell Creation: {C-j} adds a new cell as a sibling following the
-            current cell.  {C-u C-j} or {C-c ; a} adds the cell as a child of
-            the current cell.  Any other positive prefix arg to {C-j} adds
-            that many following cells at the same level as the current
-            one.  A negative prefix arg to {C-j} adds that many
-            preceding cells at the same level as the current one.  And
-            a zero prefix arg adds a new cell as the first one in the
-            outline at the top level.
+            current cell.  {C-u C-j} or {C-c ; a} adds the cell as the first
+            child of the current cell.  Any other positive prefix arg to
+            {C-j} adds that many following cells at the same level as the
+            current one.  A negative prefix arg to {C-j} adds that many
+            preceding cells at the same level as the current one.  And a
+            zero prefix arg adds a new cell as the first one in the outline
+            at level 1.
             
             {C-c ; p} adds the cell as the preceding sibling of the current
             cell, i.e. a new cell immediately prior to the current cell at
-            the same level; same as {C-u -1 C-j}.
+            the same level; same as {M--1 C-j}.
             
             {C-u C-c ; p} adds the cell as the sibling of the current cell's
             parent.
@@ -79,7 +85,7 @@
          3b6a. By default, TAB and S-TAB perform Org-style tree and outline
                visibility cycling respectively.  See <@ 3b7=071>.
 
-         3b6b. {C-c C-]} toggles the function of {TAB} and {S-TAB} between
+         3b6b. {C-c [} toggles the function of {TAB} and {S-TAB} between
                Org-like tree visibility cycling and demotion/promotion.  See
                <@ 3b8=013>.
 
@@ -200,12 +206,12 @@
              {M-<down>}    - Move current tree past prefix arg same level 
trees.
              {M-<up>}      - Move current tree back prefix arg same level 
trees.
             
+             {C-c ; b}     - Copy <tree> to precede <cell>.
+             {C-u C-c ; b} - Copy <tree> as first child of the parent of 
<cell>.
+            
              {C-c ; c}     - Copy <tree> to follow as sibling of <cell>.
              {C-u C-c ; c} - Copy <tree> to follow as first child of <cell>.
             
-             {C-c C-c}     - Copy <tree> to precede <cell>.
-             {C-u C-c C-c} - Copy <tree> as first child of the parent of 
<cell>.
-            
              {C-c ; m}     - Move <tree> to follow as sibling of <cell>.
              {C-u C-c ; m} - Move <tree> to follow as first child of <cell>.
             
@@ -315,8 +321,8 @@
             
             {C-c C-i} sets an attribute of the cell at point.
             {C-u C-c C-i} removes an attribute of the cell at point.
-            {C-0 C-c C-i} sets an attribute of the invisible 0 root cell.
-            {C--1 C-c C-i} removes an attribute of the invisible 0 root cell.
+            {M-0 C-c C-i} sets an attribute of the invisible 0 root cell.
+            {M--1 C-c C-i} removes an attribute of the invisible 0 root cell.
 
       3b20. File Insertion: The elements of another buffer or file may be
             inserted into a koutline as a set of cells by using the {C-x i}
@@ -400,8 +406,8 @@
           3b23c1. a:  Show all cell levels and all lines in cells.
 
           3b23c2. b: Turn on blank lines between cells.  Without this code,
-                  blank lines will be turned off.  You can also use the {C-c
-                  ; b} key binding to toggle line numbers on and off
+                  blank lines will be turned off.  You can also use the
+                  {C-c ]} key binding to toggle line numbers on and off
                   independent of any other view settings.
 
           3b23c3. cN: Hide any lines greater than N in each cell.  0 means
@@ -521,7 +527,7 @@
 
 
 "ben" ;; kvspec:current
-90 ;; id-counter
+93 ;; id-counter
 alpha ;; label-type
 4 ;; label-min-width
 ". " ;; label-separator
@@ -529,7 +535,7 @@ alpha ;; label-type
 
 ;; depth-first kcell attributes
 [[0
-  (creator "[email protected]" create-time "20231105:21:29:07" id-counter 90)]
+  (creator "[email protected]" create-time "20231105:21:29:07" id-counter 93)]
  [2
   (creator "[email protected]" create-time "20231105:21:29:07")]
  [3
@@ -546,6 +552,10 @@ alpha ;; label-type
   (creator "[email protected]" create-time "20231105:21:29:07")]
  [81
   (creator "[email protected]" create-time "20261007:21:15:24")]
+ [92
+  (creator "[email protected]" create-time "20261016:15:05:05")]
+ [93
+  (creator "[email protected]" create-time "20261016:15:05:27")]
  [9
   (creator "[email protected]" create-time "20231105:21:29:07")]
  [10
@@ -558,8 +568,6 @@ alpha ;; label-type
   (creator "[email protected]" create-time "20261007:22:18:48")]
  [73
   (creator "[email protected]" create-time "20260929:05:48:56")]
- [83
-  (creator "[email protected]" create-time "20261007:22:21:39")]
  [71
   (creator "[email protected]" create-time "20260928:21:33:05")]
  [74
@@ -698,4 +706,4 @@ alpha ;; label-type
   (creator "[email protected]" create-time "20231105:21:29:07")]
  [69
   (creator "[email protected]" create-time "20231105:21:29:07")]
- nil nil nil nil nil nil]
+ nil nil nil nil nil nil nil nil]
diff --git a/kotl/kotl-mode.el b/kotl/kotl-mode.el
index 053e4486ea2..2b1250bdc13 100644
--- a/kotl/kotl-mode.el
+++ b/kotl/kotl-mode.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:    6/30/93
-;; Last-Mod:     12-Oct-26 at 14:33:57 by Bob Weiner
+;; Last-Mod:     16-Oct-26 at 12:17:14 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -671,7 +671,7 @@ Do not delete across cell boundaries."
      (save-excursion
        (kotl-mode:beginning-of-line))
      (save-excursion
-       (kotl-mode:to-end-of-line)))
+       (kotl-mode:end-of-line)))
     (delete-horizontal-space)))
 
 (defun kotl-mode:delete-indentation (&optional arg)
@@ -818,7 +818,7 @@ Does not remove any newlines as `just-one-space' does when 
given a negative N."
   (save-excursion
     (save-restriction
       (save-excursion
-       (narrow-to-region (kotl-mode:beginning-of-line) 
(kotl-mode:to-end-of-line)))
+       (narrow-to-region (kotl-mode:beginning-of-line) 
(kotl-mode:end-of-line)))
       (just-one-space n))))
 
 (defun kotl-mode:kill-line (&optional arg)
@@ -842,7 +842,7 @@ Does not remove any newlines as `just-one-space' does when 
given a negative N."
       (cond
        ((and (null arg) (not (kotl-mode:eolp)))
        ;; kill to eol but not newline
-       (kill-region (point) (setq arg (kotl-mode:to-end-of-line))))
+       (kill-region (point) (setq arg (kotl-mode:end-of-line))))
        ((= num-arg 0)
        ;; kill to bol
        (kill-region (point) (setq arg (kotl-mode:beginning-of-line))))
@@ -1099,7 +1099,7 @@ When `kotl-mode:tab-flag' is:
   \\='cycle: cycle views of parts of the outline;
   nil:       demote trees a maximum of ARG levels;
   t:         indent or tab over by ARG tab stops.
-Use {C-c C-]} to toggle its value between `cycle' and nil.
+Use {C-c [} to toggle its value between `cycle' and nil.
 
 See also the documentation strings for `kotl-mode:indent-line',
 `kotl-mode:demote-tree', and `kotl-mode:demote-siblings'.
@@ -1282,6 +1282,7 @@ Does not disable any other active prefix."
   "Toggle the value of `kotl-mode:tab-flag' and explain its current usage.
 This now toggles TAB/S-TAB between the Org-compatible cycling commands and
 the traditional Koutliner demote/promote commands."
+  (interactive)
   (if (eq kotl-mode:tab-flag 'cycle)
       (progn
         (setq kotl-mode:tab-flag
@@ -1290,14 +1291,22 @@ the traditional Koutliner demote/promote commands."
         (when (eq kotl-mode:tab-flag 'cycle)
           (setq kotl-mode:tab-flag nil))
         (when (called-interactively-p 'interactive)
-          (message (substitute-command-keys
-                    (format "Disabled Org-style TAB cycling; use {\\[%s]} to 
demote trees and {\\[%s]} to promote trees"
-                            (if kotl-mode:tab-flag
-                                'kotl-mode:demote-tree
-                              'kotl-mode:tab-command)
-                            (if kotl-mode:tab-flag
-                                'kotl-mode:promote-tree
-                              'kotl-mode:untab-command))))))
+          (if kotl-mode:tab-flag
+              (message (substitute-command-keys
+                        (format "Disabled Org-style TAB cycling; use 
{\\[kotl-mode:demote-tree]} to demote trees and {\\[kotl-mode:promote-tree]} to 
promotes trees")))
+            ;; Don't use `substitute-command-keys' here as it won't display
+            ;; the right bindings for {TAB} and {S-TAB} because of the
+            ;; org-hijacker bindings of these keys for in-table support.
+            (message
+             (format "Disabled Org-style TAB cycling; use {%s} to demote trees 
and {%s} to promote trees"
+                     (key-description
+                      (car (where-is-internal
+                            'kotl-mode:tab-command kotl-mode-map)))
+                     (let ((untab-key (key-description
+                                       (car (where-is-internal
+                                             'kotl-mode:untab-command
+                                             kotl-mode-map)))))
+                       (if (equal untab-key "<backtab>") "S-TAB" 
untab-key)))))))
     (setq kotl-mode:tab-flag 'cycle)
     (when (called-interactively-p 'interactive)
       (message (substitute-command-keys "Enabled Org-style TAB cycling; use 
{\\[kotl-mode:demote-tree]} to demote trees and {\\[kotl-mode:promote-tree]} to 
promotes trees")))))
@@ -1358,7 +1367,7 @@ that contains mark."
       (ignore-errors (kotl-mode:delete-char 1))
       (goto-char mark)
       (set-marker mark nil)
-      (kotl-mode:to-end-of-line)
+      (kotl-mode:end-of-line)
       (insert "\n")
       (insert-char ?\  (kcell-view:indent))
       (insert line-to-move)
@@ -1391,7 +1400,7 @@ When `kotl-mode:tab-flag' is:
   \\='cycle: cycle views of the whole outline;
   nil:       promote trees a maximum of ARG levels;
   t:         delete backward ARG characters.
-Use {C-c C-]} to toggle its value between `cycle' and nil.
+Use {C-c [} to toggle its value between `cycle' and nil.
 
 See also the documentation strings for `kotl-mode:delete-backward-char',
 `kotl-mode:promote-tree', and `kotl-mode:promote-siblings'.
@@ -2075,27 +2084,22 @@ With optional ARG < 0, move to the ARGth previous 
visible cell."
   (kotl-mode:next-cell (if (> arg 0) (1- arg) arg))
   (goto-char (kcell-view:end-contents)))
 
-;;; Avoid XEmacs byte-compiler bug which inserts nil for calls to this
-;;; function if named kotl-mode:end-of-line.
-;;;
-(defun kotl-mode:to-end-of-line (&optional arg)
+(defun kotl-mode:end-of-line (&optional arg)
   "Move point to end of current or ARGth - 1 line and return point."
   (interactive "p")
   (kotl-mode:maintain-region-highlight)
   (unless arg
     (setq arg 1))
   (unless (integer-or-marker-p arg)
-      (error "(kotl-mode:to-end-of-line): Wrong type arg, integer-or-marker, 
`%s'" arg))
+      (error "(kotl-mode:end-of-line): Wrong type arg, integer-or-marker, 
`%s'" arg))
   (kfill:forward-line (1- arg))
   (end-of-visible-line)
   ;; May have to move backwards to before label if support labels
   ;; at end of cells.
   (point))
 
-;;; This ensures that the key bound to `end-of-line' is replaced in kotl-mode.
-(defalias 'kotl-mode:end-of-line 'kotl-mode:to-end-of-line)
-(defalias 'kotl-mode:end-of-visual-line 'kotl-mode:to-end-of-line)
-(defalias 'kotl-mode:move-end-of-line 'kotl-mode:to-end-of-line)
+(defalias 'kotl-mode:end-of-visual-line 'kotl-mode:end-of-line)
+(defalias 'kotl-mode:move-end-of-line 'kotl-mode:end-of-line)
 
 (defun kotl-mode:end-of-tree ()
   "Move point to the start of the last cell in tree rooted at the current 
cell."
@@ -2687,7 +2691,7 @@ With optional NEXT-CHAR-VISIBLE, return t only if the 
following char is visible.
 (defun kotl-mode:last-line-p ()
   "Return t iff point is on the last line of the outline."
   (save-excursion
-    (kotl-mode:to-end-of-line)
+    (kotl-mode:end-of-line)
     (looking-at "\n*\\'")))
 
 (defun kotl-mode:root-first-line-only-shown-p ()
@@ -3403,7 +3407,7 @@ up to one level and `kotl-mode:refill-flag' is treated as 
true."
 
 (defun kotl-mode:remove-cell-attribute (attribute &optional pos top-cell-flag)
   "Remove ATTRIBUTE from the current cell or the cell at optional POS.
-With optional prefix arg TOP-CELL-FLAG non-nil, removethe hidden top cell's
+With optional prefix arg TOP-CELL-FLAG non-nil, remove the hidden top cell's
 ATTRIBUTE and ignore any value of POS."
   (interactive
    (let* ((plist (copy-sequence (kcell-view:plist)))
@@ -3447,10 +3451,10 @@ ATTRIBUTE and ignore any value of POS."
                         (kcell-view:label pos)))))
 
 (defun kotl-mode:set-cell-attribute (attribute value &optional pos 
top-cell-flag)
-  "Include ATTRIBUTE VALUE with the current cell or the cell at optional POS.
+  "Set ATTRIBUTE to VALUE in the current cell or the cell at optional POS.
 Replace any existing value that ATTRIBUTE has.  With optional prefix arg
-TOP-CELL-FLAG non-nil, modify the hidden top cell's ATTRIBUTE and ignore any
-value of POS.
+TOP-CELL-FLAG non-nil, modify the hidden top zero cell's ATTRIBUTE and
+ignore any value of POS.
 
 When called interactively, display the setting in the minibuffer as
 confirmation."
@@ -3505,12 +3509,12 @@ confirmation."
                                 (kcell-view:label pos)))))
 
 (defun kotl-mode:set-or-remove-cell-attribute (arg)
-  "Run kotl-mode:remove-cell-attribute or kotl-mode:set-cell-attribute.
-With numeric prefix ARG, interactively run kotl-mode:remove-cell-attribute;
-otherwise, run kotl-mode:set-cell-attribute.
-Prefix ARG selects the cells whose attributes are removed or set:
-  If =  0, set one of the attributes of the invisible root cell;
-  If <  0, remove one of the attributes of the invisible root cell;
+  "Add, modify or remove an attribute from a cell.
+With numeric prefix ARG, interactively run `kotl-mode:remove-cell-attribute';
+otherwise, run `kotl-mode:set-cell-attribute'.
+A prefix ARG selects the cells whose attributes are removed or set:
+  If =  0, set one of the attributes of the invisible zero root cell;
+  If <  0, remove one of the attributes of the invisible zero root cell;
   If =  1, set one of the attributes of the current cell;
   If >  1, remove one of the attributes of the current cell."
   (interactive "p")
@@ -3530,9 +3534,9 @@ Prefix ARG selects the cells whose attributes are removed 
or set:
   "Split the current cell into two cells and move to the new cell.
 The cell contents after point become part of the newly created cell.
 The default is to create the new cell as a sibling of the current cell.
-With optional universal ARG, {\\`C-u'}, the new cell is added as the child of
-the current cell.  Non-read-only attributes from the current cell are
-replicated in the new cell."
+With optional universal ARG, {\\`C-u'}, the new cell is added as the child
+of the current cell.  Non-read-only attributes from the current cell are
+replicated to the new cell."
   (interactive "*P")
   (kotl-mode:to-valid-position)
   (kcell-view:operate
@@ -3985,11 +3989,13 @@ See also the documentation for `kotl-mode:cell-help'."
 
 (defun kotl-mode:cell-help (&optional cell-ref cells-flag)
   "Display a temporary buffer with CELL-REF's attributes.
-CELL-REF defaults to current cell.
+CELL-REF defaults to the current cell.
 Optional prefix arg CELLS-FLAG selects the cells whose attributes are printed:
-  If =  1, print CELL-REF's cell only;
-  If >  1, print CELL-REF's visible tree (the tree rooted at CELL-REF);
-  If <= 0, print all visible cells in current view (CELL-REF is not used).
+  If =  1, print CELL-REF's attributes only;
+  If >  1, print CELL-REF's visible tree attributes;
+  If <= 0, print all the invisible outline 0 root cell's attributes and
+  those of its visible subtree across the outline (CELL-REF is ignored in
+  this case).
 
 See also the documentation for `kotl-mode:cell-attributes'."
   (interactive
@@ -4162,7 +4168,7 @@ Do not delete newline at end of line."
       (goto-char pos))
     (if (kview:valid-position-p)
        (let ((bol (kotl-mode:beginning-of-line))
-             (eol (kotl-mode:to-end-of-line)))
+             (eol (kotl-mode:end-of-line)))
          (prog1
              (buffer-substring bol eol)
            (delete-region bol eol)))
@@ -4576,7 +4582,7 @@ Leave point at end of line now residing at START."
        ;; kotl-mode keys
         (let ((keymap kotl-mode-letter-map))
           (define-key keymap "a" 'kotl-mode:add-child)
-          (define-key keymap "b" 'kvspec:toggle-blank-lines)
+          (define-key keymap "b" 'kotl-mode:copy-before)
           (define-key keymap "c" 'kotl-mode:copy-after)
           (define-key keymap "d" 'kotl-mode:down-level)
           (define-key keymap "e" 'kotl-mode:exchange-cells)
@@ -4617,24 +4623,27 @@ Leave point at end of line now residing at START."
        ;; Since the next key binds M-BS, it may already have a local binding,
        ;; in which case we don't want to bind it here.
        (unless (lookup-key kotl-mode-map "\M-\C-h")
-         (define-key kotl-mode-map "\M-\C-h"   'kotl-mode:hide-subtree))
+         (define-key kotl-mode-map "\M-\C-h" 'kotl-mode:hide-subtree))
        ;; Override this global binding for set-selective-display with a
         ;; similar function appropriate for kotl-mode.
-       (define-key kotl-mode-map "\C-x$"         'kotl-mode:hide-sublevels)
+       (define-key kotl-mode-map "\C-x$"     'kotl-mode:hide-sublevels)
+
+        ;; Toggle whole outline viewspec for blank lines off/on
+        (define-key kotl-mode-map "\C-c]" 'kvspec:toggle-blank-lines)
 
         ;; Use this next binding to switch TAB/S-TAB between Org-style
         ;; visibility cycling and demotion/promotion behavior.  Show a
         ;; message each time it is toggled.
-       (define-key kotl-mode-map "\C-c\C-]"      'kotl-mode:toggle-tab-flag)
+       (define-key kotl-mode-map "\C-c["     'kotl-mode:toggle-tab-flag)
 
-       (define-key kotl-mode-map [tab]           'kotl-mode:tab-command) ;; TAB
-       (define-key kotl-mode-map "\C-i"          'kotl-mode:tab-command) ;; TAB
+       (define-key kotl-mode-map [tab]       'kotl-mode:tab-command) ;; TAB
+       (define-key kotl-mode-map "\C-i"      'kotl-mode:tab-command) ;; TAB
 
-       (define-key kotl-mode-map [S-tab]         'kotl-mode:untab-command) ;; 
Shift-TAB
+       (define-key kotl-mode-map [S-tab]     'kotl-mode:untab-command) ;; 
Shift-TAB
        (define-key kotl-mode-map [S-iso-lefttab] 'kotl-mode:untab-command) ;; 
Shift-TAB
-       (define-key kotl-mode-map [backtab]       'kotl-mode:untab-command) ;; 
Shift-TAB
+       (define-key kotl-mode-map [backtab]   'kotl-mode:untab-command) ;; 
Shift-TAB
 
-       (define-key kotl-mode-map "\C-c\C-i"      
'kotl-mode:set-or-remove-cell-attribute)
+       (define-key kotl-mode-map "\C-c\C-i"  
'kotl-mode:set-or-remove-cell-attribute)
        (define-key kotl-mode-map "\C-j"      'kotl-mode:add-cell)
        (define-key kotl-mode-map "\M-j"      'kotl-mode:fill-paragraph)
        (define-key kotl-mode-map "\C-c\M-j"  'kotl-mode:fill-cell)
@@ -4675,7 +4684,7 @@ Leave point at end of line now residing at START."
              (list (kbd "M-S-<left>") (kbd "M-<left>") (kbd "ESC S-<left>")
                     (kbd "ESC <left>") (kbd "C-c C-<") (kbd "C-c C-,")))
        (mapc (lambda (key)
-               (define-key kotl-mode-map key         'kotl-mode:demote-tree))
+               (define-key kotl-mode-map key 'kotl-mode:demote-tree))
              (list (kbd "M-S-<right>") (kbd "M-<right>") (kbd "ESC S-<right>")
                     (kbd "ESC <right>") (kbd "C-c C->") (kbd "C-c C-.")))
 
diff --git a/kotl/kview.el b/kotl/kview.el
index f236888f2f7..0e59009318b 100644
--- a/kotl/kview.el
+++ b/kotl/kview.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:    6/30/93
-;; Last-Mod:     11-Oct-26 at 10:38:48 by Bob Weiner
+;; Last-Mod:     16-Oct-26 at 11:57:13 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -50,7 +50,7 @@
 (declare-function kotl-mode:goto-cell "kotl-mode")
 (declare-function kotl-mode:goto-heading "kotl/kotl-mode")
 (declare-function kotl-mode:hide-subtree "kotl-mode")
-(declare-function kotl-mode:to-end-of-line "kotl-mode")
+(declare-function kotl-mode:end-of-line "kotl-mode")
 (declare-function kotl-mode:to-valid-position "kotl-mode")
 (declare-function kotl-mode:to-visible-position "kotl-mode")
 (declare-function kotl-mode:tree-end "kotl-mode")
@@ -461,7 +461,7 @@ characters of the cell whose level is desired."
     (when pos
       (goto-char pos))
     (if (kview:valid-position-p)
-       (buffer-substring (kotl-mode:beginning-of-line) 
(kotl-mode:to-end-of-line))
+       (buffer-substring (kotl-mode:beginning-of-line) (kotl-mode:end-of-line))
       (error "(kcell-view:line): Invalid position, `%d'" (point)))))
 
 (defun kcell-view:lines-visible ()
diff --git a/man/hyperbole.texi b/man/hyperbole.texi
index fa350c2d9c1..b6d406d94b4 100644
--- a/man/hyperbole.texi
+++ b/man/hyperbole.texi
@@ -7,7 +7,7 @@
 @c Author:       Bob Weiner
 @c
 @c Orig-Date:     6-Nov-91 at 11:18:03
-@c Last-Mod:     14-Oct-26 at 13:38:52 by Bob Weiner
+@c Last-Mod:     16-Oct-26 at 12:32:51 by Bob Weiner
 
 @c %**start of header (This is for running Texinfo on a region.)
 @setfilename hyperbole.info
@@ -30,7 +30,7 @@
 @set txicodequoteundirected
 @set txicodequotebacktick
 
-@set UPDATED October 14, 2026
+@set UPDATED October 16, 2026
 @set UPDATED-MONTH October 2026
 @set EDITION 9.3.0
 @set VERSION 9.3.0
@@ -171,7 +171,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</P>
 
 <PRE>
 Edition 9.1.0
-Printed October 14, 2026.
+Printed October 16, 2026.
 
   Published by the Free Software Foundation, Inc.
   Author:    Bob Weiner
@@ -213,7 +213,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 @example
 Edition 9.1.0
-October 14, 2026 @c AUTO-REPLACE-ON-SAVE
+October 16, 2026 @c AUTO-REPLACE-ON-SAVE
 
 
   Published by the Free Software Foundation, Inc.
@@ -6201,12 +6201,12 @@ shown in the table below.
 
|--------------------+-------------------------------+--------------------------|
 @end smallexample
 
-@kindex koutliner, C-c C-]
+@kindex koutliner, C-c [
 @cindex koutliner, toggle tab behavior
 Org-style cycling is now the default.  In Hyperbole versions earlier
 than 9.3.0, the default was @samp{nil} for demotion and promotion.  You
 can toggle between using these keys for cycling or demotion/promotion
-by pressing @bkbd{C-c C-]}.  Or you can change the default by setting
+by pressing @bkbd{C-c [}.  Or you can change the default by setting
 @code{kotl-mode:tab-flag} in your Hyperbole @code{use-package}
 configuration.  See the following subsections for further details.
 
@@ -6221,7 +6221,7 @@ configuration.  See the following subsections for further 
details.
 
 @cindex koutliner, cycling
 @cindex koutliner, Org-style cycling
-@bkbd{C-c C-]} toggles the function of @key{TAB} and @bkbd{S-@key{TAB}}
+@bkbd{C-c [} toggles the function of @key{TAB} and @bkbd{S-@key{TAB}}
 between promotion/demotion and Org-style tree visibility cycling.  The
 following table summarizes their behavior with Org-style view cycling
 enabled:
@@ -6322,9 +6322,9 @@ tree and @bkbd{C-c C-,} for promoting it.  Org-compatible 
keys
 
 @kindex koutliner, @key{TAB}
 @kindex koutliner, Shift-@key{TAB}
-@kindex koutliner, C-c C-]
+@kindex koutliner, C-c [
 @cindex koutliner, no-fill property
-Use @bkbd{C-c C-]} to toggle the function of @key{TAB} and
+Use @bkbd{C-c [} to toggle the function of @key{TAB} and
 @bkbd{S-@key{TAB}} to demote and promote trees.  These also refill the
 text of each cell not marked with a @code{no-fill} property.  To
 override the @code{no-fill} property and refill all promoted/demoted
@@ -6486,16 +6486,16 @@ Move current tree past prefix arg same level trees.
 @kitem M-<up>
 Move current tree back prefix arg same level trees.
 
+@kitem C-c ; b
+Copy <tree> to be the predecessor of <cell>.
+@kitem C-u C-c ; b
+Copy <tree> to be the first child of the parent of <cell>.
+
 @kitem C-c ; c
 Copy <tree> to be the successor of <cell>.
 @kitem C-u C-c ; c
 Copy <tree> to follow as the first child of <cell>.
 
-@kitem C-c C-c
-Copy <tree> to be the predecessor of <cell>.
-@kitem C-u C-c C-c
-Copy <tree> to be the first child of the parent of <cell>.
-
 @kitem C-c ; m
 Move <tree> to be the successor of <cell>.
 @kitem C-u C-c ; m
@@ -6964,14 +6964,13 @@ view spec is <|ben>.
 @item a
 Show all cell levels and all lines in cells.
 
-@kindex koutliner, C-c ; b
+@kindex koutliner, C-c ]
 @cindex blank lines, toggle
 @cindex view spec, blank lines
-@kindex koutliner, C-c ; b
 @cindex toggling blank lines
 @item b
 Turn on blank lines between cells.  Without this character, blank lines
-will be turned off.  You may also use the @bkbd{C-c ; b} key binding to
+will be turned off.  You may also use the @bkbd{C-c ]} key binding to
 toggle blank lines on and off independently of any other view settings.
 
 @cindex view spec, lines per cell
@@ -7038,7 +7037,7 @@ current outline viewspecs.  This section discusses klinks.
 @noindent
 There are three forms of klinks:
 
-@table @emph
+@table @asis
 @cindex internal klink
 @cindex klink, internal
 @cindex <#klink>
@@ -7167,7 +7166,7 @@ mistakenly recognizes a pattern within a comment as a 
klink when it isn't.
 outline cell.  Thus, each cell, including the invisible 0 root cell,
 has its own attribute list.  Every cell has three standard attributes:
 
-@table @emph
+@table @asis
 @cindex idstamp attribute
 @item idstamp
 The permanent id of the cell, typically used in cross-file hyperlinks
@@ -7188,27 +7187,41 @@ allows for easy data comparisons but is displayed in a 
human readable
 format, such as @samp{Jan 28 18:27:59 CST 2021}.
 @end table
 
-@kindex koutliner, C-c C-i
 @cindex attribute, adding
 @cindex attribute, modifying
 @cindex attribute, removing
 @cindex attribute, setting
-@bkbd{C-c C-i} adds, modifies or removes an attribute from a cell.
-The prefix argument given to this command determines what it does.
+@noindent
+The following keys edit and display outline attributes:
 
+@kindex koutliner, Assist Key, listing attributes
+@cindex Assist Key, listing attributes
+@cindex attributes, displaying
+@cindex displaying attributes
+@cindex outline, attribute list
 @table @asis
+
+@kindex koutliner, C-c ; h
+Prompt for a cell label and display the cell's attributes (show help
+for the cell).  @bkbd{C-u C-c ; h} wil prompt for a cell label and
+display the attributes for it and any of its visible subtree.  Use 0
+for the cell label to see attributes for the invisible outline 0 root
+cell and all of its visible subtree (the whole visible outline).
+
+@kindex koutliner, C-c C-i
 @item @bkbd{C-c C-i}
-sets an attribute of the cell at point; setting an attribute's value
-to @samp{nil} is the same as removing it.
+With no prefix arg or a prefix arg of 1, set a current cell attribute.
+Setting an attribute's value to @samp{nil} is the same as removing it.
+See the following items for how the prefix argument affects this command.
 
 @item @bkbd{C-u C-c C-i}
-removes an attribute of the cell at point
+Remove an attribute of the cell at point.
 
-@item @bkbd{C-0 C-c C-i}
-sets an attribute of the invisible 0 root cell
+@item @bkbd{M-0 C-c C-i}
+Set an attribute of the invisible 0 root cell.
 
-@item @bkbd{C--1 C-c C-i}
-removes an attribute of the invisible 0 root cell
+@item @bkbd{M--1 C-c C-i}
+Remove an attribute of the invisible 0 root cell.
 @end table
 
 
@@ -7222,17 +7235,6 @@ commands from refilling the cell, even if the variable,
 you from invoking explicit commands that refill the cell.
 @xref{Filling}.
 
-@kindex koutliner, Assist Key, listing attributes
-@cindex Assist Key, listing attributes
-@cindex attributes, displaying
-@cindex displaying attributes
-@cindex outline, attribute list
-@kindex koutliner, C-c ; h
-@bkbd{C-c ; h} prompts for a cell label and displays the cell's
-attributes.  @bkbd{C-u C-c ; h} prompts for a cell label and displays
-the attributes for it and its subtree; use 0 as the kcell id to see
-attributes for all visible cells in the outline.
-
 @node Koutliner History,  , Cell Attributes, Koutliner
 @section   Koutliner History
 
@@ -10320,7 +10322,7 @@ outlines.  An outliner command which overloads an emacs 
command named
 @table @code
 
 @findex kotl-mode:toggle-tab-flag
-@item kotl-mode:toggle-tab-flag @bkbd{C-c C-]}
+@item kotl-mode:toggle-tab-flag @bkbd{C-c [}
 Toggle the value of @code{kotl-mode:tab-flag} and explain its current
 usage.  This toggles TAB/S-TAB between the Org-compatible cycling
 commands and the traditional Koutliner demote/promote commands."
@@ -10446,7 +10448,7 @@ TO-CELL-REF, otherwise make it the sibling following 
TO-CELL-REF.
 Leave point at the start of the root cell of the new tree.
 
 @findex kotl-mode:copy-before
-@item kotl-mode:copy-before  @bkbd{C-c C-c}
+@item kotl-mode:copy-before  @bkbd{C-c ; b}
 Copy tree rooted at FROM-CELL-REF to precede tree rooted at TO-CELL-REF.
 If prefix arg PARENT-P is non-nil, make FROM-CELL-REF the first child of
 TO-CELL-REF's parent, otherwise make it the preceding sibling of TO-CELL-REF.
@@ -10900,7 +10902,7 @@ current koutline.  VIEW-SPEC must be a string.  See
 on valid view specs.
 
 @findex kvspec:toggle-blank-lines
-@item kvspec:toggle-blank-lines @bkbd{C-c ; b}
+@item kvspec:toggle-blank-lines @bkbd{C-c ]}
 Toggle blank lines between cells on or off.
 
 @end table
@@ -11391,8 +11393,8 @@ When in an Org mode context and 
@code{hsys-org-enable-smart-keys} is non-nil:
          standard binding of @bkbd{C-c C-c}, @code{org-ctrl-c-ctrl-c}.
 
      (10) With point on an Org mode heading but not a Hyperbole button, call
-         the function given by the @code{smart-org-action-key-heading-function}
-         variable, which defaults to doing nothing.
+          the function given by the 
@code{smart-org-action-key-heading-function}
+          variable, which defaults to doing nothing.
 
      (11) In any other context besides the end of a line, invoke the Org mode
           standard binding of @bkbd{M-@key{RET}}, @code{org-meta-return}.

Reply via email to