Skip to content

Commit 62f3fd2

Browse files
committed
7.0.7 test release: many changes, new logo; fixed def macros
1 parent 62a9db3 commit 62f3fd2

24 files changed

+203
-113
lines changed

Changes

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
2019-10-01 Bob Weiner <[email protected]>
2+
3+
* hact.el (htype:delete): Removed improper quote in (fboundp 'sym) call.
4+
(htype:symbol): Reverted to prior version which properly creates
5+
previously undefined Elisp symbols, thereby fixing htype:create.
6+
(actype:create): Made symtable:add call part of compile-time macro value.
7+
8+
2019-09-24 Mats Lidell <[email protected]>
9+
10+
* Makefile (ELC_COMPILE): Added missing kprop-em.elc.
11+
12+
2019-09-23 Bob Weiner <[email protected]>
13+
14+
* hui.el (hui:link-directly): Called symtable:actype-p replacing invalid
15+
htype:actype-p call.
16+
17+
* hmouse-drv.el (hkey-buffer-move): Wrapped (require 'windmove) in eval-and-compile
18+
to remove a byte-compiler warning.
19+
20+
2019-09-22 Bob Weiner <[email protected]>
21+
22+
* hact.el (action:path-args-rel): Added file-name-directory call so always
23+
sends a directory as the second argument, preventing off-by-one level
24+
of relative directory generation.
25+
26+
2019-09-19 Bob Weiner <[email protected]>
27+
28+
* hmouse-drv.el (hkey-help): Added display of ibtype, if any.
29+
30+
* hbut.el (ibtype:def-symbol): Added.
31+
32+
* hact.el (actype:def-symbol): Change mislabeled 'sym-name' to 'name'.
33+
34+
2019-09-18 Bob Weiner <[email protected]>
35+
36+
* kotl/kotl-mode.el (kotl-mode:top-cells): Removed (kvspec:activate)
37+
which was using the unchanged viewspec that improperly set the view.
38+
39+
* hibtypes.el (action): Updated to handle boolean function results.
40+
hactypes.el (display-boolean): Added to display the result of Action ibtypes
41+
boolean function calls.
42+
man/hyperbole.texi (Action Buttons): Added paragraph on boolean
43+
predicate result display.
44+
45+
==============================================================================
46+
V7.0.7 changes ^^^^:
47+
==============================================================================
48+
149
2019-09-17 Bob Weiner <[email protected]>
250

351
* hui.el (hui:action):
@@ -181,6 +229,10 @@
181229

182230
* DEMO: Changed most 'click' uses in DEMO to 'press'.
183231

232+
==============================================================================
233+
V7.0.6 changes ^^^^:
234+
==============================================================================
235+
184236
* man/hyperbole.texi (Implicit Button Type Summaries): Changed to Implicit
185237
Button Types.
186238
(Implicit Button Type): Changed to Implicit Button

HY-ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Designed and Written by Bob Weiner
44
Maintained by Mats Lidell and Bob Weiner
55
https://www.gnu.org/software/hyperbole/
6-
Version 7.0.6
6+
Version 7.0.7
77

88
Say thanks if you like Hyperbole:
99
https://saythanks.io/to/rswgnu

HY-NEWS

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
by Bob Weiner
33

44
===========================================================================
5-
* V7.0.6
5+
* V7.0.7
66
===========================================================================
77

88
BUTTONS
@@ -28,23 +28,25 @@
2828
<glink: global button label to link to> link-to-gbut
2929
<ilink: implicit button label to link to: optional ibut file> link-to-ibut
3030

31-
- Other new implicit button types:
31+
- Other New Implicit Button Types:
3232
debugger-source: Jump to the source of errors from the Python pytype package
3333
ipython-stack-frame: Jump to the source of ipython stack traces and exceptions
3434

3535
- Much Faster Implicit Buttons: Major speedup in implicit button identification
3636
and activation even with the new generalized Action implicit button type
3737
syntax, due to internal optimizations.
3838

39-
- Pathname implicit buttons now flash when activated.
39+
- Pathname Flashing: Pathname implicit buttons now flash when activated.
4040

41-
- Pathname implicit buttons may contain both link anchors and line and column
42-
numbers. Link anchors now work for shell script editing modes as well
43-
using comment lines as anchors. Format is:
44-
"<path>[#<link-anchor>]:<line-num>[:<col-num>]"
41+
- Pathname References: Pathname implicit buttons may contain both link anchors
42+
and line and column numbers. Format is:
43+
"<path>[#<link-anchor>]:<line-num>[:<col-num>]"
4544

46-
- Variables in paths no longer require a trailing directory separator.
47-
Both of these are live Hyperbole paths:
45+
- Shell Script Link Anchors: Link anchors now work for shell script editing modes
46+
as well using comment lines as the anchors, e.g. "myscript.sh#Env Variables".
47+
48+
- Dir Variable Separators: Variables in paths no longer require a trailing directory
49+
separator. Both of these are live Hyperbole paths:
4850
"${hyperb:dir}DEMO#Smart Mouse Keys"
4951
"${hyperb:dir}/DEMO#Smart Mouse Keys"
5052

@@ -61,7 +63,7 @@
6163
- Implicit Button Types: Split off type descriptions to this new
6264
subsection and added these types: ripgrep-msg, ipython-stack-frame,
6365
ilink (link to implicit button), glink (link to global button), and
64-
ib elink (link to explicit button).
66+
elink (link to explicit button).
6567

6668
- DEMO (Action Buttons): Added description and examples.
6769

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
# This ver setup won't work under any make except GNU make, so set it manually.
6565
#HYPB_VERSION = "`head -3 hversion.el | tail -1 | sed -e 's/.*|\(.*\)|.*/\1/'`"
66-
HYPB_VERSION = 7.0.6
66+
HYPB_VERSION = 7.0.7
6767

6868
# Emacs executable used to byte-compile .el files into .elc's.
6969
# Possibilities include: emacs, infodock, etc.
@@ -174,7 +174,8 @@ ELC_COMPILE = hactypes.elc hibtypes.elc hib-debbugs.elc hib-doc-id.elc hib-kbd.
174174
hpath.elc hrmail.elc hsettings.elc hsmail.elc hsys-org.elc hsys-www.elc htz.elc \
175175
hycontrol.elc hui-jmenu.elc hui-menu.elc hui-mini.elc hui-mouse.elc hui-select.elc \
176176
hui-treemacs.elc hui-window.elc hui.elc hvar.elc hversion.elc hvm.elc hypb.elc hyperbole.elc \
177-
hyrolo-demo.elc hyrolo-logic.elc hyrolo-menu.elc hyrolo.elc hywconfig.elc set.elc
177+
hyrolo-demo.elc hyrolo-logic.elc hyrolo-menu.elc hyrolo.elc hywconfig.elc \
178+
set.elc kprop-em.elc
178179

179180
ELC_KOTL = kotl/kexport.elc kotl/kfile.elc kotl/kfill.elc kotl/kimport.elc kotl/klabel.elc \
180181
kotl/klink.elc kotl/kmenu.elc kotl/knode.elc kotl/kotl-mode.elc \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GNU Hyperbole 7.0.6 - The Everyday Hypertextual Information Manager
1+
# GNU Hyperbole 7.0.7 - The Everyday Hypertextual Information Manager
22

33
[Say thanks if you like Hyperbole.(https://saythanks.io/to/rswgnu)]
44

README.md.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1>
2-
<a id="user-content-gnu-hyperbole-706---the-everyday-hypertextual-information-manager" class="anchor" href="#gnu-hyperbole-706---the-everyday-hypertextual-information-manager" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>GNU Hyperbole 7.0.6 - The Everyday Hypertextual Information Manager</h1>
2+
<a id="user-content-gnu-hyperbole-707---the-everyday-hypertextual-information-manager" class="anchor" href="#gnu-hyperbole-707---the-everyday-hypertextual-information-manager" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>GNU Hyperbole 7.0.7 - The Everyday Hypertextual Information Manager</h1>
33
<p>[Say thanks if you like Hyperbole.(<a href="https://saythanks.io/to/rswgnu" rel="nofollow">https://saythanks.io/to/rswgnu</a>)]</p>
44

55
<p><strong>Table of Contents</strong></p>

hact.el

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ symbol or if SYMTABLE is invalid."
5959
(setq def-name name
6060
elisp-name (concat (symtable:name symtable) "::" name)
6161
elisp-symbol (funcall intern-op elisp-name)))
62-
;; Comment this out so can look for and try to remove symbols yet not defined.
62+
;; Comment this out so can look for and try to remove symbols not yet defined.
6363
;; (unless elisp-symbol
6464
;; (error "(symtable:operate): Use `%s' to create a new type named `%s' before using `%s' on it"
6565
;; (if (equal (plist-get symtable 'name) "actypes") "defact" "defib")
@@ -216,7 +216,7 @@ Return the new function symbol derived from TYPE."
216216
"Delete a Hyperbole TYPE derived from TYPE-CATEGORY (both symbols).
217217
Return the Hyperbole symbol for the TYPE if it existed, else nil."
218218
(let* ((sym (htype:symbol type type-category))
219-
(exists (fboundp 'sym)))
219+
(exists (fboundp sym)))
220220
(setplist sym nil)
221221
(symtable:delete type (symtable:select type-category))
222222
(symset:delete type type-category 'symbols)
@@ -246,8 +246,8 @@ When optional SYM is given, returns the name for that symbol only, if any."
246246
;;; ------------------------------------------------------------------------
247247

248248
(defun htype:symbol (type type-category)
249-
"Return Hyperbole type symbol composed from TYPE and TYPE-CATEGORY (both symbols)."
250-
(symtable:get type (symtable:select type-category)))
249+
"Return possibly new Hyperbole type symbol composed from TYPE and TYPE-CATEGORY (both symbols)."
250+
(intern (concat (symbol-name type-category) "::" (symbol-name type))))
251251

252252
;;; ========================================================================
253253
;;; action class
@@ -373,9 +373,10 @@ Other paths are simply expanded. Non-path arguments are returned unchanged."
373373
(let ((loc (hattr:get 'hbut:current 'loc)))
374374
(mapcar (lambda (arg)
375375
(hpath:relative-to arg
376-
(if (stringp loc)
377-
loc
378-
(buffer-local-value 'default-directory loc))))
376+
(file-name-directory
377+
(if (stringp loc)
378+
loc
379+
(buffer-local-value 'default-directory loc)))))
379380
args-list)))
380381

381382

@@ -429,7 +430,7 @@ performing ACTION."
429430
actype
430431
(symbol-name actype))))
431432
(when (string-match "\\`actypes::" name)
432-
(make-symbol (substring sym-name (match-end 0))))))
433+
(make-symbol (substring name (match-end 0))))))
433434

434435
(defun actype:eval (actype &rest args)
435436
"Performs action formed from ACTYPE and rest of ARGS and returns value.
@@ -485,8 +486,9 @@ The type uses PARAMS to perform DEFAULT-ACTION (list of the rest of the
485486
arguments). A call to this function is syntactically the same as for
486487
`defun', but a doc string is required.
487488
Return symbol created when successful, else nil."
488-
(symtable:add type symtable:actypes)
489-
(list 'htype:create type 'actypes doc params default-action `'(definition-name ,type)))
489+
`(progn
490+
(symtable:add ',type symtable:actypes)
491+
(htype:create ,type actypes ,doc ,params ,default-action '(definition-name ,type))))
490492

491493
(defalias 'defact 'actype:create)
492494
(put 'actype:create 'lisp-indent-function 'defun)

hactypes.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ inserted, delete the completions window."
4646
(delete-window))
4747
(hargs:completion)))
4848

49+
(defact display-boolean (bool-expr)
50+
"Display a message showing the result value of a BOOL-EXPR.
51+
Return any non-nil value or t."
52+
(let ((result (eval bool-expr)))
53+
(message "Boolean result (%s) = %s" (if result "True" "False") (prin1-to-string result))
54+
(or result t)))
55+
4956
(defact display-variable (var)
50-
"Display a message showing `var` (a symbol) and its value."
57+
"Display a message showing `var` (a symbol) and its value.
58+
Return any non-nil value or t."
5159
(message "%s = %s" var (symbol-value var))
5260
(or (symbol-value var) t))
5361

hbut.el

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,11 +1490,19 @@ buttons of this type; most useful when TO-P is also given.
14901490
Return symbol created when successful, else nil. Nil indicates that action
14911491
type for ibtype is presently undefined."
14921492
(when type
1493-
(symtable:add type symtable:ibtypes)
14941493
(let ((to-func (when to-p (action:create nil (list to-p))))
14951494
(at-func (list at-p)))
1496-
`(htype:create ,type ibtypes ,doc nil ,at-func
1497-
(list 'to-p ,to-func 'style ,style)))))
1495+
`(progn (symtable:add ',type symtable:ibtypes)
1496+
(htype:create ,type ibtypes ,doc nil ,at-func
1497+
'(to-p ,to-func style ,style))))))
1498+
1499+
(defun ibtype:def-symbol (ibtype)
1500+
"Return the abbreviated symbol for IBTYPE used in its `defib'; IBTYPE may be a string or symbol."
1501+
(let ((name (if (stringp ibtype)
1502+
ibtype
1503+
(symbol-name ibtype))))
1504+
(when (string-match "\\`ibtypes::" name)
1505+
(make-symbol (substring name (match-end 0))))))
14981506

14991507
(defun ibtype:delete (type)
15001508
"Delete an implicit button TYPE (a symbol).

hib-social.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,10 @@ PROJECT value is provided, it defaults to the value of
585585
(setq reference (substring reference (match-end 0)))))))
586586
(if (and (stringp user) (stringp project))
587587
(funcall hibtypes-social-display-function
588-
(setq a (if reference
588+
(if reference
589589
(format url-to-format user project ref-type reference)
590-
;; Remove trailing /
591-
(substring (format url-to-format user project "" "") 0 -1))))
590+
;; Remove trailing /
591+
(substring (format url-to-format user project "" "") 0 -1)))
592592
(cond ((and (null user) (null project))
593593
(error "(gitlab-reference): Set `hibtypes-gitlab-default-user' and `hibtypes-gitlab-default-project'"))
594594
((null user)

0 commit comments

Comments
 (0)