[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/doc-toc 06de33f511 70/84: Fix pdf-view-current-page mac
From: |
ELPA Syncer |
Subject: |
[elpa] externals/doc-toc 06de33f511 70/84: Fix pdf-view-current-page macro not function |
Date: |
Mon, 26 Sep 2022 13:58:39 -0400 (EDT) |
branch: externals/doc-toc
commit 06de33f5113c8ce136e08f1ff9852abad7677bac
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>
Fix pdf-view-current-page macro not function
---
toc-mode.el | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/toc-mode.el b/toc-mode.el
index 08adc9b4f7..eae96dc5fa 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -269,7 +269,7 @@ document's directory. You will be prompted to enter the
LEVEL
number. The highest level should have number 1, the next leve
number 2 etc."
(interactive "nWhich level you are setting (number): ")
- (let* ((page (pdf-view-current-page))
+ (let* ((page (eval (pdf-view-current-page)))
(filename (url-filename (url-generic-parse-url buffer-file-name)))
(pdfxmeta-result (shell-command
(format "pdfxmeta --auto %s --page %s '%s' \"%s\"
>> recipe.toml"
@@ -978,6 +978,33 @@ The text of the current buffer is passed as source input
to either the
(cond ((string= ".pdf" ext) (toc--add-to-pdf))
((string= ".djvu" ext) (toc--add-to-djvu)))))
+(defun toc--source-to-handyoutliner ()
+ " "
+ (interactive)
+ (goto-char (point-min))
+ (while (not (eobp))
+ (let ((num (thing-at-point 'number)))
+ (delete-char 2)
+ (dotimes (_x num) (insert "\t"))
+ (re-search-forward "[0-9]+")
+ (let ((page (match-string 0)))
+ (replace-match "")
+ (delete-char 1)
+ (move-end-of-line 1)
+ (insert " ")
+ (insert page)
+ (forward-line)))
+ ))
+ ;; (goto-char (point-min))
+ ;; (while (not (eobp))
+ ;; (re-search-forward "[0-9]+")
+ ;; (let ((page (match-string 0)))
+ ;; (replace-match "")
+ ;; (delete-char 1)
+ ;; (move-end-of-line 1)
+ ;; (insert " ")
+ ;; (insert page)
+ ;; (forward-line))))
(provide 'toc-mode)
- [elpa] externals/doc-toc 6eafd64b9e 38/84: Add # to tell compiler about function reference (for MELPA), (continued)
- [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, 2022/09/26
- [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 <=
- [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
- [elpa] externals/doc-toc d5629c7165 75/84: Update djvu ocr to djvu3.el (create ppm instead of svg), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a259f4cc65 77/84: Correct docstring position, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 0671d11654 78/84: Merge pull request #8 from syohex/docstring, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc cf6b12ca35 79/84: Fix #10: prevent pdf-filename become nil, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc b4bb748aa3 84/84: Fix README (remove repeated section), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 0c9a7a484f 09/84: Update README with link to djvulibre website, ELPA Syncer, 2022/09/26