diff options
| author | Ted Zlatanov | 2011-10-31 22:55:39 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-10-31 22:55:39 +0000 |
| commit | 37dcccdd20fb23eaf947fd51787da84f6f18e425 (patch) | |
| tree | b7a6e24d98b66454663d5042ea603a2656b9176c | |
| parent | 57dda3bb50e1b59187de09319ac5f77310b54c58 (diff) | |
| download | emacs-37dcccdd20fb23eaf947fd51787da84f6f18e425.tar.gz emacs-37dcccdd20fb23eaf947fd51787da84f6f18e425.zip | |
gnus-bound-and-true-dumper-p to fix XEmacs build.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnir.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnmairix.el | 2 |
4 files changed, 11 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index ef92bcef151..a208ccefd4c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2011-10-31 Teodor Zlatanov <tzz@lifelogs.com> | 1 | 2011-10-31 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 2 | ||
| 3 | * gnus-util.el (gnus-bound-and-true-dumber-p): Define new, slower, dumb | ||
| 4 | function because `gnus-bound-and-true-p' doesn't work well in XEmacs | ||
| 5 | for reasons unknown. | ||
| 6 | * nnir.el: Use it. | ||
| 7 | * nnmairix.el: Use it. | ||
| 8 | |||
| 3 | * nnregistry.el: Remove unnecessary `gnus-registry-enabled' defvar. | 9 | * nnregistry.el: Remove unnecessary `gnus-registry-enabled' defvar. |
| 4 | * nnir.el: Ditto. | 10 | * nnir.el: Ditto. |
| 5 | * nnmairix.el: Ditto. | 11 | * nnmairix.el: Ditto. |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 9c5e6e8312b..71ed50591ad 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1994,6 +1994,9 @@ definitions to shadow the loaded ones for use in file byte-compilation." | |||
| 1994 | "Return the value of symbol VAR if it is bound, else nil." | 1994 | "Return the value of symbol VAR if it is bound, else nil." |
| 1995 | `(and (boundp (quote ,var)) ,var)))) | 1995 | `(and (boundp (quote ,var)) ,var)))) |
| 1996 | 1996 | ||
| 1997 | (defun gnus-bound-and-true-dumber-p (sym) | ||
| 1998 | (and (boundp sym) (symbol-value sym))) | ||
| 1999 | |||
| 1997 | (provide 'gnus-util) | 2000 | (provide 'gnus-util) |
| 1998 | 2001 | ||
| 1999 | ;;; gnus-util.el ends here | 2002 | ;;; gnus-util.el ends here |
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index 13ad497b574..7087f8dba96 100644 --- a/lisp/gnus/nnir.el +++ b/lisp/gnus/nnir.el | |||
| @@ -1739,7 +1739,7 @@ environment unless `not-global' is non-nil." | |||
| 1739 | (when (eq (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nnir) | 1739 | (when (eq (car (gnus-find-method-for-group gnus-newsgroup-name)) 'nnir) |
| 1740 | (setq gnus-summary-line-format | 1740 | (setq gnus-summary-line-format |
| 1741 | (or nnir-summary-line-format gnus-summary-line-format)) | 1741 | (or nnir-summary-line-format gnus-summary-line-format)) |
| 1742 | (when (gnus-bound-and-true-p gnus-registry-enabled) | 1742 | (when (gnus-bound-and-true-dumber-p 'gnus-registry-enabled) |
| 1743 | (remove-hook 'gnus-summary-article-delete-hook 'gnus-registry-action t) | 1743 | (remove-hook 'gnus-summary-article-delete-hook 'gnus-registry-action t) |
| 1744 | (remove-hook 'gnus-summary-article-move-hook 'gnus-registry-action t) | 1744 | (remove-hook 'gnus-summary-article-move-hook 'gnus-registry-action t) |
| 1745 | (remove-hook 'gnus-summary-article-expire-hook 'gnus-registry-action t) | 1745 | (remove-hook 'gnus-summary-article-expire-hook 'gnus-registry-action t) |
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el index 74aea562fbb..0e58af73666 100644 --- a/lisp/gnus/nnmairix.el +++ b/lisp/gnus/nnmairix.el | |||
| @@ -1635,7 +1635,7 @@ search in raw mode." | |||
| 1635 | 1635 | ||
| 1636 | (defun nnmairix-determine-original-group-from-registry (mid) | 1636 | (defun nnmairix-determine-original-group-from-registry (mid) |
| 1637 | "Try to determinale original group for message-id MID from the registry." | 1637 | "Try to determinale original group for message-id MID from the registry." |
| 1638 | (when (gnus-bound-and-true-p gnus-registry-enabled) | 1638 | (when (gnus-bound-and-true-dumber-p 'gnus-registry-enabled) |
| 1639 | (unless (string-match "^<" mid) | 1639 | (unless (string-match "^<" mid) |
| 1640 | (set mid (concat "<" mid))) | 1640 | (set mid (concat "<" mid))) |
| 1641 | (unless (string-match ">$" mid) | 1641 | (unless (string-match ">$" mid) |