|
3 | 3 | ;; Author: Bob Weiner |
4 | 4 | ;; |
5 | 5 | ;; Orig-Date: 21-Apr-24 at 22:41:13 |
6 | | -;; Last-Mod: 30-Nov-25 at 18:06:52 by Bob Weiner |
| 6 | +;; Last-Mod: 5-Jan-26 at 20:09:54 by Mats Lidell |
7 | 7 | ;; |
8 | 8 | ;; SPDX-License-Identifier: GPL-3.0-or-later |
9 | 9 | ;; |
10 | | -;; Copyright (C) 2024-2025 Free Software Foundation, Inc. |
| 10 | +;; Copyright (C) 2024-2026 Free Software Foundation, Inc. |
11 | 11 | ;; See the "HY-COPY" file for license information. |
12 | 12 | ;; |
13 | 13 | ;; This file is part of GNU Hyperbole. |
@@ -2997,7 +2997,6 @@ variables." |
2997 | 2997 | :complete #'hywiki-org-link-complete |
2998 | 2998 | :export #'hywiki-org-link-export |
2999 | 2999 | :follow #'hywiki-find-referent |
3000 | | - :htmlize-link #'hywiki-section-to-headline-reference |
3001 | 3000 | :store #'hywiki-org-link-store) |
3002 | 3001 | (org-link-set-parameters "hypb-msg" |
3003 | 3002 | :follow (lambda (path) (message "Message: %s" path)) |
@@ -3065,17 +3064,6 @@ at point must return non-nil or this function will return nil." |
3065 | 3064 | (list word start end) |
3066 | 3065 | word))) |
3067 | 3066 |
|
3068 | | -(defun hywiki-section-to-headline-reference () |
3069 | | - "Replace file#section dashes with spaces to match to an Org headline. |
3070 | | -Does replacement only when not in a programming mode and section |
3071 | | -contains no spaces." |
3072 | | - (let ((link (get-text-property (point) 'org-link))) |
3073 | | - (if (and link (string-match "#" link)) |
3074 | | - (let* ((file (substring link 0 (match-beginning 0))) |
3075 | | - (section (substring link (match-beginning 0)))) |
3076 | | - (concat file (hpath:dashes-to-spaces-markup-anchor section))) |
3077 | | - link))) |
3078 | | - |
3079 | 3067 | (defun hywiki-strip-org-link (link-str) |
3080 | 3068 | "Return the hy:HyWikiWord#section part of an Org link string. |
3081 | 3069 | Strip any square bracket delimiters, description and leading or |
|
0 commit comments