[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/doc-toc 1602e353b0 49/84: Improve parsing djvu outline
From: |
ELPA Syncer |
Subject: |
[elpa] externals/doc-toc 1602e353b0 49/84: Improve parsing djvu outline (prin1-to-string) |
Date: |
Mon, 26 Sep 2022 13:58:37 -0400 (EDT) |
branch: externals/doc-toc
commit 1602e353b06e95172e8a67c2f132e80a6f8e67cf
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>
Improve parsing djvu outline (prin1-to-string)
---
toc-mode.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/toc-mode.el b/toc-mode.el
index e5f15c3d62..3ce807deb5 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -590,6 +590,7 @@ to `pdfoutline' shell command."
;;; djvu parse tablist to outline
(defun toc--tablist-to-djvused ()
"Parse and prepare djvused outline source form tablist."
+ (interactive)
(let ((source-buffer doc-buffer)
(buff (get-buffer-create
(concat
@@ -607,11 +608,11 @@ to `pdfoutline' shell command."
(if level-next
(with-current-buffer buff
(cond ((= level-next level-current)
- (insert (format "(\"%s\" \"%s\") " (car sexp) (nth 1
sexp))))
+ (insert (format "(%s \"%s\") " (prin1-to-string (car
sexp)) (nth 1 sexp))))
((> level-next level-current)
- (insert (format "(\"%s\" \"%s\" " (car sexp) (nth 1
sexp))))
+ (insert (format "(%s \"%s\" " (prin1-to-string (car
sexp)) (nth 1 sexp))))
((< level-next level-current)
- (insert (format "(\"%s\" \"%s\")" (car sexp) (nth 1
sexp)))
+ (insert (format "(%s \"%s\")" (prin1-to-string (car
sexp)) (nth 1 sexp)))
(let ((level-diff (- level-current level-next)))
(while (> level-diff 0)
(insert ") ")
- [elpa] externals/doc-toc e6e20d2d65 20/84: Implement shift all remaining numbers and follow/preview, (continued)
- [elpa] externals/doc-toc e6e20d2d65 20/84: Implement shift all remaining numbers and follow/preview, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a341a6eddc 21/84: Add autoload magic comments and file-header, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 4c49867186 27/84: Fix TOC-tabular mode name and add page-scroll keybinding, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 31611d6e9f 30/84: Update LICENSE, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 8f14a2928e 31/84: Prepare package for publishing on MELPA, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a510f530cb 33/84: Merge branch 'master' of github.com:dalanicolai/toc-mode, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 6eafd64b9e 38/84: Add # to tell compiler about function reference (for MELPA), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc c39306dad7 41/84: Fix docstrings with checkdoc (for MELPA), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc e52b2d8ee3 44/84: Improve some (add-to-document) docstrings, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 7a436b0ca3 46/84: Remove info about limited level deepness for djvu, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 1602e353b0 49/84: Improve parsing djvu outline (prin1-to-string),
ELPA Syncer <=
- [elpa] externals/doc-toc a11b2caa88 51/84: Add paypal donate link, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 7e50cc20d0 53/84: Implement extract-only, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 10b254ef2c 58/84: Fix auto pagenumber contents OCR, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 8c2cb1283d 60/84: Add info about pdf.tocgen alternative, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc dc5be6442f 66/84: Add jump-by-level to toc-tabular-mode, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 06de33f511 70/84: Fix pdf-view-current-page macro not function, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a0018b8a63 71/84: Add replace fields in toc-tabular-mode feature, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc f2ea7db226 68/84: Fix all checkdoc warnings, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 487177a81b 73/84: Update package description, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 36fe728f38 72/84: Make tesseract psm code configurable via universal arg, ELPA Syncer, 2022/09/26