summaryrefslogtreecommitdiff
path: root/elpa/pdf-tools-20200512.1524/pdf-dev.el
diff options
context:
space:
mode:
authorBlendoit <blendoit@gmail.com>2020-08-01 15:24:03 -0700
committerBlendoit <blendoit@gmail.com>2020-08-01 15:24:03 -0700
commite47650852b8aa4da6d0b0cea3b5421955795cc64 (patch)
tree2535f7cc4fa4b5c25bbd46f9523da5944b76e201 /elpa/pdf-tools-20200512.1524/pdf-dev.el
parent374ae3de24187512adddf01a56e5eb52c79db65f (diff)
Definitely /not/ including elpa/, that would be chaos.
Diffstat (limited to 'elpa/pdf-tools-20200512.1524/pdf-dev.el')
-rw-r--r--elpa/pdf-tools-20200512.1524/pdf-dev.el85
1 files changed, 0 insertions, 85 deletions
diff --git a/elpa/pdf-tools-20200512.1524/pdf-dev.el b/elpa/pdf-tools-20200512.1524/pdf-dev.el
deleted file mode 100644
index 7889c14..0000000
--- a/elpa/pdf-tools-20200512.1524/pdf-dev.el
+++ /dev/null
@@ -1,85 +0,0 @@
-;;; pdf-dev.el --- Mother's little development helper -*- lexical-binding: t; -*-
-
-;; Copyright (C) 2015 Andreas Politz
-
-;; Author: Andreas Politz <politza@hochschule-trier.de>
-;; Keywords:
-
-;; This program is free software; you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or
-;; (at your option) any later version.
-
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-;; GNU General Public License for more details.
-
-;; You should have received a copy of the GNU General Public License
-;; along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-;;; Commentary:
-;;
-;; This file is only meant for developers. The entry point is
-;; pdf-dev-minor-mode, which see.
-
-;;; Code:
-
-(defvar pdf-dev-root-directory
- (file-name-directory
- (directory-file-name
- (file-name-directory load-file-name))))
-
-(defun pdf-dev-reload ()
- "Reload lisp files from source."
- (interactive)
- (let ((default-directory (expand-file-name
- "lisp"
- pdf-dev-root-directory))
- loaded)
- (dolist (file (directory-files default-directory nil "\\`pdf-\\w*\\.el\\'"))
- (push file loaded)
- (load-file file))
- (message "Loaded %s" (mapconcat 'identity loaded " "))))
-
-(define-minor-mode pdf-dev-minor-mode
- "Make developing pdf-tools easier.
-
-It does the following:
-
-Quits the server and sets `pdf-info-epdfinfo-program' to
-../server/epdfinfo.
-
-Installs a `compilation-finish-functions' which will restart
-epdfinfo after a successful recompilation.
-
-Sets up `load-path' and reloads all PDF Tools lisp files."
- nil nil nil
- (let ((lisp-dir (expand-file-name "lisp" pdf-dev-root-directory)))
- (setq load-path (remove lisp-dir load-path))
- (cond
- (pdf-dev-minor-mode
- (add-hook 'compilation-finish-functions 'pdf-dev-compilation-finished)
- (add-to-list 'load-path lisp-dir)
- (setq pdf-info-epdfinfo-program
- (expand-file-name
- "epdfinfo"
- (expand-file-name "server" pdf-dev-root-directory)))
- (pdf-info-quit)
- (pdf-dev-reload))
- (t
- (remove-hook 'compilation-finish-functions 'pdf-dev-compilation-finished)))))
-
-(defun pdf-dev-compilation-finished (buffer status)
- (with-current-buffer buffer
- (when (and (equal status "finished\n")
- (file-equal-p
- (expand-file-name "server" pdf-dev-root-directory)
- default-directory))
- (message "Restarting epdfinfo server")
- (pdf-info-quit)
- (let ((pdf-info-restart-process-p t))
- (pdf-info-process-assert-running)))))
-
-(provide 'pdf-dev)
-;;; pdf-dev.el ends here
Copyright 2019--2024 Marius PETER