diff options
| author | Katsumi Yamaoka | 2010-09-03 02:29:03 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-03 02:29:03 +0000 |
| commit | 73137971949d98417140a39450c8154101ebfe87 (patch) | |
| tree | 8ee85d0713571473997d52b59c6b3d27b4a263fd | |
| parent | 3fb8f8a102613a524050c29814155cad8c494550 (diff) | |
| download | emacs-73137971949d98417140a39450c8154101ebfe87.tar.gz emacs-73137971949d98417140a39450c8154101ebfe87.zip | |
Make gnus-html work for XEmacs.
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 8 |
3 files changed, 14 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 2ce91eedc3e..55b59c8d6bc 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-09-03 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2010-09-03 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 2 | ||
| 3 | * gnus-html.el (gnus-html-put-image): Use gnus-graphic-display-p, | ||
| 4 | glyph-width and glyph-height instead of display-graphic-p and | ||
| 5 | image-size for XEmacs. | ||
| 6 | |||
| 7 | * gnus-util.el (gnus-graphic-display-p): Use device-on-window-system-p | ||
| 8 | for XEmacs. | ||
| 9 | |||
| 3 | * gnus-ems.el (gnus-set-process-plist, gnus-process-plist): Change name | 10 | * gnus-ems.el (gnus-set-process-plist, gnus-process-plist): Change name |
| 4 | of symbol that holds plist data. | 11 | of symbol that holds plist data. |
| 5 | (gnus-process-plist): Remove plist of process after getting it. | 12 | (gnus-process-plist): Remove plist of process after getting it. |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 711cd3810d4..399676f0600 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -242,11 +242,13 @@ fit these criteria." | |||
| 242 | (gnus-html-schedule-image-fetching buffer images))))) | 242 | (gnus-html-schedule-image-fetching buffer images))))) |
| 243 | 243 | ||
| 244 | (defun gnus-html-put-image (file point string) | 244 | (defun gnus-html-put-image (file point string) |
| 245 | (when (display-graphic-p) | 245 | (when (gnus-graphic-display-p) |
| 246 | (let* ((image (ignore-errors | 246 | (let* ((image (ignore-errors |
| 247 | (gnus-create-image file))) | 247 | (gnus-create-image file))) |
| 248 | (size (and image | 248 | (size (and image |
| 249 | (image-size image t)))) | 249 | (if (featurep 'xemacs) |
| 250 | (cons (glyph-width image) (glyph-height image)) | ||
| 251 | (image-size image t))))) | ||
| 250 | (save-excursion | 252 | (save-excursion |
| 251 | (goto-char point) | 253 | (goto-char point) |
| 252 | (if (and image | 254 | (if (and image |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 417cf6cdf84..7cdb70a3580 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1580,11 +1580,9 @@ SPEC is a predicate specifier that contains stuff like `or', `and', | |||
| 1580 | (car (symbol-value history)))) | 1580 | (car (symbol-value history)))) |
| 1581 | 1581 | ||
| 1582 | (defun gnus-graphic-display-p () | 1582 | (defun gnus-graphic-display-p () |
| 1583 | (or (and (fboundp 'display-graphic-p) | 1583 | (if (featurep 'xemacs) |
| 1584 | (display-graphic-p)) | 1584 | (device-on-window-system-p) |
| 1585 | ;;;!!!This is bogus. Fixme! | 1585 | (display-graphic-p))) |
| 1586 | (and (featurep 'xemacs) | ||
| 1587 | t))) | ||
| 1588 | 1586 | ||
| 1589 | (put 'gnus-parse-without-error 'lisp-indent-function 0) | 1587 | (put 'gnus-parse-without-error 'lisp-indent-function 0) |
| 1590 | (put 'gnus-parse-without-error 'edebug-form-spec '(body)) | 1588 | (put 'gnus-parse-without-error 'edebug-form-spec '(body)) |