1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-25 07:40:40 -07:00
emacs/etc
F. Jason Park 9906e34f97 Crystallize erc-nicks-track-faces behavior
* etc/ERC-NEWS: Mention changes to `erc-track-faces-normal-list' and
`erc-track-faces-priority-list'.  Also mention new choice variant for
option `erc-nicks-track-faces', although that's arguably just a bug fix
because it makes good on previously unrealized behavior implied by the
doc strings.
* lisp/erc/erc-nicks.el (erc-nicks-skip-faces): Remove faces applied by
the `match' module, namely, `erc-current-nick-face', `erc-pal-face', and
`erc-fool-face'.  That module runs its hooks after `button' on
`erc-insert-modify-hook', and because `nicks' piggybacks on `button', it
can never encounter those faces while assaying.
(erc-nicks-track-faces): Update doc, and introduce new `t' value choice.
(erc-nicks-mode, erc-nicks-disable): Update removals from
`erc-track--alt-normals-function' to reflect recent renamings.
(erc-nicks--reject-uninterned-faces): Use helper.
(erc-nicks--oursp, erc-nicks--ours-p): Rename former to latter to
respect project style guidelines regarding predicates.
(erc-nicks-track-normal-max-rank): New variable.
(erc-nicks--check-normals, erc-nicks--assess-track-faces): Rename former
to latter, and change purpose to checking for "normals" membership,
ranks position, and incumbent face ownership.  Remove unused CONTENDERS
parameter.  Additionally, change behavior to consider replacing the
current mode-line face when it's not `nicks' owned if it's explicitly
ranked lower than `erc-default-face'.
(erc-nicks--track-prioritize, erc-nicks--track-always): New
complementary functions implementing the t and `prioritize' variants of
`erc-nicks-track-faces'.  Both make use of the factored-out
`erc-nicks--check-normals' logic.
(erc-nicks--setup-track-integration): Add `erc-nicks--track-always' to
`erc-track--alt-normals-function' when `erc-track-normal-faces' is t.
* lisp/erc/erc-track.el (erc-track--massage-nick-button-faces): Change
type of symbol property `erc-track--obsolete-faces' for options
`erc-track-faces-priority-list' and friends from a boolean to an alist.
(erc-track-faces-priority-list): Add new face for buttonized speakers.
(erc-track-faces-normal-list): Add new face for buttonized speakers.
Also add `erc-notice-face'.
(erc-track--priority-faces): New local variable to cache ranked faces
and complement `erc-track--normal-faces'.
(erc-track--setup): Initialize new `erc-track--priority-faces' variable,
and refactor.
(erc-track--alt-normals-function): Doc.
(erc-track--select-mode-line-face): Update expected type of `ranks'
parameter.
(erc-track-modified-channels): Fix wrong-type bug occurring when
`erc-track-ignore-normal-contenders-p' and
`erc-track-priority-faces-only' are both non-nil.  Also fix subtle
compatibility oversight regarding an empty face list returned by
`erc-track--collect-faces-in'.
* test/lisp/erc/erc-nicks-tests.el: Load helpers and fixtures library.
(erc-nicks-tests--track-faces): New function.
(erc-nicks-track-faces/prioritize, erc-nicks-track-faces/defer)
(erc-nicks-track-faces/nil, erc-nicks-track-faces/t): New tests.
* test/lisp/erc/erc-track-tests.el
(erc-track-tests--select-mode-line-face): Update expected type of mocked
parameter.
(erc-track-tests--modified-channels/baseline): New function.
(erc-track-modified-channels/baseline)
(erc-track-modified-channels/baseline/mention)
(erc-track-modified-channels/baseline/ignore)
(erc-track-modified-channels/baseline/mention/ignore)
(erc-track-modified-channels/priority-only-all/baseline)
(erc-track-modified-channels/priority-only-all/sans-notice): New tests.
* test/lisp/erc/resources/erc-tests-common.el
(erc-tests-common-track-modified-channels)
(erc-tests-common-track-modified-channels-sans-setup): New functions.
(Bug67767)
2024-10-11 16:13:09 -07:00
..
charsets ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
e
forms ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
gnus
images * etc/images/kitchen-sink.xpm: New file. 2024-09-28 12:37:59 +03:00
nxml
org ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
refcards Delete some libraries obsolete since Emacs 24.4/24.5 2024-09-30 03:28:17 +02:00
schema nxml-mode: Add schemas for Mono/.NET related files 2024-05-18 21:36:47 +02:00
srecode ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
themes Remove redundant face specs in manoj-dark theme 2024-10-05 18:31:50 +02:00
tutorials Update FSF's address 2024-09-02 21:02:09 +02:00
AUTHORS ; * etc/AUTHORS: Update. 2024-09-11 21:49:52 +02:00
CALC-NEWS Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
ChangeLog.1 ; Fix typos 2024-07-18 11:46:50 +02:00
compilation.txt Make Compilation mode recognize non-legacy Kotlin/Gradle errors 2024-06-22 11:30:51 +03:00
COPYING
copyright-assign.txt Add assignment form as etc/copyright-assign.txt 2024-06-23 00:24:31 +02:00
DEBUG ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
DEVEL.HUMOR ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
DISTRIB ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
edt-user.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
EGLOT-NEWS Merge from origin/emacs-30 2024-08-25 14:54:03 -04:00
emacs-buffer.gdb ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-mail.desktop
emacs.desktop
emacs.icon
emacs.metainfo.xml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs.service
emacs_lldb.py * etc/emacs_lldb.py (Lisp_Object): Recognise Lisp_Sub_Char_Table 2024-09-09 10:30:02 +02:00
emacsclient-mail.desktop Add 'server-eval-args-left' to server.el 2023-10-29 14:10:23 +02:00
emacsclient.desktop Make emacsclient handle org-protocol:// links 2023-09-18 12:54:22 +02:00
enriched.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ERC-NEWS Crystallize erc-nicks-track-faces behavior 2024-10-11 16:13:09 -07:00
ETAGS.EBNF ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ETAGS.README ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
future-bug
gnus-tut.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
grep.txt ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
HELLO Add support for Tifinagh script 2024-07-26 16:49:11 +03:00
HISTORY Revert "; * etc/HISTORY: Delete never-released Emacs 28.3." 2024-06-22 19:25:35 +02:00
JOKES
MACHINES Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
MH-E-NEWS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS Remove buttons when disabling 'button-mode' 2024-10-11 12:14:42 +02:00
NEWS.1-17 ; Fix typos 2024-07-18 11:46:50 +02:00
NEWS.18 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.19 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.20 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.21 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.22 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.23 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.24 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
NEWS.25 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.26 ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
NEWS.27 ; Delete pre-release remainder in NEWS.27 2024-01-19 00:40:12 +01:00
NEWS.28 ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NEWS.29 ; Reword some "allows Xing" 2024-09-01 11:20:25 +01:00
NEWS.30 Merge from origin/emacs-30 2024-09-28 07:59:16 -04:00
NEXTSTEP ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
NXML-NEWS ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
ORG-NEWS ; * etc/ORG-NEWS: Fix typo. 2024-09-13 09:50:01 +02:00
org.gnu.emacs.defaults.gschema.xml ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
package-keyring.gpg
PROBLEMS ; * etc/PROBLEMS: Fix last change (bug#73207). 2024-09-15 07:55:20 +03:00
ps-prin0.ps ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
ps-prin1.ps ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
publicsuffix.txt Update publicsuffix.txt from upstream 2024-06-23 00:27:02 +02:00
README ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rgb.txt Revert "Update etc/rgb.txt from X.Org upstream" 2023-10-16 08:56:53 +08:00
ses-example.ses ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
spook.lines
symbol-releases.eld Add make-directory to symbol-releases.eld 2024-09-15 14:02:36 +02:00
TERMS ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
TODO * etc/TODO (Native compiler improvements): Add entry. 2024-10-03 13:10:09 +02:00
w32-feature.el ; Fix punctuation in etc/* 2024-07-27 01:51:47 +02:00
yow.lines

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2024 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)