-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hywiki.el - Many fixes and updates plus Smart Key fixes
Fix HyWikiWord tests with updates to support varying referent types. Remove a number of byte-compiler warnings. hbut.el (ibut:set-name-and-label-key-p): Add set of ibut 'loc attribute needed by a number of tests. hmouse-tag.el (smart-tags-file-list, smart-ancestor-tag-files): Fix to handle a list of directories as the first argument in which to look for TAGS files, as used by 'smart-man-c-routine-ref' in "hui-mouse.el". hui-mouse.el (smart-man-c-routine-ref): Update to support use of newer 'Man-header-file-path' variable. hywiki.el (hywiki-clear-pages-hasht): Add and use in defcustom :set method of `hywiki-directory' to ensure hash table is emptied including all non-page referents when 'hywiki-directory' is changed. hibtypes.el (action): Add :name arg to 'ibut:create' call. hywiki.el (hywiki-display-page): Set 'referent' attribute for current button. hsys-org.el (hsys-org-link-at-p): Change to ignore [[hy:MyWikiWord]] links. hywiki.el (hywiki-word-at): Change to handle [[hy:MyWikiWord]] links. (hywiki-strip-org-link): Also strip hy: prefix from a link. hywiki.el (hywiki-get-plural-wikiword): Return non-nil iff 'hywiki-allow-plurals-flag' is set. (hywiki-allow-plurals-flag): Reset 'hywiki--any-page-regexp-list' whenever this variable is set.
- Loading branch information
Showing
15 changed files
with
460 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,79 @@ | ||
2024-12-15 Bob Weiner <[email protected]> | ||
|
||
* test/hywiki-tests.el (hywiki-tests--action-key-on-wikiword-displays-page): | ||
Change mocklet call from 'hywiki-add-page' to newer | ||
'hywiki-display-referent' to fix the test. | ||
|
||
* test/hywiki-tests.el (hywiki-tests--active-in-current-buffer-p): Force | ||
'hywiki-mode' nil when testing that hywiki is not active. | ||
|
||
* hpath.el (hpath:shorten): Fix to normalize directory paths to end with | ||
a dir separator char so compare properly to `default-directory'. | ||
|
||
* hbut.el (ebut:get): Remove unneeded local 'actype'. | ||
|
||
* test/hywiki-tests.el (hywiki-tests--assist-key-on-wikiword-displays-help): | ||
Update to not use mocklet and to check WikiWord returned. | ||
|
||
* hywiki.el (hywiki-word, hywiki-word-at): Rewrite to get the proper | ||
start and end buffer positions of any wikiword string, accounting for | ||
Org link complexities much better than before. | ||
|
||
* hbut.el (hbut:source): Update doc to reflect that the caller must have | ||
successfully searched for 'hbut:source-prefix' prior to calling this. | ||
(ibut:set-name-and-label-key-p): Add set of ibut 'loc attribute | ||
needed by a number of tests. | ||
|
||
* hmouse-tag.el (smart-tags-file-list, smart-ancestor-tag-files): Fix to | ||
handle a list of directories as the first argument in which to look | ||
for TAGS files, as used by 'smart-man-c-routine-ref' in "hui-mouse.el". | ||
hui-mouse.el (smart-man-c-routine-ref): Update to support use of newer | ||
'Man-header-file-path' variable. | ||
|
||
2024-12-02 Bob Weiner <[email protected]> | ||
|
||
* hywiki.el (hywiki-clear-pages-hasht): Add and use in defcustom :set | ||
method of `hywiki-directory' to ensure hash table is emptied including | ||
all non-page referents when 'hywiki-directory' is changed. | ||
|
||
2024-12-01 Bob Weiner <[email protected]> | ||
|
||
* hmouse-drv.el (action-key-depress, assist-key-depress, hkey-help): Add | ||
calls to (hattr:clear 'hbut:current) to clear 'hbut:current' button | ||
attributes before depress, | ||
|
||
* hbut.el (ibut:create): Move setting of 'hbut:current HyWiki 'referent | ||
attribute from 'hkey-help' to this function, so works with all | ||
ibutton reports. Also, remove 'name-and-lbl-key-flag' from check | ||
of whether to set attributes to the current button values. Also, | ||
move call of 'hbut:report' when called interactively to here from | ||
'ibut:set-name-and-label-key-p' so works with all ibutton reports. | ||
(ibut:set-name-and-label-key-p): Fix to return non-nil only when | ||
'lbl-key' or 'name' are set. | ||
(ebut:get): Remove Hyperbole V1 setting of 'referent' attribute | ||
from (hbdata:referent) so as not to confuse new use of same attribute | ||
for HyWiki referents. | ||
hibtypes.el (action): Add :name arg to 'ibut:create' call. | ||
|
||
* hywiki.el (hywiki-display-page): Set 'referent' attribute for | ||
current button. | ||
|
||
* hsys-org.el (hsys-org-link-at-p): Change to ignore [[hy:MyWikiWord]] | ||
links. | ||
hywiki.el (hywiki-word-at): Change to handle [[hy:MyWikiWord]] links. | ||
(hywiki-strip-org-link): Also strip hy: prefix from a link. | ||
|
||
* hywiki.el (hywiki-get-plural-wikiword): Return non-nil iff | ||
'hywiki-allow-plurals-flag' is set. | ||
(hywiki-get-page-hasht): Remove any nil return values from | ||
calling 'hywiki-allow-plurals-flag'. | ||
(hywiki-allow-plurals-flag): Reset 'hywiki--any-page-regexp-list' | ||
whenever this variable is set. | ||
|
||
* test/hywiki-tests.el (hywiki-tests--action-key-on-wikiword-displays-page, | ||
hywiki-tests--assist-key-on-wikiword-displays-help): | ||
Update to test Action and Assist Key behavior. | ||
|
||
* hywiki.el: Add additional require, defvar and declare-function to | ||
remove byte-compiler warnings. | ||
|
||
|
@@ -68,7 +142,6 @@ | |
|
||
* hibtypes.el (hywiki-word:help): Add so Assist Key on a HyWikiWord | ||
customizes its referent type and link. | ||
hywiki.el its referent type and link. | ||
|
||
2024-11-24 Mats Lidell <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.