1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
emacs/etc
F. Jason Park 4c4936fab2
Support local ERC modules in erc-mode buffers
* doc/misc/erc.texi: Mention local modules in Modules chapter.

* etc/ERC-NEWS: Mention changes to `erc-update-modules'.

* lisp/erc/erc.el (erc-migrate-modules): Add some missing mappings.
(erc-modules): When a user removes a module, disable it and kill its
local variable in all ERC buffers.
(erc-update-modules): Move body of `erc-update-modules' to new
internal function.
(erc--update-modules): Add new function, a renamed and slightly
modified version of `erc-update-modules'.  Specifically, change return
value from nil to a list of minor-mode commands for local modules.
Use `custom-variable-p' to detect flavor.
(erc--merge-local-modes): Add helper for finding local modules
already active as minor modes in an ERC buffer.
(erc-open): Replace `erc-update-modules' with `erc--update-modules'.
Defer enabling of local modules via `erc--update-modules' until after
buffer is initialized with other local vars.  Also defer major-mode
hooks so they can detect things like whether the buffer is a server or
target buffer.  Also ensure local module setup code can detect when
`erc-open' was called with a non-nil `erc--server-reconnecting'.

* lisp/erc/erc-common.el (erc--module-name-migrations,
erc--features-to-modules, erc--modules-to-features): Add alists of
old-to-new module names to support module-name migrations.
(erc--assemble-toggle): Add new helper for constructing mode toggles,
like `erc-sasl-enable'.
(define-erc-modules): Defer to `erc--assemble-toggle' to create toggle
commands.
(erc--normalize-module-symbol): Add helper for `erc-migrate-modules'.

* lisp/erc/erc-goodies.el: Require cl-lib.

* test/lisp/erc/erc-tests.el (erc-migrate-modules,
erc--update-modules): Add rudimentary unit tests asserting correct
module-name mappings.
(erc--merge-local-modes): Add test for helper.
(define-erc-module--global, define-erc-module--local): Add tests
asserting module-creation macro.  (Bug#57955.)
2022-11-23 19:56:31 -05:00
..
charsets ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
e Implement alternative sub-buffer support in term.el 2022-01-24 20:02:33 +01:00
forms ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
gnus
images ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
nxml
org ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
refcards Merge from origin/emacs-28 2022-09-05 06:30:32 +02:00
schema ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
srecode ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
themes ; Fix typos 2022-11-20 12:59:39 +01:00
tutorials * etc/tutorials/TUTORIAL.uk: Fix typos. 2022-10-05 22:43:12 +03:00
AUTHORS Merge from origin/emacs-28 2022-09-08 23:35:04 +02:00
CALC-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ChangeLog.1 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
compilation.txt Add test for the gradle-android compilation message pattern 2022-07-11 12:29:12 +02:00
COPYING
DEBUG ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
DEVEL.HUMOR ; * etc/DEVEL.HUMOR: Add a recent joke. 2022-02-11 10:15:20 +02:00
DISTRIB ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
edt-user.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs-buffer.gdb ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs-mail.desktop
emacs.desktop
emacs.icon
emacs.metainfo.xml ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
emacs.service
emacs_lldb.py LLDB support: handle unsorted enum member lists 2022-08-22 11:18:30 +02:00
emacsclient-mail.desktop
emacsclient.desktop
enriched.txt Document 'enriched-toggle-markup' 2022-05-20 15:03:06 +03:00
ERC-NEWS Support local ERC modules in erc-mode buffers 2022-11-23 19:56:31 -05:00
ETAGS.EBNF ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ETAGS.README ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
future-bug
gnus-tut.txt ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
grep.txt ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
HELLO Add support for the Coptic script (bug#58330) 2022-10-08 10:46:48 +03:00
HISTORY Update HISTORY for Emacs 28.2 2022-09-12 02:47:11 +02:00
JOKES
MACHINES Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
MH-E-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
NEWS Add csharp-mode and csharp-ts-mode 2022-11-23 14:02:09 -08:00
NEWS.1-17 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.18 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.19 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.20 (help-fns--first-release): Try and avoid false positives 2022-07-18 22:22:34 -04:00
NEWS.21 ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
NEWS.22 ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
NEWS.23 * etc/NEWS.23: Belatedly announce 'format-spec'. 2022-09-27 15:42:30 +02:00
NEWS.24 ; Fix typos 2022-11-23 05:49:22 +01:00
NEWS.25 ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
NEWS.26 ; Prefer HTTPS to HTTP in many URLs 2022-10-15 13:06:45 +02:00
NEWS.27 ; * etc/NEWS.27, etc/NEWS.28: Fix typos. 2022-11-04 07:05:51 +01:00
NEWS.28 ; Fix typos (prefer US spelling) 2022-11-18 13:06:55 +01:00
NEXTSTEP ; Fix typos 2022-11-20 12:59:39 +01:00
NXML-NEWS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ORG-NEWS ; Fix typos 2022-11-18 16:02:19 +01:00
org.gnu.emacs.defaults.gschema.xml ; Add 2022 to copyright years. 2022-01-01 07:07:15 -05:00
package-keyring.gpg
PROBLEMS Add knob to make `mouse-position' faster on X 2022-11-18 09:09:10 +08:00
ps-prin0.ps ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ps-prin1.ps ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
publicsuffix.txt Update publicsuffix.txt from upstream 2022-11-01 06:00:54 +01:00
README ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
rgb.txt
ses-example.ses ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
spook.lines
TERMS ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
TODO ; Fix typos 2022-11-11 15:52:37 +01:00
w32-feature.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05: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-2022 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)