[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole d256f195ee 11/19: Fix major issues with ibut:
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole d256f195ee 11/19: Fix major issues with ibut:create but some tests still fail |
Date: |
Sun, 24 Jul 2022 16:57:38 -0400 (EDT) |
branch: externals/hyperbole
commit d256f195ee199383fff83073243cd0f0553c57ca
Author: Bob Weiner <rsw@gnu.org>
Commit: Bob Weiner <rsw@gnu.org>
Fix major issues with ibut:create but some tests still fail
---
hbut.el | 14 ++++++++------
hibtypes.el | 4 ++--
hmouse-drv.el | 7 ++++---
3 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/hbut.el b/hbut.el
index 2f8568b60c..a391c8b86c 100644
--- a/hbut.el
+++ b/hbut.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 18-Sep-91 at 02:57:09
-;; Last-Mod: 17-Jul-22 at 16:26:56 by Bob Weiner
+;; Last-Mod: 23-Jul-22 at 01:57:12 by Bob Weiner
;;
;; Copyright (C) 1991-2022 Free Software Foundation, Inc.
;; See the "HY-COPY" file for license information.
@@ -1543,7 +1543,7 @@ associated arguments from the button."
(funcall ibut-type-symbol))))))
(cl-defun ibut:create (&optional &key name lbl-key lbl-start lbl-end
- loc categ actype args action)
+ loc dir categ actype args action)
"Return `hbut:current' symbol with attributes of implicit button at point.
Return nil if no implicit button at point."
;; :args is ignored unless :categ is also given.
@@ -1555,7 +1555,7 @@ Return nil if no implicit button at point."
(unless (or (eolp) (eobp))
(let* ((types (htype:category 'ibtypes))
;; Global var used in (hact) function, don't delete.
- (hrule:action 'actype:identity)
+ (hrule:action #'actype:identity)
(name-start-end (ibut:label-p t nil nil t t))
(ibpoint (point-marker))
(itype)
@@ -1596,10 +1596,11 @@ Return nil if no implicit button at point."
(hattr:set 'hbut:current 'lbl-key lbl-key))
(hattr:set 'hbut:current 'loc (or loc (save-excursion
(hbut:key-src 'full))))
+ (hattr:set 'hbut:current 'dir (or dir (hui:key-dir (current-buffer))))
(when action
- (hattr:set 'hbut:current 'action action))
- (or args
- (hattr:get 'hbut:current 'args)
+ (hattr:set 'hbut:current 'action action)
+ (unless args (setq args action)))
+ (or (hattr:get 'hbut:current 'args)
(not (listp args))
(progn
(setq args (copy-sequence args))
@@ -1607,6 +1608,7 @@ Return nil if no implicit button at point."
(setq args (cdr args)))
(hattr:set 'hbut:current 'actype
(or
+ actype
;; Hyperbole action type
(symtable:actype-p (car args))
;; Regular Emacs Lisp function symbol
diff --git a/hibtypes.el b/hibtypes.el
index a366ab30c2..384d0cd858 100644
--- a/hibtypes.el
+++ b/hibtypes.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 19-Sep-91 at 20:45:31
-;; Last-Mod: 17-Jul-22 at 23:19:27 by Bob Weiner
+;; Last-Mod: 23-Jul-22 at 01:30:20 by Bob Weiner
;;
;; Copyright (C) 1991-2022 Free Software Foundation, Inc.
;; See the "HY-COPY" file for license information.
@@ -1370,7 +1370,7 @@ arg1 ... argN '>'. For example, <mail nil
\"user@somewhere.org\">."
;; at the end of the buffer
;; or is followed by a space, punctuation or grouping character.
(when (and lbl-key (or (null (char-before start-pos))
- (memq (char-syntax (char-before start-pos)) '(?\
?\> ?\( ?\))))
+ (memq (char-syntax (char-before start-pos)) '(?\
?\> ?\( ?\))))
(not (memq (char-syntax (char-after (1+ start-pos))) '(?\
?\>)))
(or (null (char-after end-pos))
(memq (char-syntax (char-after end-pos)) '(?\ ?\> ?. ?\(
?\)))
diff --git a/hmouse-drv.el b/hmouse-drv.el
index 5a1e952296..2e4246791e 100644
--- a/hmouse-drv.el
+++ b/hmouse-drv.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 04-Feb-90
-;; Last-Mod: 17-Jul-22 at 23:15:34 by Bob Weiner
+;; Last-Mod: 23-Jul-22 at 01:57:43 by Bob Weiner
;;
;; Copyright (C) 1989-2021 Free Software Foundation, Inc.
;; See the "HY-COPY" file for license information.
@@ -856,8 +856,9 @@ frame instead."
pred
(if assist-flag "Assist" "Action")
(if (hattr:get 'hbut:current 'actype)
- (cons (hattr:get 'hbut:current 'actype)
- (hattr:get 'hbut:current 'args))
+ (or (hattr:get 'hbut:current 'action)
+ (cons (hattr:get 'hbut:current 'actype)
+ (hattr:get 'hbut:current 'args)))
(hypb:format-quote (format "%s" hkey-action)))
(current-buffer)
major-mode
- [elpa] externals/hyperbole d0dd9202d8 06/19: HyRolo search org-directory, org-roam files or with helm-org-rifle, (continued)
- [elpa] externals/hyperbole d0dd9202d8 06/19: HyRolo search org-directory, org-roam files or with helm-org-rifle, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 44262d14a7 14/19: Resolve all but one test case issues from the latest updates, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 80d1d2dd4c 12/19: Update tests to work with new ibut:create code, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole c38d137510 03/19: Merge branch 'master' of hyperbole, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole e9015341c0 08/19: hypb.el: Support devdocs-lookup package, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 4860da0802 07/19: hsettings.el (hyperbole-web-search): Add flag to return search expr, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 72ca3f0041 10/19: hui-mini.el: Multi-line menu support; add To/ and Doc a-z menus, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 7a86ea33e2 09/19: Add ibut:create and allow Assist Key :help for Elisp functions, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole c517641b51 18/19: * ibut:create Ensure lbl-key is always set to name, if available, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 694f3110fd 02/19: hsys-org.el: Activate only if not at eol or eob, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole d256f195ee 11/19: Fix major issues with ibut:create but some tests still fail,
ELPA Syncer <=
- [elpa] externals/hyperbole 5e6e10dd6e 13/19: elisp-compiler-msg: Add Smart Key support for ERT "Test <symbol>", ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 75c9214c35 19/19: hypb:require-package: Prompt user with y/n query before install pkg, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole dcb0b9e7aa 17/19: Merge branch 'master' of hyperbole; initial 80-col comment fixes, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole dcc51fb827 15/19: Change pushd to cd since /bin/sh does not support pushd, ELPA Syncer, 2022/07/24
- [elpa] externals/hyperbole 716507c51c 16/19: Fix a number of issues with ibut attribute handling, ELPA Syncer, 2022/07/24