[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 694f3110fd 02/19: hsys-org.el: Activate only
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 694f3110fd 02/19: hsys-org.el: Activate only if not at eol or eob |
Date: |
Sun, 24 Jul 2022 16:57:37 -0400 (EDT) |
branch: externals/hyperbole
commit 694f3110fddd7640254dfc717c3064f37739f7e4
Author: Bob Weiner <rsw@gnu.org>
Commit: Bob Weiner <rsw@gnu.org>
hsys-org.el: Activate only if not at eol or eob
---
ChangeLog | 3 +++
hsys-org.el | 47 ++++++++++++++++++++++++-----------------------
2 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1f23ebcaff..38434f30ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -72,6 +72,9 @@
MANIFEST: Added above file.
2022-07-06 Bob Weiner <rsw@gnu.org>
+* hsys-org.el (hsys-org-link-at-p, hsys-org-heading-at-p): Update to use
+ 'smart-eolp' and 'smart-eobp'.
+
2022-06-19 Bob Weiner <rsw@gnu.org>
* test/demo-tests.el (fast-demo-key-series-shell-apropos): Allow optional space
diff --git a/hsys-org.el b/hsys-org.el
index 10e0409d08..2b0da07087 100644
--- a/hsys-org.el
+++ b/hsys-org.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 2-Jul-16 at 14:54:14
-;; Last-Mod: 22-May-22 at 15:05:49 by Bob Weiner
+;; Last-Mod: 2-Jul-22 at 14:45:35 by Bob Weiner
;;
;; Copyright (C) 2016-2021 Free Software Foundation, Inc.
;; See the "HY-COPY" file for license information.
@@ -197,32 +197,33 @@ Match to all todos if `keyword' is nil or the empty
string."
Assume caller has already checked that the current buffer is in `org-mode'
or are looking for an Org link in another buffer type."
;; If any Org test fails, just return nil
- (condition-case ()
- (let* ((context
- ;; Only consider supported types, even if they are not
- ;; the closest one.
- (org-element-lineage
- ;; Next line can trigger an error when `looking-at' is called
- ;; with a `nil' value of `org-complex-heading-regexp'.
- (org-element-context)
- '(clock footnote-definition footnote-reference headline
- inlinetask link timestamp)
- t))
- (type (org-element-type context)))
- (or (eq type 'link)
- (and (boundp 'org-link-bracket-re)
- (org-in-regexp org-link-bracket-re))
- (and (boundp 'org-bracket-link-regexp)
- (org-in-regexp org-bracket-link-regexp))
- (and (boundp 'org-target-link-regexp)
- (not (null org-target-link-regexp))
- (org-in-regexp org-target-link-regexp))))
- (error nil)))
+ (unless (or (smart-eolp) (smart-eobp))
+ (condition-case ()
+ (let* ((context
+ ;; Only consider supported types, even if they are not
+ ;; the closest one.
+ (org-element-lineage
+ ;; Next line can trigger an error when `looking-at' is called
+ ;; with a `nil' value of `org-complex-heading-regexp'.
+ (org-element-context)
+ '(clock footnote-definition footnote-reference headline
+ inlinetask link timestamp)
+ t))
+ (type (org-element-type context)))
+ (or (eq type 'link)
+ (and (boundp 'org-link-bracket-re)
+ (org-in-regexp org-link-bracket-re))
+ (and (boundp 'org-bracket-link-regexp)
+ (org-in-regexp org-bracket-link-regexp))
+ (and (boundp 'org-target-link-regexp)
+ (not (null org-target-link-regexp))
+ (org-in-regexp org-target-link-regexp))))
+ (error nil))))
;; Assume caller has already checked that the current buffer is in org-mode.
(defun hsys-org-heading-at-p (&optional _)
"Non-nil when on a headline."
- (unless (eolp)
+ (unless (or (smart-eolp) (smart-eobp))
(outline-on-heading-p t)))
;; Assume caller has already checked that the current buffer is in org-mode.
- [elpa] externals/hyperbole c9a58fc673 01/19: hsys-youtube.el: Add action button types for Youtube videos, (continued)
- [elpa] externals/hyperbole c9a58fc673 01/19: hsys-youtube.el: Add action button types for Youtube videos, ELPA Syncer, 2022/07/24
- [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 <=
- [elpa] externals/hyperbole d256f195ee 11/19: Fix major issues with ibut:create but some tests still fail, ELPA Syncer, 2022/07/24
- [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