[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/toc-org df4ad6ff15 121/128: Merge pull request #76 from sn
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/toc-org df4ad6ff15 121/128: Merge pull request #76 from snosov1/revert-75-local-offset |
Date: |
Sun, 2 Jan 2022 09:59:15 -0500 (EST) |
branch: elpa/toc-org
commit df4ad6ff15e3b02f6322305638a441a636b9b37e
Merge: 9fefa63d42 8321d3c76b
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #76 from snosov1/revert-75-local-offset
Revert "Respect the file-local value of org-list-indent-offset."
---
toc-org.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/toc-org.el b/toc-org.el
index 9d2f194d89..5ca0f010e9 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -285,7 +285,7 @@ rules."
(setq ret-path original-path))))
(cons ret-type ret-path)))
-(defun toc-org-hrefify-toc (toc hrefify markdown-syntax-p list-offset
&optional hash)
+(defun toc-org-hrefify-toc (toc hrefify markdown-syntax-p &optional hash)
"Format the raw `toc' using the `hrefify' function to transform
each heading into a link."
(with-temp-buffer
@@ -298,7 +298,9 @@ each heading into a link."
(while (looking-at "\\*")
(delete-char 1)
- (insert (make-string (+ 2 list-offset) ?\s)))
+ (insert (make-string
+ (+ 2 (or (bound-and-true-p org-list-indent-offset) 0))
+ ?\s)))
(insert "-")
(skip-chars-forward " ")
@@ -407,7 +409,6 @@ not :noexport_#:."
(toc-org-flush-subheadings (toc-org-raw-toc
markdown-syntax-p) depth)
hrefify
markdown-syntax-p
- (or (bound-and-true-p org-list-indent-offset) 0)
(when toc-org-hrefify-hash
(clrhash toc-org-hrefify-hash)))
toc-suffix)))
- [nongnu] elpa/toc-org ad3424d457 067/128: move tests to a separate file, (continued)
- [nongnu] elpa/toc-org ad3424d457 067/128: move tests to a separate file, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 5a8a3f9b3a 080/128: Merge pull request #42 from snosov1/remove-opening-space, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org aa52bd036d 071/128: handle headlines with COMMENT, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org d30b57f16d 077/128: Merge pull request #40 from alphapapa/update-primary-docstring, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 37f3bf2733 112/128: Add tests for the case-sensitive COMMENT regexp, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 4d259c9cea 086/128: Merge pull request #51 from snosov1/work-in-derived-modes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org cd1868787c 087/128: Fix Emacs 26 warning, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 3315ef6c96 106/128: Merge pull request #66 from snosov1/enable-toc-org-for-markdown, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 9fefa63d42 119/128: Merge pull request #75 from Alexander-Miller/local-offset, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 7ff7abb015 029/128: update documentation on org-toc-2 in the source, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org df4ad6ff15 121/128: Merge pull request #76 from snosov1/revert-75-local-offset,
ELPA Syncer <=
- [nongnu] elpa/toc-org c4c61c5a38 117/128: Merge pull request #73 from syohex/correct-sample, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org acca680bc5 098/128: Add somewhat working TOC generation for markdown files, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 0b759818ee 025/128: fix byte-compilation warning, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a0fd8ffb8a 047/128: make internal linking work with Org 8.3, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 7fae24baa9 030/128: revert org-toc-2 documentation changes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org af1ffb17c2 050/128: Better toc-org-special-chars-regexp, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 158934fefd 064/128: Merge pull request #31 from azizyemloul/delete-heading-trailing-spaces, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a0e8ca05e8 066/128: Merge pull request #33 from iqbalansari/master, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 39fbbda8df 081/128: handle custom keywords specified in the files, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 8dbb3df422 125/128: Fix byte-compiler warning in Emacs 28, ELPA Syncer, 2022/01/02