[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/doc-toc 2ec9515f0d 81/84: Apply patch S. Monnier
From: |
ELPA Syncer |
Subject: |
[elpa] externals/doc-toc 2ec9515f0d 81/84: Apply patch S. Monnier |
Date: |
Mon, 26 Sep 2022 13:58:40 -0400 (EDT) |
branch: externals/doc-toc
commit 2ec9515f0d129b56e8efb9f027fdfa74d07c1358
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>
Apply patch S. Monnier
---
toc-mode.el | 34 ++++++++++++++++------------------
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/toc-mode.el b/toc-mode.el
index 11a70566fd..6db97a60e7 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -1,5 +1,6 @@
;;; toc-mode.el --- Manage outlines/table of contents of pdf and djvu
documents -*- lexical-binding: t; -*-
-;; Copyright (C) 2020 Daniel Laurens Nicolai
+
+;; Copyright (C) 2022 Free Software Foundation, Inc.
;; Author: Daniel Laurens Nicolai <dalanicolai@gmail.com>
;; Version: 0
@@ -235,13 +236,11 @@
(defcustom toc-replace-original-file t
"For PDF include TOC and replace old PDF file.
For DJVU the old DJVU file is replaced by default"
- :type 'boolean
- :group 'toc)
+ :type 'boolean)
(defcustom toc-destination-file-name "pdfwithtoc.pdf"
"Filename for new PDF if `toc-replace-original-file' is nil."
- :type 'file
- :group 'toc)
+ :type 'file)
(defcustom toc-ocr-languages nil
"Languages used for extraction with ocr.
@@ -249,21 +248,18 @@ Should be one or multiple language codes as recognized
by tesseract -l flag, e.g. eng or eng+nld. Use
\\[execute-extended-command] `toc-list-languages' to list the
available languages."
- :type 'string
- :group 'toc)
+ :type 'string)
(defcustom toc-handyoutliner-path nil
"Path to handyoutliner executable.
String (i.e. surround with double quotes). See
URL`http://handyoutlinerfo.sourceforge.net/'."
- :type 'file
- :group 'toc)
+ :type 'file)
(defcustom toc-file-browser-command nil
"Command to open file browser.
String (i.e. surround with double quotes)."
- :type 'file
- :group 'toc)
+ :type 'file)
;;;; pdf.tocgen
;;;###autoload
@@ -560,7 +556,7 @@ unprocessed text."
;; nil
;; (number-to-string page)
;; (image-property djvu-doc-image :data))))))
- (apply 'call-process
+ (apply #'call-process
(append (list "tesseract" nil (list buffer nil) nil file)
args))
(setq page (1+ page))))
@@ -620,26 +616,28 @@ Prompt for startpage and endpage and print OCR output to
new buffer."
nil
(number-to-string page)
(image-property djvu-doc-image
:data))))))
- (apply 'call-process
+ (apply #'call-process
(append (list "tesseract" nil (list buffer nil) nil file)
args))
(setq page (1+ page))))
(switch-to-buffer buffer)))))
(defun toc--create-tablist-buffer ()
- "Create tablist buffer, from cleaned up Table of Contents buffer, for easy
page number adjustment."
+ "Create tablist buffer, from cleaned up Table of Contents buffer.
+The tablist buffer provides features for easy page number
+adjustment."
(interactive)
(toc--list doc-buffer))
;;;; toc major modes
(when (require 'pdf-tools nil t)
- (define-key pdf-view-mode-map (kbd "C-c C-e") 'toc-extract-pages)
- (define-key pdf-view-mode-map (kbd "C-c e") 'toc-extract-pages-ocr))
+ (define-key pdf-view-mode-map (kbd "C-c C-e") #'toc-extract-pages)
+ (define-key pdf-view-mode-map (kbd "C-c e") #'toc-extract-pages-ocr))
(when (require 'djvu nil t)
- (define-key djvu-read-mode-map (kbd "C-c C-e") 'toc-extract-pages)
- (define-key djvu-read-mode-map (kbd "C-c e") 'toc-extract-pages-ocr))
+ (define-key djvu-read-mode-map (kbd "C-c C-e") #'toc-extract-pages)
+ (define-key djvu-read-mode-map (kbd "C-c e") #'toc-extract-pages-ocr))
(defvar toc-cleanup-mode-map
(let ((map (make-sparse-keymap)))
- [elpa] externals/doc-toc 97c0ce5c40 19/84: Implement from tabular jump to/scroll page for djvu, (continued)
- [elpa] externals/doc-toc 97c0ce5c40 19/84: Implement from tabular jump to/scroll page for djvu, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 2b6045b0a3 22/84: minor additions i.e. autoload comment and docstrings, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc dda3491299 34/84: Fix djvu parse tablist to djvused algorithm, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc e84c00c923 45/84: Fix/remove ask for path before add TOC djvu, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc eb8c6a0c00 56/84: Fix seq and cl compiler warnings, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 05b6d034aa 59/84: Fix djvu/pdf hard dependency (github issue #3), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 8d4817a543 62/84: Fix org-noter conflict (github #4), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a14dbb4c25 67/84: Fix beginning-of-buffer compilation warning, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 102e14199c 65/84: pdf.tocgen replace original pdf, and show message on fail, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 4c9ce0f54d 76/84: Fix: eval-when-compile pdf-tools, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 2ec9515f0d 81/84: Apply patch S. Monnier,
ELPA Syncer <=
- [elpa] externals/doc-toc ca80abf2f8 83/84: Update name to doc-toc (i.e. make doc-tools extension), ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 3d286633a9 11/84: Update README, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 3acf45b0f7 18/84: Implement C-c C-c functionality also for djvu, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 74c68f0cda 24/84: Update README.org, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc f8fbca0c41 23/84: README add features and keybindings, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc f643745b06 32/84: Set windows encoding for djvu, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc c521029525 36/84: Change (beginning-og-buffer) to (goto-char (point-min)) for MELPA, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc a1d26eceb5 37/84: Add defvar and declare-function to avoid warning MELPA, ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc 05cd1287f1 42/84: Fix toc--add-to-djvu. Don't ask save location., ELPA Syncer, 2022/09/26
- [elpa] externals/doc-toc f430243a88 43/84: Add version: 0 header, ELPA Syncer, 2022/09/26