[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole f0182ad215 44/47: Merge branch 'master' into
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole f0182ad215 44/47: Merge branch 'master' into insert_missing_changelog_entry |
Date: |
Sun, 25 Jun 2023 15:58:39 -0400 (EDT) |
branch: externals/hyperbole
commit f0182ad21545cd85ce4a0860a2f8c6c940e67b78
Merge: ac036b5f29 feb6fb1a75
Author: Robert Weiner <rsw@gnu.org>
Commit: GitHub <noreply@github.com>
Merge branch 'master' into insert_missing_changelog_entry
---
ChangeLog | 8 ++++++++
hactypes.el | 14 ++++++++++----
hibtypes.el | 14 +++++++++-----
3 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e2f0cf16d3..978c7890d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2023-06-25 Bob Weiner <rsw@gnu.org>
+* hibtypes.el (annot-bib): Fix missing check that annot-bib is between square
+ brackets.
+ hactypes.el (annot-bib): Beep/fail if when search for citation, point ends up
+ within the ibut reference rather than the citation itself.
+
+* hibtypes.el (org-link-outside-org-mode): Revert to pre-Stefan changes since
not
+ yet integrating variable check instead of 'hyperb:stack-frame' calls.
+
* hactypes.el (rfc-toc): Fix wrong 'select-buffer' call by replacing with
'switch-to-buffer' for permanent return to original buffer.
diff --git a/hactypes.el b/hactypes.el
index e5d6465a20..bf7744d347 100644
--- a/hactypes.el
+++ b/hactypes.el
@@ -3,7 +3,7 @@
;; Author: Bob Weiner
;;
;; Orig-Date: 23-Sep-91 at 20:34:36
-;; Last-Mod: 25-Jun-23 at 09:38:34 by Bob Weiner
+;; Last-Mod: 25-Jun-23 at 13:48:01 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -36,9 +36,15 @@
"Follow internal ref KEY within an annotated bibliography, delimiters=[]."
(interactive "sReference key (no []): ")
(let* ((key-regexp (concat "^[*]*[ \t]*\\[" (ebut:key-to-label key) "\\]"))
- (citation (save-excursion
- (goto-char (point-max))
- (re-search-backward key-regexp nil t))))
+ (lbl-start (hattr:get 'hbut:current 'lbl-start))
+ (lbl-end (hattr:get 'hbut:current 'lbl-end))
+ (citation (when (and lbl-start lbl-end)
+ (save-excursion
+ (goto-char (point-max))
+ (and (re-search-backward key-regexp nil t)
+ (or (< (point) (1- lbl-start))
+ (> (point) (1+ lbl-end)))
+ (point))))))
(if citation
(progn (hpath:display-buffer (current-buffer))
(goto-char citation)
diff --git a/hibtypes.el b/hibtypes.el
index 7f581d1ddf..a7136ad5db 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: 21-Jun-23 at 23:33:28 by Bob Weiner
+;; Last-Mod: 25-Jun-23 at 13:27:34 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -368,12 +368,11 @@ handle any links they recognize first."
(not (funcall hsys-org-mode-function))
;; Prevent infinite recursion, e.g. if called via
;; `org-metareturn-hook' from `org-meta-return' invocation.
- (not hibtypes--within-org-link-outside-org-mode))
+ (not (hyperb:stack-frame '(ibtypes::debugger-source
org-meta-return))))
(require 'hsys-org)
(declare-function hsys-org-link-at-p "hsys-org" ())
(declare-function hsys-org-set-ibut-label "hsys-org" (start-end))
- (let* ((hibtypes--within-org-link-outside-org-mode t)
- (start-end (hsys-org-link-at-p)))
+ (let ((start-end (hsys-org-link-at-p)))
(when start-end
(hsys-org-set-ibut-label start-end)
(hact #'org-open-at-point-global)))))
@@ -394,9 +393,14 @@ must have an attached file."
(not (or (eq chr ?\ ) (eq chr ?*))))
(not (or (derived-mode-p 'prog-mode)
(apply #'derived-mode-p '(c-mode objc-mode c++-mode java-mode
markdown-mode org-mode))))
- (let ((ref (hattr:get 'hbut:current 'lbl-key)))
+ (let ((ref (hattr:get 'hbut:current 'lbl-key))
+ (lbl-start (hattr:get 'hbut:current 'lbl-start)))
(and ref (eq ?w (char-syntax (aref ref 0)))
(not (string-match "[#@]" ref))
+ lbl-start
+ (save-excursion
+ (goto-char lbl-start)
+ (ibut:label-p t "[" "]" t))
(hact 'annot-bib ref)))))
;;; ========================================================================
- [elpa] externals/hyperbole 5d5914c197 12/47: * hycontrol.el (hycontrol-windows-mode-map): Don't autoload, (continued)
- [elpa] externals/hyperbole 5d5914c197 12/47: * hycontrol.el (hycontrol-windows-mode-map): Don't autoload, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 9fbab74a10 13/47: * hui-select.el: Fix a few warnings and improve some docstrings, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole e9fabc86f6 24/47: Changes applied separately, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 00dcf534ca 32/47: Revert "Try and avoid using `hyperb:stack-frame`", ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole e1bd2e95e5 34/47: Revert Stefan set-buffer and macroexp-file-name (not in Emacs 27.1), ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole d115b6d357 35/47: Don't remove hyperb:automount-prefixes and hyperb:path-being-loaded, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole a06d9a4a8c 33/47: Revert "Get rid of `hyperb:stack-frame`", ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole a69d994d5a 31/47: ibut:operate - Add 2nd edit-flag parameter; non-nil means modifying, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole c085ed7099 39/47: Merge branch 'master' into rsw, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 7bd5a86a4c 40/47: Merge pull request #349 from rswgnu/rsw, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole f0182ad215 44/47: Merge branch 'master' into insert_missing_changelog_entry,
ELPA Syncer <=
- [elpa] externals/hyperbole 4842d3fde0 14/47: (man-show): Fix miscompilation, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 3c6dcafe4f 21/47: Revert hunk, will be applied elsewhere, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 1c5327c5fa 26/47: Keep group lines, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole d6415dd593 27/47: Keep orig until explained, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 876ad5cea7 17/47: * hargs.el (hargs:set-string-to-complete): Don't mess with windows, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole cfca16eb9e 04/47: * hversion.el (hyperb:path-being-loaded): Delete function, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 095cb3c1db 19/47: Use gnu make pattern substitution for load-file command, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 0e006d705d 23/47: Remove XEmacs check, explain NeXT dependency, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole 03b10e117b 01/47: Verify url is called, ELPA Syncer, 2023/06/25
- [elpa] externals/hyperbole e09292484e 03/47: * hload-path.el (hyperb:dir): Use `macroexp-file-name`, ELPA Syncer, 2023/06/25