diff options
| author | Richard M. Stallman | 2005-07-16 18:07:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-07-16 18:07:59 +0000 |
| commit | 8d25cef7cc5bdab004010e03c494243038d07fb6 (patch) | |
| tree | 86c2bb50123c2b77fa9c5d85b0c2ab6d7c124bf7 | |
| parent | 3892610361dfa9c08564848209823d1fe4c4fbd7 (diff) | |
| download | emacs-8d25cef7cc5bdab004010e03c494243038d07fb6.tar.gz emacs-8d25cef7cc5bdab004010e03c494243038d07fb6.zip | |
(eudc-jump-to-event): Avoid warning.
(eudc-bob-display-jpeg, eudc-bob-can-display-inline-images): Likewise.
| -rw-r--r-- | lisp/net/eudc-bob.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/eudc-bob.el b/lisp/net/eudc-bob.el index a4ad3044f43..6ee8840d3bb 100644 --- a/lisp/net/eudc-bob.el +++ b/lisp/net/eudc-bob.el | |||
| @@ -69,7 +69,7 @@ | |||
| 69 | 69 | ||
| 70 | (defun eudc-jump-to-event (event) | 70 | (defun eudc-jump-to-event (event) |
| 71 | "Jump to the window and point where EVENT occurred." | 71 | "Jump to the window and point where EVENT occurred." |
| 72 | (if eudc-xemacs-p | 72 | (if (fboundp 'event-closest-point) |
| 73 | (goto-char (event-closest-point event)) | 73 | (goto-char (event-closest-point event)) |
| 74 | (set-buffer (window-buffer (posn-window (event-start event)))) | 74 | (set-buffer (window-buffer (posn-window (event-start event)))) |
| 75 | (goto-char (posn-point (event-start event))))) | 75 | (goto-char (posn-point (event-start event))))) |
| @@ -89,7 +89,7 @@ | |||
| 89 | 89 | ||
| 90 | (defun eudc-bob-can-display-inline-images () | 90 | (defun eudc-bob-can-display-inline-images () |
| 91 | "Return non-nil if we can display images inline." | 91 | "Return non-nil if we can display images inline." |
| 92 | (if eudc-xemacs-p | 92 | (if (fboundp 'console-type) |
| 93 | (and (memq (console-type) '(x mswindows)) | 93 | (and (memq (console-type) '(x mswindows)) |
| 94 | (fboundp 'make-glyph)) | 94 | (fboundp 'make-glyph)) |
| 95 | (and (fboundp 'display-graphic-p) | 95 | (and (fboundp 'display-graphic-p) |
| @@ -120,7 +120,7 @@ LABEL." | |||
| 120 | "Display the JPEG DATA at point. | 120 | "Display the JPEG DATA at point. |
| 121 | If INLINE is non-nil, try to inline the image otherwise simply | 121 | If INLINE is non-nil, try to inline the image otherwise simply |
| 122 | display a button." | 122 | display a button." |
| 123 | (cond (eudc-xemacs-p | 123 | (cond ((fboundp 'make-glyph) |
| 124 | (let ((glyph (if (eudc-bob-can-display-inline-images) | 124 | (let ((glyph (if (eudc-bob-can-display-inline-images) |
| 125 | (make-glyph (list (vector 'jpeg :data data) | 125 | (make-glyph (list (vector 'jpeg :data data) |
| 126 | [string :data "[JPEG Picture]"]))))) | 126 | [string :data "[JPEG Picture]"]))))) |