Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 114 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
2026-07-20 Bob Weiner <rsw@gnu.org>

* test/hy-test-dependencies.el: Enable 'hyperbole-mode' for all
tests run via the Makefile.

* hywiki.el (hywiki-add-glossary-entry): Fix to add term to the
HyWikiWord lookup tables.
(hywiki-string-to-wikiword): Fix to upcase only the
first char of each word and not change other chars case.

* test/demo-tests.el (fast-demo-key-series-emacs-lisp-mode): Ignore
test if {C-c @} key is not bound by Hyperbole, due to some
prior binding.

* hywiki.el (hywiki-add-referent): Fix #section removal so it does
not depend on string match groupings from `hywiki-word-is-p'
which no longer exist.
(hywiki-get-definition): Fix so does not trigger an error
but just returns nil when the Glossary file does not exist or is
unreadable. Otherwise, HyWikiWord help displays will break.

2026-07-19 Bob Weiner <rsw@gnu.org>

* hywiki.el (hywiki-completing-read-glossary-term,
hywiki-get-glossary-terms): Add for 'completing-read' of
hywiki glossary terms.
(hywiki-get-definition): Add use of above completing read
function. When called interactively or with `display-flag',
display the definition in a help buffer.
man/hyperbole.texi (HyWiki Menu): Add initial documention for glossary
HyWikiWords.

* hypb.el (hypb:empty-file-p): Extend to allow for an optional 'file' arg.

* hmouse-drv.el (hkey-help): For a WikiWord with a glossary file entry,
include the definition entry in the help for the WikiWord.
hywiki.el (hywiki-get-definition): Add to return a HyWiki glossary
definition.
(hywiki-get-glossary-file, hywiki-add-glossary-entry,
hywiki-display-glossary-entry): Add.
(hywiki-referent-menu): Add glossarY referent type menu item.

* hui-menu.el (hui-menu-hywiki):
hui-mini.el (hui:menu-hywiki): Add 'HyWiki/Yank' menu item.

2026-07-19 Mats Lidell <matsl@gnu.org>

* test/hy-test-dependencies.el (hypb:package-install-advice-for-retry):
Expand Down Expand Up @@ -41,6 +86,33 @@
hypb:package-el-install or hypb:notify-manual-install-needed.
(hypb:require-package): Use hypb:ensure-dependency.

2026-07-18 Bob Weiner <rsw@gnu.org>

* hywiki.el (hywiki-get-entry, hywiki-read-headline-regexp, hywiki-yank,
hywiki-yank-reformat-function): Add to support getting first
matching HyWiki entry as a string and yanking/inserting it into a buffer.

* hyrolo.el (hyrolo-yank, hyrolo-get-entry): Add to return first matching entry
as a string.
(hyrolo-yank): Rewrite to use 'hyrolo-get-entry'.

* hsys-consult.el (hsys-consult--grep-paths): Remove requirement of whitespace
after the * or # character so works better with orderless. Add a backslash
space if want to match to a literal space and eliminate matches to Org
property lines like "#+TODO:".
(hsys-consult-entry-regexp): Add so can adjust this regexp
for different limits on entry formats.

2026-07-17 Bob Weiner <rsw@gnu.org>

* hsys-consult.el (hsys-consult-grep-headlines-with-prompt,
hsys-consult-grep-headlines-read-regexp): Add 4th optional arg,
path-list, provided to the grep-function called. Allows these to be used
in HyWiki grep calls.

* hywiki.el (hywiki-word-is-p): Make non-nil return value be the string index
at the end of tthe word.

2026-07-16 Mats Lidell <matsl@gnu.org>

* Makefile (docker-clean): Fix remove command for docker volumes.
Expand Down Expand Up @@ -122,6 +194,11 @@
* hyperbole.el (require 'kotl-autoloads): Move to before (require 'hinit)
to eliminate klink macro not being defined when needed.

* hyperbole.el (hyperb:init): Remove auto-enabling of 'hywiki-mode' as this
also enables 'hyperbole-mode' immediately after Hyperbole is installed.
The user needs to choose to enable Hyperbole either interactively or
through his configuration.

* hsys-org.el (hsys-org-link-at-p): Fix code at the end to remove hy: prefix
from 'label'.

Expand Down Expand Up @@ -260,6 +337,15 @@

* hywiki.el (hywiki--extend-region): Fix so start is always <= end.

2026-07-05 Bob Weiner <rsw@gnu.org>

* hywiki.el (hywiki-word-at): Don't allow : or ; at the end of a #section.

* hbut.el (hbut:label-delimiters-regexp): Add and use in
'hywiki-maybe-highlight-references'.

* hywiki.el (hywiki-get-buttonize-characters): Allow : as a trailing
separator character (previously had been filtered out).
(hywiki-get-existing-page-file): Handle 't' value as 'file-stem-name'
from a HyWikiWord spec.
hpath.el (hpath:expand): Ensure path value is a string before trying to expand
Expand All @@ -272,6 +358,33 @@
(hycontrol--frames-prompt-format, hycontrol--windows-prompt-format):
Reformat for easier readability.

2026-07-02 Bob Weiner <rsw@gnu.org>

(hywiki--get-delimited-range-backward): Fix to 'hbut:syntax-table'
during backward 'scan-sexps' so open/close angle brackets match to
account for use in hbut labels. Otherwise, when point is after a closing
angle bracket, the region returned is a single char, not the span of the
brackets.

* hywiki.el (hywiki-scan-sexps): Add and use in place of 'scan-sexps' in
hywiki code.
(hywiki-get-delimited-region,
hywiki-maybe-highlight-balanced-pairs): Use 'hbut:syntax-table'.
hui-select.el (hui-select-get-syntax-table): Use 'hui-select-syntax-table'
in most programming modes when within a comment to support angle brackets
as sexpression delimiters.

2026-07-01 Bob Weiner <rsw@gnu.org>

* hywiki.el (hywiki--get-delimited-range-at-closing-delimiter): Add to
separate out this code from a quoted sexp in 'hywiki-get-delimited-region'
and simplify debugging.
(hywiki--get-delimited-range-backward): Fix wrong location of
'save-excursion' call so that point was moved one char forward before
backward 'scan-sexps' was called. This led to HyWiki words not be
dehighlighted when deleted the last WikiWord character within a set
of delimiters where it was the last word.

2026-06-30 Mats Lidell <matsl@gnu.org>

* test/hywiki-tests.el (hywiki-display-hywiki-test): Add helper
Expand Down Expand Up @@ -3166,7 +3279,7 @@
so 'consult' package does not interfere with testing.
hsys-consult.el (hsys-consult-active-p): Add and autoload this so can turn
on and off use of consult (and vertico) within Hyperbole, e.g. when running
ert tests where consults interactivity interferes with batch testing.
ert tests where consult's interactivity interferes with batch testing.

* hbut.el (ibut:set-name-and-label-key-p): Move recognition of action button
angle brackets ahead of string matches so that in a Lisp buffer, the action
Expand Down
20 changes: 18 additions & 2 deletions hmouse-drv.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 04-Feb-90
;; Last-Mod: 29-Jun-26 at 22:30:19 by Mats Lidell
;; Last-Mod: 20-Jul-26 at 01:47:30 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
Expand Down Expand Up @@ -1111,7 +1111,11 @@ documentation is found."
(hrule:action #'actype:identity)
(assist-flag assisting)
(pred-point (point-marker))
hkey-form pred pred-value call calls cmd-sym doc)
(saved-but nil)
hkey-form pred pred-value call calls cmd-sym def doc)
;; Next line suppresses warning since var is referenced only as a quoted
;; symbol
(ignore saved-but)
(unwind-protect
(while (and (null pred-value) (setq hkey-form (car hkey-forms)))
(or (setq pred (car hkey-form)
Expand Down Expand Up @@ -1214,6 +1218,18 @@ documentation is found."
;; (hypb:remove-from-plist attributes 'actype)
;; (hypb:remove-from-plist attributes 'action))
(hattr:report attributes)

;; Need to save and restore 'hbut:current here since
;; hywiki-get-definition overwrites it
(unwind-protect
(progn (hattr:copy 'hbut:current 'saved-but)
(setq def (hywiki-get-definition
(ibut:key-to-label (hattr:get 'hbut:current 'lbl-key))))
(when def
(terpri)
(princ def)))
(hattr:copy 'saved-but 'hbut:current))

(unless (or assisting
(eq categ 'explicit)
(null categ)
Expand Down
Loading