diff options
| author | Teodor Zlatanov | 2011-11-02 07:28:14 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-11-02 07:28:14 +0000 |
| commit | b7351677d76c88a96ae80f93773a96ff22d29994 (patch) | |
| tree | dd3ab5a690e52bb1437130c909c2fc780b818adf | |
| parent | db22a3c27b078148c26a9f50afca5454a68d37d1 (diff) | |
| download | emacs-b7351677d76c88a96ae80f93773a96ff22d29994.tar.gz emacs-b7351677d76c88a96ae80f93773a96ff22d29994.zip | |
Rename `gnus-bound-and-true-dumber-p' to `gnus-bound-and-true-p'.
| -rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 11 | ||||
| -rw-r--r-- | lisp/gnus/nnir.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnmairix.el | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a208ccefd4c..860ccf45206 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-11-01 Teodor Zlatanov <tzz@lifelogs.com> | ||
| 2 | |||
| 3 | * gnus-util.el (gnus-bound-and-true-p): Remove. | ||
| 4 | (gnus-bound-and-true-dumber-p): Rename to `gnus-bound-and-true-p'. | ||
| 5 | * nnir.el: Use it. | ||
| 6 | * nnmairix.el: Use it. | ||
| 7 | |||
| 1 | 2011-10-31 Teodor Zlatanov <tzz@lifelogs.com> | 8 | 2011-10-31 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 9 | ||
| 3 | * gnus-util.el (gnus-bound-and-true-dumber-p): Define new, slower, dumb | 10 | * gnus-util.el (gnus-bound-and-true-dumber-p): Define new, slower, dumb |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 71ed50591ad..f811c9664af 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1986,15 +1986,8 @@ definitions to shadow the loaded ones for use in file byte-compilation." | |||
| 1986 | (gnus-macroexpand-all expanded environment))) | 1986 | (gnus-macroexpand-all expanded environment))) |
| 1987 | form)))) | 1987 | form)))) |
| 1988 | 1988 | ||
| 1989 | (eval-when-compile | 1989 | ;; simple check, can be a macro but this way, although slow, it's really clear |
| 1990 | ;; This is unnecessary in the compiled version as it is a macro. | 1990 | (defun gnus-bound-and-true-p (sym) |
| 1991 | (if (fboundp 'bound-and-true-p) | ||
| 1992 | (defalias 'gnus-bound-and-true-p 'bound-and-true-p) | ||
| 1993 | (defmacro gnus-bound-and-true-p (var) | ||
| 1994 | "Return the value of symbol VAR if it is bound, else nil." | ||
| 1995 | `(and (boundp (quote ,var)) ,var)))) | ||
| 1996 | |||
| 1997 | (defun gnus-bound-and-true-dumber-p (sym) | ||
| 1998 | (and (boundp sym) (symbol-value sym))) | 1991 | (and (boundp sym) (symbol-value sym))) |
| 1999 | 1992 | ||
| 2000 | (provide 'gnus-util) | 1993 | (provide 'gnus-util) |
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index 7087f8dba96..88fd4fe1ff6 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-dumber-p 'gnus-registry-enabled) | 1742 | (when (gnus-bound-and-true-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 0e58af73666..66ed90be823 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-dumber-p 'gnus-registry-enabled) | 1638 | (when (gnus-bound-and-true-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) |