diff options
| author | Bill Wohler | 2011-07-03 17:27:22 -0700 |
|---|---|---|
| committer | Bill Wohler | 2011-07-03 17:27:22 -0700 |
| commit | 7895927f81a08a4e898161c5e04d037738a5dd8f (patch) | |
| tree | bcb6e6e3e7fd96ac6088cd58e2b3ebffe11e8827 | |
| parent | 24f75b10464f777a81427237b8f9400139a346c3 (diff) | |
| download | emacs-7895927f81a08a4e898161c5e04d037738a5dd8f.tar.gz emacs-7895927f81a08a4e898161c5e04d037738a5dd8f.zip | |
* mh-compat.el (mh-window-full-height-p): Add compatibility function
for XEmacs.
* mh-show.el (mh-show-msg): Use it, and avoid compiler warning on
XEmacs.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/mh-e/mh-compat.el | 16 |
2 files changed, 21 insertions, 5 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 3b6214b579a..f52a799653d 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2011-07-04 Bill Wohler <wohler@newt.com> | 1 | 2011-07-04 Bill Wohler <wohler@newt.com> |
| 2 | 2 | ||
| 3 | * mh-compat.el (mh-window-full-height-p): Add compatibility | ||
| 4 | function for XEmacs. | ||
| 5 | * mh-show.el (mh-show-msg): Use it, and avoid compiler warning on | ||
| 6 | XEmacs. | ||
| 7 | |||
| 3 | * mh-letter.el (mh-letter-mode-map, mh-letter-complete) | 8 | * mh-letter.el (mh-letter-mode-map, mh-letter-complete) |
| 4 | (mh-complete-word): Remove FIXME comments since these functions | 9 | (mh-complete-word): Remove FIXME comments since these functions |
| 5 | are still needed in other Emacsen. However, they can probably | 10 | are still needed in other Emacsen. However, they can probably |
| @@ -9,8 +14,9 @@ | |||
| 9 | 2011-07-03 Bill Wohler <wohler@newt.com> | 14 | 2011-07-03 Bill Wohler <wohler@newt.com> |
| 10 | 15 | ||
| 11 | * mh-compat.el (mh-test-completion): Add compatibility function | 16 | * mh-compat.el (mh-test-completion): Add compatibility function |
| 12 | for systems without test-completion. | 17 | for XEmacs. |
| 13 | * mh-alias.el (mh-alias-letter-expand-alias): Use it | 18 | * mh-alias.el (mh-alias-letter-expand-alias): Use it, and avoid |
| 19 | compiler warning on XEmacs. | ||
| 14 | 20 | ||
| 15 | * mh-utils.el: | 21 | * mh-utils.el: |
| 16 | * mh-mime.el: Shush XEmacs compiler in mh-do-in-xemacs block. | 22 | * mh-mime.el: Shush XEmacs compiler in mh-do-in-xemacs block. |
diff --git a/lisp/mh-e/mh-compat.el b/lisp/mh-e/mh-compat.el index ff30c15fec4..ae2cbff408f 100644 --- a/lisp/mh-e/mh-compat.el +++ b/lisp/mh-e/mh-compat.el | |||
| @@ -122,6 +122,16 @@ introduced in Emacs 22." | |||
| 122 | "XEmacs does not have `font-lock-add-keywords'. | 122 | "XEmacs does not have `font-lock-add-keywords'. |
| 123 | This function returns nil on that system.") | 123 | This function returns nil on that system.") |
| 124 | 124 | ||
| 125 | (defun-mh mh-window-full-height-p | ||
| 126 | window-full-height-p (&optional WINDOW) | ||
| 127 | "Return non-nil if WINDOW is not the result of a vertical split. | ||
| 128 | This function is defined in XEmacs as it lacks | ||
| 129 | `window-full-height-p'. The values of the functions | ||
| 130 | `window-height' and `frame-height' are compared instead. The | ||
| 131 | argument WINDOW is ignored." | ||
| 132 | (= (1+ (window-height)) | ||
| 133 | (frame-height))) | ||
| 134 | |||
| 125 | (defun-mh mh-image-load-path-for-library | 135 | (defun-mh mh-image-load-path-for-library |
| 126 | image-load-path-for-library (library image &optional path no-error) | 136 | image-load-path-for-library (library image &optional path no-error) |
| 127 | "Return a suitable search path for images used by LIBRARY. | 137 | "Return a suitable search path for images used by LIBRARY. |
| @@ -262,9 +272,9 @@ The arguments FIXEDCASE, SUBEXP, and START, used by | |||
| 262 | 272 | ||
| 263 | (defun-mh mh-test-completion | 273 | (defun-mh mh-test-completion |
| 264 | test-completion (string collection &optional predicate) | 274 | test-completion (string collection &optional predicate) |
| 265 | "XEmacs does not have `test-completion'. | 275 | "Return non-nil if STRING is a valid completion. |
| 266 | This function returns nil on that system." | 276 | XEmacs does not have `test-completion'. This function returns nil |
| 267 | nil) | 277 | on that system." nil) |
| 268 | 278 | ||
| 269 | ;; Copy of constant from url-util.el in Emacs 22; needed by Emacs 21. | 279 | ;; Copy of constant from url-util.el in Emacs 22; needed by Emacs 21. |
| 270 | (if (not (boundp 'url-unreserved-chars)) | 280 | (if (not (boundp 'url-unreserved-chars)) |