Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

protect call to substring (with htmlize-version) to deal with short h…

…tmlize-version strings
  • Loading branch information...
commit 43b5d8f748a1e2226da0122989f54ed1791d93c0 1 parent 0434d28
David Reitter authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 aquamacs/src/site-lisp/macosx/mac-print.el
10 aquamacs/src/site-lisp/macosx/mac-print.el
View
@@ -36,6 +36,8 @@
;; Boston, MA 02111-1307, USA.
;; Copyright (C) 2005, 2006, 2009, David Reitter
+
+(require 'aquamacs-macros)
(defcustom mac-print-font-size-scaling-factor 0.5
"The factor by which fonts are rescaled during PDF export and printing."
@@ -174,10 +176,10 @@ in HTML format."
(require 'htmlize)
- (if (string< (substring htmlize-version 0 5) "1.23a")
- (message "Warning - outdated htmlize package installed.
-Remove from your load-path for optimal printing / export results.")
- )
+ (protect
+ (if (string< (substring htmlize-version 0 5) "1.23a")
+ (message "Warning - outdated htmlize package installed.
+Remove from your load-path for optimal printing / export results.")))
(require 'mule) ; for coding-system-get
(let* (
(htmlize-html-major-mode nil)
Please sign in to comment.
Something went wrong with that request. Please try again.