Skip to content

Commit

Permalink
protect call to substring (with htmlize-version) to deal with short h…
Browse files Browse the repository at this point in the history
…tmlize-version strings
  • Loading branch information
davidswelt committed May 19, 2009
1 parent 0434d28 commit 43b5d8f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions aquamacs/src/site-lisp/macosx/mac-print.el
Expand Up @@ -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."
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 43b5d8f

Please sign in to comment.