Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
check 'convert' command is of ImageMagick.
* twittering-mode.el (twittering-convert-program): checks whether
'convert' is a part of ImageMagick. Windows XP has 'convert.exe'
in WINDOWS/system32, which is a partition converter.
  • Loading branch information
hayamiz committed Jan 10, 2010
1 parent bbf4b74 commit d2cd3e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2010-01-10 Yuto Hayamizu <y.hayamizu@gmail.com>

* twittering-mode.el (twittering-convert-program): checks whether
'convert' is a part of ImageMagick. Windows XP has 'convert.exe'
in WINDOWS/system32, which is a partition converter.

2010-01-11 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-status-format): modify the
Expand Down
10 changes: 9 additions & 1 deletion twittering-mode.el
Expand Up @@ -307,7 +307,15 @@ icon mode; otherwise, turn off icon mode."

(defvar twittering-image-stack nil)
(defvar twittering-image-type-cache nil)
(defvar twittering-convert-program (executable-find "convert"))
(defvar twittering-convert-program
(let ((program (executable-find "convert")))
(and program
(with-temp-buffer
(call-process program nil (current-buffer) nil
"--version")
(goto-char (point-min))
(and (search-forward "ImageMagick" nil t)
program)))))
(defvar twittering-convert-fix-size 48)
(defvar twittering-use-convert (not (null (executable-find "convert")))
"*This variable makes a sense only if `twittering-convert-fix-size'
Expand Down

0 comments on commit d2cd3e0

Please sign in to comment.