[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/toc-org aef220c266 115/128: Merge pull request #71 from sn
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/toc-org aef220c266 115/128: Merge pull request #71 from snosov1/fix-70 |
Date: |
Sun, 2 Jan 2022 09:59:15 -0500 (EST) |
branch: elpa/toc-org
commit aef220c266f53d36055f74f4a243c6483c563d2a
Merge: ff8d49c2c7 215d3e41e3
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #71 from snosov1/fix-70
fix C-c C-o for links with cookies
---
toc-org.el | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/toc-org.el b/toc-org.el
index a05196ebb9..e2fff1d882 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -311,15 +311,13 @@ each heading into a link."
(end (line-end-position))
(heading (buffer-substring-no-properties
beg end))
- (hrefified (funcall hrefify heading hash)))
+ (hrefified (funcall hrefify heading hash))
+ (visible-link (toc-org-format-visible-link heading)))
(if markdown-syntax-p
(progn
(insert "[")
- (insert
- (toc-org-format-visible-link
- (buffer-substring-no-properties
- (point) (line-end-position))))
+ (insert visible-link)
(delete-region (point) (line-end-position))
(insert "]")
(insert "(")
@@ -328,16 +326,13 @@ each heading into a link."
(insert "[[")
(insert hrefified)
(insert "][")
- (insert
- (toc-org-format-visible-link
- (buffer-substring-no-properties
- (point) (line-end-position))))
+ (insert visible-link)
(delete-region (point) (line-end-position))
(insert "]]"))
;; maintain the hash table, if provided
(when hash
- (puthash hrefified heading hash)))
+ (puthash hrefified visible-link hash)))
(= 0 (forward-line 1)))))
(buffer-substring-no-properties
- [nongnu] elpa/toc-org 7eb2874ed3 041/128: require org, (continued)
- [nongnu] elpa/toc-org 7eb2874ed3 041/128: require org, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 3e0bdb5a29 054/128: fix properties handling (see #20), ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 7c54f809d6 058/128: Merge pull request #23 from snosov1/fix-eof-toc, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org b0cac21cdf 059/128: handle statistics cookies and #+OPTIONS: todo:t, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 44c2e17543 070/128: Merge pull request #36 from snosov1/move-tests, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 421956e9cc 078/128: remove opening space in each toc item, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 379b457fcf 107/128: fix subheading link in readme, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org f0b94e07bb 075/128: Merge pull request #39 from snosov1/add-noexport-support, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 274e821fd4 079/128: update emacs to 25 for travis testing, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 5deaec41ed 109/128: Update README.org, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org aef220c266 115/128: Merge pull request #71 from snosov1/fix-70,
ELPA Syncer <=
- [nongnu] elpa/toc-org 4798d15365 110/128: WIP Fix stripping of word "Comment" in headlines, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org e76e6d4044 085/128: make toc-org work in derived modes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org d992b1f76a 108/128: Update README.org, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org ce9e49303c 089/128: simply use downcase instead of replace-regexp-in-string, ELPA Syncer, 2022/01/02