aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/ChangeLog8
-rw-r--r--lisp/gnus/gmm-utils.el22
2 files changed, 16 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7f0f248c7cf..3cba77d4b21 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,10 @@
12006-05-18 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * gmm-utils.el (wid-edit): Require.
4 (defun-gmm): Renamed from `gmm-defun-compat'.
5 (gmm-image-search-load-path): Use it.
6 (gmm-image-load-path-for-library): Use it. Sync with `mh-compat.el'.
7
12006-05-04 Stefan Monnier <monnier@iro.umontreal.ca> 82006-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * mm-decode.el (mm-dissect-buffer): Remove spurious double assignment. 10 * mm-decode.el (mm-dissect-buffer): Remove spurious double assignment.
@@ -4112,6 +4119,7 @@ See ChangeLog.2 for earlier changes.
4112 4119
4113;; Local Variables: 4120;; Local Variables:
4114;; coding: iso-2022-7bit 4121;; coding: iso-2022-7bit
4122;; fill-column: 79
4115;; End: 4123;; End:
4116 4124
4117;;; arch-tag: 3f33a3e7-090d-492b-bedd-02a1417d32b4 4125;;; arch-tag: 3f33a3e7-090d-492b-bedd-02a1417d32b4
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el
index 4db811053ec..f314d0e81d7 100644
--- a/lisp/gnus/gmm-utils.el
+++ b/lisp/gnus/gmm-utils.el
@@ -30,7 +30,7 @@
30 30
31;;; Code: 31;;; Code:
32 32
33;; (require 'wid-edit) 33(require 'wid-edit)
34 34
35(defgroup gmm nil 35(defgroup gmm nil
36 "Utility functions for Gnus, Message and MML" 36 "Utility functions for Gnus, Message and MML"
@@ -279,11 +279,7 @@ DEFAULT-MAP specifies the default key map for ICON-LIST."
279 icon-list)) 279 icon-list))
280 tool-bar-map)) 280 tool-bar-map))
281 281
282;; WARNING: The following is subject to change. Don't rely on it yet. 282(defmacro defun-gmm (name function arg-list &rest body)
283
284;; From MH-E without modifications:
285
286(defmacro gmm-defun-compat (name function arg-list &rest body)
287 "Create function NAME. 283 "Create function NAME.
288If FUNCTION exists, then NAME becomes an alias for FUNCTION. 284If FUNCTION exists, then NAME becomes an alias for FUNCTION.
289Otherwise, create function NAME with ARG-LIST and BODY." 285Otherwise, create function NAME with ARG-LIST and BODY."
@@ -292,21 +288,19 @@ Otherwise, create function NAME with ARG-LIST and BODY."
292 `(defalias ',name ',function) 288 `(defalias ',name ',function)
293 `(defun ,name ,arg-list ,@body)))) 289 `(defun ,name ,arg-list ,@body))))
294 290
295(gmm-defun-compat gmm-image-search-load-path 291(defun-gmm gmm-image-search-load-path
296 image-search-load-path (file &optional path) 292 image-search-load-path (file &optional path)
297 "Emacs 21 and XEmacs don't have `image-search-load-path'. 293 "Emacs 21 and XEmacs don't have `image-search-load-path'.
298This function returns nil on those systems." 294This function returns nil on those systems."
299 nil) 295 nil)
300 296
301;; From MH-E with modifications: 297;; Cf. `mh-image-load-path-for-library' in `mh-compat.el'.
302
303;; Don't use `gmm-defun-compat' until API changes in
304;; `image-load-path-for-library' in Emacs CVS are completed.
305 298
306(defun gmm-image-load-path-for-library (library image &optional path no-error) 299(defun-gmm gmm-image-load-path-for-library
307 "Return a suitable search path for images relative to LIBRARY. 300 image-load-path-for-library (library image &optional path no-error)
301 "Return a suitable search path for images used by LIBRARY.
308 302
309First it searches for IMAGE in `image-load-path' (excluding 303It searches for IMAGE in `image-load-path' (excluding
310\"`data-directory'/images\") and `load-path', followed by a path 304\"`data-directory'/images\") and `load-path', followed by a path
311suitable for LIBRARY, which includes \"../../etc/images\" and 305suitable for LIBRARY, which includes \"../../etc/images\" and
312\"../etc/images\" relative to the library file itself, and then 306\"../etc/images\" relative to the library file itself, and then