diff options
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/erc.texi | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/misc/erc.texi b/doc/misc/erc.texi index 6d7785a9b54..3297d8b17f0 100644 --- a/doc/misc/erc.texi +++ b/doc/misc/erc.texi | |||
| @@ -1803,10 +1803,11 @@ Observe that ERC supplies the names of buffer-display options as | |||
| 1803 | the symbols @samp{erc-tls} or @samp{url}, the full lineup of which are | 1803 | the symbols @samp{erc-tls} or @samp{url}, the full lineup of which are |
| 1804 | listed below. | 1804 | listed below. |
| 1805 | 1805 | ||
| 1806 | In this second example, the user writes three predicates that somewhat | 1806 | In this second example, for Emacs 29 and above, the user writes three |
| 1807 | resemble the ``@code{display-buffer}-like'' function above. These too | 1807 | predicates that somewhat resemble the ``@code{display-buffer}-like'' |
| 1808 | look for @var{action} alist keys sharing the names of buffer-display | 1808 | function above. These too look for @var{action} alist keys sharing |
| 1809 | options (and, in one case, a module's minor mode). | 1809 | the names of ERC's buffer-display options (and, in one case, a |
| 1810 | module's minor mode). | ||
| 1810 | 1811 | ||
| 1811 | @lisp | 1812 | @lisp |
| 1812 | (defun my-erc-disp-entry-p (_ action) | 1813 | (defun my-erc-disp-entry-p (_ action) |
| @@ -1821,7 +1822,7 @@ options (and, in one case, a module's minor mode). | |||
| 1821 | 1822 | ||
| 1822 | (defun my-erc-disp-chan-p (_ action) | 1823 | (defun my-erc-disp-chan-p (_ action) |
| 1823 | (or (assq 'erc-autojoin-mode action) | 1824 | (or (assq 'erc-autojoin-mode action) |
| 1824 | (and (memq (cdr (assq 'erc-buffer-display alist)) 'JOIN) | 1825 | (and (eq (cdr (assq 'erc-buffer-display action)) 'JOIN) |
| 1825 | (member (erc-default-target) '("#emacs" "#fsf"))))) | 1826 | (member (erc-default-target) '("#emacs" "#fsf"))))) |
| 1826 | @end lisp | 1827 | @end lisp |
| 1827 | 1828 | ||