-
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.
Fix hyrolo-org-mode to conditionalize ref to org-fold if unbound
Fix to repair mixed version Org installation so Hyperbole works by calling new function `hsys-org-fix-version' from `hyperb:init'.
- Loading branch information
Showing
10 changed files
with
112 additions
and
50 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,12 +1,34 @@ | ||
2024-01-13 Bob Weiner <[email protected]> | ||
|
||
* hsys-org.el (hsys-org-fix-version): Add. Add .org suffix to | ||
'auto-mode-alist' as it may be removed in this function. | ||
hyperbole.el (hyperb:init): Add call to 'hsys-org-fix-version' when | ||
detect a mixed version installation of Org, typically part of | ||
built-in Org loaded before loading a newer packaged version. | ||
|
||
* hargs.el (hargs:at-p): Fix 'no-default' arg handling to not select | ||
non-existent dirs and files when no-default is true. | ||
|
||
* hsys-xref.el (hsys-xref-definitions): Fix to pass symbol, not string to | ||
'ert-test-boundp'. | ||
|
||
* hmouse-drv.el (hkey-help-show): Rename local var from 'org-help' to | ||
'hkey-org-help' to eliminate any confusion that this is an Org variable. | ||
|
||
* hyrolo.el (hyrolo-any-file-type-problem-p): Print error buffer to stdout | ||
when run noninteractively (batch mode). | ||
|
||
* hyrolo.el (hyrolo-org-mode): Conditionalize org-fold usage as it is only | ||
available in newer Org versions. Add missing forward declarations. | ||
|
||
* hyrolo.el (hyrolo-org-mode): Add newer Org 9.7-pre hide/show support. | ||
test/hyrolo-tests.el (hyrolo-tests--outline-hide-show-heading, | ||
hyrolo-tests--outline-show-when-moving-out-of-hidden-line): | ||
The above change fixes these tests, so they have been re-enabled. | ||
|
||
* hmouse-tag.el (smart-lisp-identifier-chars): Add @ char as advised functions | ||
use the orig-function@advice-wrapper-name to refer to the advice. | ||
* hmouse-tag.el (smart-lisp-identifier-chars): Add @ char as advised | ||
functions use the orig-function@advice-wrapper-name to refer to the | ||
advice. | ||
|
||
* hpath.el (hpath:variables): Move 'load-path' and 'exec-path' before | ||
'Info-directory-list' as they should be higher priority matches. | ||
|
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
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
;; Maintainer: Mats Lidell <[email protected]> | ||
;; Maintainers: Robert Weiner <[email protected]>, Mats Lidell <[email protected]> | ||
;; Created: 06-Oct-92 at 11:52:51 | ||
;; Last-Mod: 3-Jan-24 at 02:27:05 by Bob Weiner | ||
;; Last-Mod: 13-Jan-24 at 16:28:45 by Bob Weiner | ||
;; Released: 03-Dec-23 | ||
;; Version: 9.0.0 | ||
;; Keywords: comm, convenience, files, frames, hypermedia, languages, mail, matching, mouse, multimedia, outlines, tools, wp | ||
|
@@ -496,6 +496,13 @@ frame, those functions by default still return the prior frame." | |
'buttons | ||
t))) | ||
;; | ||
;; This next function call must be run before any tests involving Org | ||
;; in case the user has installed a new version of Org but Emacs has | ||
;; loaded parts of Org before his load path is finalized. It loads | ||
;; the newer version of Org, if any, assuming `load-path' is configured | ||
;; correctly. | ||
(hsys-org-fix-version) | ||
;; | ||
;; When vertico-mode is used, vertico-mouse-mode is needed for the | ||
;; Action Key to properly select completions from the candidate | ||
;; list, so force its usage when vertico-mode is invoked. | ||
|
@@ -505,9 +512,10 @@ frame, those functions by default still return the prior frame." | |
;; | ||
;; Hyperbole initialization is complete. | ||
(message "Initializing Hyperbole...done")) | ||
|
||
|
||
;; This call loads the rest of the Hyperbole system. | ||
(require 'hinit) | ||
;; This call loads the rest of the Hyperbole system. | ||
(require 'hinit) | ||
|
||
(defun hyperbole--enable-mode () | ||
"Enable Hyperbole global minor mode." | ||
|
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
;; Author: Mats Lidell <[email protected]> | ||
;; | ||
;; Orig-Date: 30-Jan-21 at 12:00:00 | ||
;; Last-Mod: 30-Dec-23 at 00:00:18 by Bob Weiner | ||
;; Last-Mod: 13-Jan-24 at 16:30:08 by Bob Weiner | ||
;; | ||
;; SPDX-License-Identifier: GPL-3.0-or-later | ||
;; | ||
|
@@ -935,25 +935,7 @@ With point on label suggest that ibut for rename." | |
(ert-deftest hui--link-possible-types () | ||
"Verify right type is selected from referent buffer." | ||
|
||
;; Ensure using any local available packaged version of Org mode rather than built-in | ||
;; which may have been activated before load-path was set correctly. | ||
;; Avoids mixed version load of Org. | ||
(mapc (lambda (lib-sym) (when (featurep lib-sym) (unload-feature lib-sym t))) | ||
'(org org-version org-keys org-compat ol org-table org-macs org-id org-element org-list)) | ||
(package-initialize) | ||
(let ((pkg-desc (car (cdr (assq 'org package-archive-contents))))) | ||
(package-activate pkg-desc t)) | ||
;; Not all versions of org include this variable, so set it | ||
(setq org--inhibit-version-check nil | ||
org-list-allow-alphabetical nil) | ||
(load "org-keys") ;; Otherwise, {M-RET} may not be bound to a key | ||
(load "org-compat") ;; Otherwise, `org-file-name-concat' may be undefined | ||
(load "org-macs") ;; Otherwise, `org--inhibit-version-check' may be undefined | ||
(load "org-list") ;; Otherwise, `org-list-allow-alphabetical' may be undefined | ||
(load "ol") ;; Otherwise, `org-link--description-folding-spec' may be undefined | ||
(cl-flet ((require (lambda (lib-sym &optional _filename _noerror) | ||
(load (symbol-name lib-sym))))) | ||
(require 'org)) | ||
(hsys-org-fix-version) | ||
|
||
;; Org Roam or Org Id link-to-org-id | ||
(let ((file (make-temp-file "hypb" nil ".org"))) | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
;; Author: Mats Lidell <[email protected]> | ||
;; | ||
;; Orig-Date: 30-Jan-21 at 12:00:00 | ||
;; Last-Mod: 7-Jan-24 at 00:56:08 by Mats Lidell | ||
;; Last-Mod: 13-Jan-24 at 16:21:45 by Bob Weiner | ||
;; | ||
;; SPDX-License-Identifier: GPL-3.0-or-later | ||
;; | ||
|
@@ -19,7 +19,7 @@ | |
;;; Code: | ||
|
||
(require 'ert) | ||
(require 'hmouse-drv) ;For `action-key'. | ||
(require 'hmouse-drv) ; For `action-key' | ||
(eval-when-compile (require 'cl-lib)) | ||
|
||
(defun hy-test-helpers:consume-input-events () | ||
|