From 6ed9ddf4c8635dbd229a715bd01f7163a3389e31 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Tue, 13 Nov 2018 15:08:17 +0100 Subject: [PATCH] update ox-clip. Signed-off-by: Andreas Gerler --- .../ox-clip-20161106.823/ox-clip-autoloads.el | 22 --- elpa/ox-clip-20161106.823/ox-clip-pkg.el | 2 - .../ox-clip-20180306.340/ox-clip-autoloads.el | 37 ++++ elpa/ox-clip-20180306.340/ox-clip-pkg.el | 2 + .../ox-clip.el | 180 +++++++++++++----- 5 files changed, 167 insertions(+), 76 deletions(-) delete mode 100644 elpa/ox-clip-20161106.823/ox-clip-autoloads.el delete mode 100644 elpa/ox-clip-20161106.823/ox-clip-pkg.el create mode 100644 elpa/ox-clip-20180306.340/ox-clip-autoloads.el create mode 100644 elpa/ox-clip-20180306.340/ox-clip-pkg.el rename elpa/{ox-clip-20161106.823 => ox-clip-20180306.340}/ox-clip.el (69%) diff --git a/elpa/ox-clip-20161106.823/ox-clip-autoloads.el b/elpa/ox-clip-20161106.823/ox-clip-autoloads.el deleted file mode 100644 index 9cfa856c..00000000 --- a/elpa/ox-clip-20161106.823/ox-clip-autoloads.el +++ /dev/null @@ -1,22 +0,0 @@ -;;; ox-clip-autoloads.el --- automatically extracted autoloads -;; -;;; Code: -(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path)))) - -;;;### (autoloads nil "ox-clip" "ox-clip.el" (22627 36399 0 0)) -;;; Generated autoloads from ox-clip.el - -(autoload 'ox-clip-formatted-copy "ox-clip" "\ -Export the selected region to HTML and copy it to the clipboard. -R1 and R2 define the selected region. - -\(fn R1 R2)" t nil) - -;;;*** - -;; Local Variables: -;; version-control: never -;; no-byte-compile: t -;; no-update-autoloads: t -;; End: -;;; ox-clip-autoloads.el ends here diff --git a/elpa/ox-clip-20161106.823/ox-clip-pkg.el b/elpa/ox-clip-20161106.823/ox-clip-pkg.el deleted file mode 100644 index f4e413a1..00000000 --- a/elpa/ox-clip-20161106.823/ox-clip-pkg.el +++ /dev/null @@ -1,2 +0,0 @@ -;;; -*- no-byte-compile: t -*- -(define-package "ox-clip" "20161106.823" "Cross-platform Formatted copy commands for org-mode" '((org "8.2") (htmlize "0")) :url "https://github.com/jkitchin/scimax/ox-clip.el" :keywords '("org-mode")) diff --git a/elpa/ox-clip-20180306.340/ox-clip-autoloads.el b/elpa/ox-clip-20180306.340/ox-clip-autoloads.el new file mode 100644 index 00000000..81f23cac --- /dev/null +++ b/elpa/ox-clip-20180306.340/ox-clip-autoloads.el @@ -0,0 +1,37 @@ +;;; ox-clip-autoloads.el --- automatically extracted autoloads +;; +;;; Code: + +(add-to-list 'load-path (directory-file-name + (or (file-name-directory #$) (car load-path)))) + + +;;;### (autoloads nil "ox-clip" "ox-clip.el" (0 0 0 0)) +;;; Generated autoloads from ox-clip.el + +(autoload 'ox-clip-formatted-copy "ox-clip" "\ +Export the selected region to HTML and copy it to the clipboard. +R1 and R2 define the selected region. + +\(fn R1 R2)" t nil) + +(autoload 'ox-clip-image-to-clipboard "ox-clip" "\ +Copy the image file or latex fragment at point to the clipboard as an image. +SCALE is a numerical +prefix (default=`ox-clip-default-latex-scale') that determines +the size of the latex image. It has no effect on other kinds of +images. Currently only works on Linux. + +\(fn &optional SCALE)" t nil) + +(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "ox-clip" '("ox-clip-"))) + +;;;*** + +;; Local Variables: +;; version-control: never +;; no-byte-compile: t +;; no-update-autoloads: t +;; coding: utf-8 +;; End: +;;; ox-clip-autoloads.el ends here diff --git a/elpa/ox-clip-20180306.340/ox-clip-pkg.el b/elpa/ox-clip-20180306.340/ox-clip-pkg.el new file mode 100644 index 00000000..19511386 --- /dev/null +++ b/elpa/ox-clip-20180306.340/ox-clip-pkg.el @@ -0,0 +1,2 @@ +;;; -*- no-byte-compile: t -*- +(define-package "ox-clip" "20180306.340" "Cross-platform formatted copying for org-mode" '((org "8.2") (htmlize "0")) :commit "594c90953a91948505bb394350adf110e041f19a" :keywords '("org-mode") :authors '(("John Kitchin" . "jkitchin@andrew.cmu.edu")) :maintainer '("John Kitchin" . "jkitchin@andrew.cmu.edu") :url "https://github.com/jkitchin/ox-clip/ox-clip.el") diff --git a/elpa/ox-clip-20161106.823/ox-clip.el b/elpa/ox-clip-20180306.340/ox-clip.el similarity index 69% rename from elpa/ox-clip-20161106.823/ox-clip.el rename to elpa/ox-clip-20180306.340/ox-clip.el index 8e5a04d7..503a1e9e 100644 --- a/elpa/ox-clip-20161106.823/ox-clip.el +++ b/elpa/ox-clip-20180306.340/ox-clip.el @@ -1,11 +1,11 @@ -;;; ox-clip.el --- Cross-platform Formatted copy commands for org-mode +;;; ox-clip.el --- Cross-platform formatted copying for org-mode ;; Copyright(C) 2016 John Kitchin ;; Author: John Kitchin -;; URL: https://github.com/jkitchin/scimax/ox-clip.el -;; Package-Version: 20161106.823 -;; Version: 0.2 +;; URL: https://github.com/jkitchin/ox-clip/ox-clip.el +;; Package-Version: 20180306.340 +;; Version: 0.3 ;; Keywords: org-mode ;; Package-Requires: ((org "8.2") (htmlize "0")) @@ -27,7 +27,7 @@ ;; Boston, MA 02111-1307, USA. ;;; Commentary: -;; +;; ;; This module copies selected regions in org-mode as formatted text on the ;; clipboard that can be pasted into other applications. When not in org-mode, ;; the htmlize library is used instead. @@ -39,10 +39,17 @@ ;; Mac OSX needs textutils and pbcopy, which should be part of the base install. -;; Linux needs a relatively modern xclip. https://github.com/astrand/xclip +;; Linux needs a relatively modern xclip, preferrably a version of at least +;; 0.12. https://github.com/astrand/xclip -;; There is one command: `ox-clip-formatted-copy' that should work across -;; Windows, Mac and Linux. +;; The main command is `ox-clip-formatted-copy' that should work across +;; Windows, Mac and Linux. By default, it copies as html. +;; +;; Note: Images/equations may not copy well in html. Use `ox-clip-image-to-clipboard' to +;; copy the image or latex equation at point to the clipboard as an image. The +;; default latex scale is too small for me, so the default size for this is set +;; to 3 in `ox-clip-default-latex-scale'. This overrides the settings in +;; `org-format-latex-options'. (require 'htmlize) @@ -73,7 +80,6 @@ "Command to copy formatted text on linux." :group 'ox-clip) - (defvar ox-clip-w32-py "#!/usr/bin/env python # Adapted from http://code.activestate.com/recipes/474121-getting-html-from-the-windows-clipboard/ # HtmlClipboard @@ -338,7 +344,7 @@ def DumpHtml(): print(\"GetHtml()=>>>%s<<>>%s<<