Skip to content

Commit 916de4e

Browse files
authored
Merge pull request #893 from rswgnu/rsw
hsys-org.el (org-version) - Fix to test if version< "9.6" not "6"
2 parents d7637cd + 37f9823 commit 916de4e

13 files changed

Lines changed: 124 additions & 49 deletions

ChangeLog

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
1+
2026-03-08 Bob Weiner <rsw@gnu.org>
2+
3+
* hsys-org.el (org-version): Fix to test if version< "9.6" not "6".
4+
hywiki.el (hywiki-maybe-highlight-region): Add for rehighlighting in a region
5+
after edits are made to a buffer.
6+
(hywiki-word-add-completion-at-point): Make 'indent-for-tab-command'
7+
by default bound to {TAB} complete HyWiki references by setting
8+
'tab-always-complete' to 'complete.
9+
(hywiki-word-remove-completion-at-point): Restore user's customized
10+
setting of 'tab-always-complete'.
11+
112
2026-03-07 Bob Weiner <rsw@gnu.org>
213

14+
* man/hyperbole.texi (HyWikiWords): Fix key binding for Org None option for
15+
the Action Key.
16+
17+
* hsys-org-roam.el (require 'package):
18+
hyrolo.el (require 'package):
19+
hui-treemacs.el (require 'package):
20+
hsys-org.el (require 'package): Ensure this is always the first require
21+
to avoid the need to add a (package-activate) call.
22+
323
* hywiki.el (hywiki-mode-disable): Move global hook disables to this new
424
function from 'hywiki-word-dehighlight-buffers'. Call only when
525
'hywiki-mode' is set to nil. This fixes an issue where new HyWiki pages

README.md.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<ul>
1515
<li><a href="#reference-manual">Reference Manual</a></li>
1616
<li><a href="#videos">Videos</a></li>
17+
<li><a href="#articles">Articles</a></li>
1718
<li><a href="#summary">Summary</a></li>
1819
<li><a href="#installation">Installation</a></li>
1920
<li><a href="#invocation">Invocation</a></li>
@@ -77,6 +78,42 @@ <h2 id="videos">Videos</h2>
7778
<li><p><a href="https://youtu.be/TQ_fG7b1iHI">Linking personal info with
7879
implicit buttons</a></p></li>
7980
</ul>
81+
<h2 id="articles">Articles</h2>
82+
<ul>
83+
<li><p><a href="https://kirankp.com/blog/gnu-hyperbole/">HyWiki: My
84+
Favorite Part of Hyperbole</a></p></li>
85+
<li><p><a
86+
href="https://github.com/termitereform/JunkPile/blob/master/HyperboleNotes.org">Hyperbole
87+
VisionQuest Part 1</a></p></li>
88+
<li><p><a
89+
href="https://github.com/termitereform/JunkPile/blob/master/HyperboleNotes2.org">Hyperbole
90+
VisionQuest Part 2</a></p></li>
91+
<li><p><a
92+
href="https://www.reddit.com/r/emacs/comments/1kty4mb/a_taste_of_hyperbole_automatically_linking_to_org/">A
93+
Taste of Hyperbole</a></p></li>
94+
<li><p><a
95+
href="https://www.reddit.com/r/emacs/comments/nirwpk/my_understanding_of_gnu_hyperbole/">My
96+
Understanding of GNU Hyperbole</a></p></li>
97+
<li><p><a
98+
href="https://tilde.town/~ramin_hal9001/articles/intro-to-hyperbole.html">What
99+
does GNU Hyperbole do?</a></p></li>
100+
<li><p><a
101+
href="https://mail.gnu.org/archive/html/hyperbole-users/2019-01/msg00037.html">John
102+
Wiegley - The Philosophy Behind Hyperbole</a></p></li>
103+
<li><p><a
104+
href="https://www.reddit.com/r/emacs/comments/jk3cn0/daily_ways_gnu_hyperbole_helps_me_stay_in_flow/">Daily
105+
ways GNU Hyperbole helps me stay in flow and reduces cognitive
106+
load</a></p></li>
107+
<li><p><a
108+
href="https://www.reddit.com/r/emacs/comments/1g2184d/doing_a_research_project_and_using_gnu_hyperboles/">Doing
109+
a Research Project and using GNU Hyperbole's Integrated
110+
Features</a></p></li>
111+
<li><p><a href="https://deepwiki.com/rswgnu/hyperbole">AI-generated
112+
Hyperbole Architectural Documentation</a></p></li>
113+
<li><p><a
114+
href="https://www.mgmarlow.com/words/2023-10-26-hyperbole/">Hypermedia
115+
and Hyperbole</a></p></li>
116+
</ul>
80117
<h2 id="summary">Summary</h2>
81118
<p><code>GNU Hyperbole</code> (pronounced Ga-new Hi-per-bo-lee), or just
82119
<code>Hyperbole</code>, is like Markdown for hypertext. Hyperbole
@@ -234,6 +271,7 @@ <h2 id="invocation">Invocation</h2>
234271
initialization. A long video demonstrating many of HyControl's features
235272
is available at <a
236273
href="https://youtu.be/M3-aMh1ccJk">https://youtu.be/M3-aMh1ccJk</a>.</p>
274+
<h2 id="hyperbole-manual">Hyperbole Manual</h2>
237275
<p>The above are the best interactive ways to learn about Hyperbole.
238276
Hyperbole also includes the Hyperbole Manual, a full reference manual,
239277
not a simple introduction. It is included in the "man/" subdirectory of

hsys-org-roam.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 26-Feb-23 at 11:20:15 by Bob Weiner
6-
;; Last-Mod: 5-Jan-25 at 12:06:23 by Bob Weiner
6+
;; Last-Mod: 7-Mar-26 at 22:38:37 by Bob Weiner
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -26,8 +26,8 @@
2626
;;; Other required Elisp libraries
2727
;;; ************************************************************************
2828

29+
(require 'package) ;; Always keep this first
2930
(require 'hypb)
30-
(require 'package)
3131

3232
;;; ************************************************************************
3333
;;; Public declarations

hsys-org.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 2-Jul-16 at 14:54:14
6-
;; Last-Mod: 7-Mar-26 at 21:31:49 by Bob Weiner
6+
;; Last-Mod: 7-Mar-26 at 22:39:35 by Bob Weiner
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -30,6 +30,7 @@
3030
;;; Other required Elisp libraries
3131
;;; ************************************************************************
3232

33+
(require 'package) ;; Always keep this first
3334
(eval-when-compile (require 'hmouse-drv))
3435
(require 'hargs) ;; for `hargs:delimited-p'
3536
(require 'hproperty) ;; requires 'hbut
@@ -39,7 +40,6 @@
3940
(require 'org-element)
4041
(require 'org-fold nil t)
4142
(require 'org-macs)
42-
(require 'package)
4343
(require 'warnings)
4444
(require 'find-func)
4545
;; Avoid any potential library name conflict by giving the load directory.
@@ -314,7 +314,7 @@ Return t if Org is reloaded, else nil."
314314
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
315315
t)))))
316316

317-
(if (version< org-version "6")
317+
(if (version< org-version "9.6")
318318
;;; For Org less than 9.6; derived from `org-get-heading' in "org.el"
319319
;;;###autoload
320320
(defun hsys-org-format-heading (heading &optional no-tags no-todo no-priority no-comment)

hui-treemacs.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 19-Nov-17
6-
;; Last-Mod: 13-Nov-24 at 13:09:22 by Mats Lidell
6+
;; Last-Mod: 7-Mar-26 at 22:39:17 by Bob Weiner
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -21,7 +21,7 @@
2121
;;; Other required Elisp libraries
2222
;;; ************************************************************************
2323

24-
(require 'package)
24+
(require 'package) ;; Always keep this first
2525
(require 'seq)
2626

2727
(or (require 'treemacs nil t)
@@ -156,4 +156,3 @@ Suitable for use as a value of `action-key-modeline-buffer-id-function'."
156156

157157
(provide 'hui-treemacs)
158158
;;; hui-treemacs.el ends here
159-

hyrolo.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 7-Jun-89 at 22:08:29
6-
;; Last-Mod: 28-Feb-26 at 23:10:24 by Bob Weiner
6+
;; Last-Mod: 7-Mar-26 at 22:38:55 by Bob Weiner
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -32,6 +32,7 @@
3232
;;; Other required Elisp libraries
3333
;;; ************************************************************************
3434

35+
(require 'package) ;; Always keep this first
3536
(require 'hversion)
3637
(require 'hmail)
3738
(require 'hsys-consult)
@@ -40,7 +41,6 @@
4041
(eval-when-compile
4142
`(hyrolo-install-markdown-mode))
4243
(require 'outline)
43-
(require 'package)
4444
(require 'reveal)
4545
;; Avoid any potential library name conflict by giving the load directory.
4646
(require 'set (expand-file-name "set" hyperb:dir))

hywiki.el

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Author: Bob Weiner
44
;;
55
;; Orig-Date: 21-Apr-24 at 22:41:13
6-
;; Last-Mod: 7-Mar-26 at 22:10:28 by Bob Weiner
6+
;; Last-Mod: 8-Mar-26 at 20:19:37 by Bob Weiner
77
;;
88
;; SPDX-License-Identifier: GPL-3.0-or-later
99
;;
@@ -2546,6 +2546,18 @@ the current page unless they have sections attached."
25462546
(and (/= (point) (point-max))
25472547
(/= (if (char-after) (char-syntax (char-after)) 0) ? ))))
25482548

2549+
(defun hywiki-maybe-highlight-org-element-backward ()
2550+
"Highlight HyWikiWords with point at a single closing square/angle bracket.
2551+
Dehighlight HyWikiWords when on a double closing square/angle bracket,
2552+
since Org mode highlights those."
2553+
(hywiki--maybe-de/highlight-org-element-backward #'hywiki-maybe-highlight-sexp))
2554+
2555+
(defun hywiki-maybe-highlight-org-element-forward ()
2556+
"Highlight HyWikiWords with point at a single opening square/angle bracket.
2557+
Dehighlight HyWikiWords when on a double opening square/angle bracket,
2558+
since Org mode highlights those."
2559+
(hywiki--maybe-de/highlight-org-element-forward #'hywiki-maybe-highlight-sexp))
2560+
25492561
;;;###autoload
25502562
(defun hywiki-maybe-highlight-reference (&optional on-reference)
25512563
"Highlight any non-Org link HyWikiWord#section at or one char before point.
@@ -2647,18 +2659,6 @@ the current page unless they have sections attached."
26472659
hywiki--but-end (hproperty:but-end hywiki--buts))
26482660
(hproperty:but-delete hywiki--buts)))))))))
26492661

2650-
(defun hywiki-maybe-highlight-org-element-backward ()
2651-
"Highlight HyWikiWords with point at a single closing square/angle bracket.
2652-
Dehighlight HyWikiWords when on a double closing square/angle bracket,
2653-
since Org mode highlights those."
2654-
(hywiki--maybe-de/highlight-org-element-backward #'hywiki-maybe-highlight-sexp))
2655-
2656-
(defun hywiki-maybe-highlight-org-element-forward ()
2657-
"Highlight HyWikiWords with point at a single opening square/angle bracket.
2658-
Dehighlight HyWikiWords when on a double opening square/angle bracket,
2659-
since Org mode highlights those."
2660-
(hywiki--maybe-de/highlight-org-element-forward #'hywiki-maybe-highlight-sexp))
2661-
26622662
(defun hywiki-maybe-highlight-references (&optional region-start region-end skip-lookups-update-flag)
26632663
"Highlight each non-Org link HyWiki page#section in the current buffer/region.
26642664
With optional REGION-START and REGION-END positions or markers (active
@@ -2797,6 +2797,14 @@ whenever `hywiki-mode' is enabled/disabled."
27972797
(hywiki-maybe-directory-updated))
27982798
nil)
27992799

2800+
(defun hywiki-maybe-highlight-region (start end)
2801+
"Rehighlight HyWikiWord references between positions START to END."
2802+
(hywiki-maybe-highlight-references start end t)
2803+
(unless (hyperb:stack-frame '(hywiki-maybe-highlight-wikiwords-in-frame))
2804+
;; Rebuild lookup tables if any HyWiki page name has changed
2805+
(hywiki-get-referent-hasht)
2806+
(hywiki-maybe-directory-updated)))
2807+
28002808
(defun hywiki-maybe-highlight-sexp (direction-number)
28012809
"Highlight any HyWikiWord within single square/angle bracket.
28022810
DIRECTION-NUMBER is 1 for forward scanning and -1 for backward scanning."
@@ -4028,6 +4036,9 @@ Completion requires typing at least the two first characters of the
40284036
completion or no completion candidates are returned.
40294037
If using `company-mode', you must use the `company-capf' backend for HyWiki
40304038
completion to work properly."
4039+
;; Make `indent-for-tab-command' by default bound to {TAB} complete HyWiki
4040+
;; references.
4041+
(setq tab-always-indent 'complete)
40314042
(add-hook 'completion-at-point-functions #'hywiki-completion-at-point -90 t)
40324043
(cond ((bound-and-true-p corfu-mode)) ;; Uses :exit-function in hywiki-c-a-p
40334044
((bound-and-true-p company-mode)
@@ -4048,8 +4059,9 @@ completion to work properly."
40484059
(remove-hook 'company-completion-finished-hook #'hywiki-completion-exit-function)
40494060
(remove-hook 'company-completion-cancelled-hook #'hywiki-completion-exit-function)
40504061
(advice-remove 'completion--insert #'hywiki-completion-exit-function)
4051-
;; Restore user's customized setting of this option.
4052-
(custom-reevaluate-setting 'completion-cycle-threshold))
4062+
;; Restore user's customized setting of these options.
4063+
(custom-reevaluate-setting 'completion-cycle-threshold)
4064+
(custom-reevaluate-setting 'tab-always-indent))
40534065

40544066
(defun hywiki-word-highlight-buffers (buffers)
40554067
"Setup HyWikiWord auto-highlighting and highlight in BUFFERS."

man/hyperbole.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
66
<!-- This manual is for GNU Hyperbole
7-
(Edition 9.0.2pre, Published February 7, 2026).
7+
(Edition 9.0.2pre, Published March 7, 2026).
88

99
Copyright © 1989-2026 Free Software Foundation, Inc.
1010

@@ -386,7 +386,7 @@ <h1 class="top" id="GNU-Hyperbole"><span>GNU Hyperbole<a class="copiable-link" h
386386

387387
<PRE>
388388
Edition 9.0.2pre
389-
Printed February 7, 2026.
389+
Printed March 7, 2026.
390390

391391
Published by the Free Software Foundation, Inc.
392392
Author: Bob Weiner
@@ -4366,6 +4366,7 @@ <h4 class="subsubsection" id="Creation-Via-Assist-Key-Drags"><span>4.7.1.3 Creat
43664366
<div class="example">
43674367
<pre class="example-preformatted">Referent Context Link Type
43684368
----------------------------------------------------
4369+
HyWikiWord Reference link-to-wikiword
43694370
Org Roam or Org Id link-to-org-id
43704371
Global Button link-to-gbut
43714372
Explicit Button link-to-ebut
@@ -5065,13 +5066,13 @@ <h3 class="section" id="HyWikiWords-1"><span>6.1 HyWikiWords<a class="copiable-l
50655066
<a class="index-entry-id" id="index-activate-HyWiki-link"></a>
50665067
<a class="index-entry-id" id="index-link_002c-HyWikiWord"></a>
50675068
<a class="index-entry-id" id="index-C_002dh-h-h-a"></a>
5068-
<a class="index-entry-id" id="index-C_002dh-h-h-o-i"></a>
5069+
<a class="index-entry-id" id="index-C_002dh-h-h-o-n"></a>
50695070
<a class="index-entry-id" id="index-menu-item_002c-HyWiki_002fOrg_002dM_002dRET_002fNone"></a>
50705071
<p>To jump to a HyWiki page, simply move point onto any highlighted
50715072
HyWikiWord and press the Action Key <kbd class="kbd">{M-<kbd class="key">RET</kbd>}</kbd>. This also
50725073
highlights any other instances of HyWikiWords across all visible Emacs
50735074
windows. If you have set the Org <kbd class="kbd">{M-<kbd class="key">RET</kbd>}</kbd> option to
5074-
&lsquo;<samp class="samp">None</samp>&rsquo; with <kbd class="kbd">{C-h h h o i}</kbd>, then you will have to
5075+
&lsquo;<samp class="samp">None</samp>&rsquo; with <kbd class="kbd">{C-h h h o n}</kbd>, then you will have to
50755076
use the HyWiki Act menu command <kbd class="kbd">{C-h h h a}</kbd> instead to jump to HyWiki
50765077
pages.
50775078
</p>
@@ -14085,7 +14086,7 @@ <h2 class="unnumbered" id="Key-Index-1"><span>Key Index<a class="copiable-link"
1408514086
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-h-m"><code>C-h h h m</code></a></td><td class="printindex-index-section"><a href="#HyWikiWords">HyWikiWords</a></td></tr>
1408614087
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-h-o"><code>C-h h h o</code></a></td><td class="printindex-index-section"><a href="#HyWiki-Menu">HyWiki Menu</a></td></tr>
1408714088
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-h-o-a"><code>C-h h h o a</code></a></td><td class="printindex-index-section"><a href="#HyWikiWords">HyWikiWords</a></td></tr>
14088-
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-h-o-i"><code>C-h h h o i</code></a></td><td class="printindex-index-section"><a href="#HyWikiWords">HyWikiWords</a></td></tr>
14089+
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-h-o-n"><code>C-h h h o n</code></a></td><td class="printindex-index-section"><a href="#HyWikiWords">HyWikiWords</a></td></tr>
1408914090
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-h-p"><code>C-h h h p</code></a></td><td class="printindex-index-section"><a href="#HyWiki">HyWiki</a></td></tr>
1409014091
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-h-p-1"><code>C-h h h p</code></a></td><td class="printindex-index-section"><a href="#Publish-HyWiki">Publish HyWiki</a></td></tr>
1409114092
<tr><td></td><td class="printindex-index-entry"><a href="#index-C_002dh-h-i"><code>C-h h i</code></a></td><td class="printindex-index-section"><a href="#Implicit-Buttons">Implicit Buttons</a></td></tr>

man/hyperbole.info

41 Bytes
Binary file not shown.

man/hyperbole.pdf

23 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)