diff options
| author | Paul Eggert | 2019-03-27 11:36:13 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-03-27 11:37:47 -0700 |
| commit | 92acab73e0dd3921b53eac4f3fba327b7aa4d3aa (patch) | |
| tree | d853281b0ef547f99b74994bb70caecac9a3f778 /lisp/erc | |
| parent | a35a1f6a9406bc98b4ab83489e5dc7843ffacfb6 (diff) | |
| download | emacs-92acab73e0dd3921b53eac4f3fba327b7aa4d3aa.tar.gz emacs-92acab73e0dd3921b53eac4f3fba327b7aa4d3aa.zip | |
Use regexp-opt-charset to improve regexp tweaks
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
Reword confusing sentence in doc string.
* lisp/erc/erc.el (erc-lurker-maybe-trim):
* lisp/mail/footnote.el (footnote-hebrew-numeric-regex):
Improve by using regexp-opt-charset.
Diffstat (limited to 'lisp/erc')
| -rw-r--r-- | lisp/erc/erc.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index e34487de273..d1fa5c7f120 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -67,7 +67,6 @@ | |||
| 67 | (load "erc-loaddefs" nil t) | 67 | (load "erc-loaddefs" nil t) |
| 68 | 68 | ||
| 69 | (eval-when-compile (require 'cl-lib)) | 69 | (eval-when-compile (require 'cl-lib)) |
| 70 | (require 'cl-seq) | ||
| 71 | (require 'font-lock) | 70 | (require 'font-lock) |
| 72 | (require 'pp) | 71 | (require 'pp) |
| 73 | (require 'thingatpt) | 72 | (require 'thingatpt) |
| @@ -2523,8 +2522,7 @@ Returns NICK unmodified unless `erc-lurker-trim-nicks' is | |||
| 2523 | non-nil." | 2522 | non-nil." |
| 2524 | (if erc-lurker-trim-nicks | 2523 | (if erc-lurker-trim-nicks |
| 2525 | (replace-regexp-in-string | 2524 | (replace-regexp-in-string |
| 2526 | (regexp-opt (cl-delete-duplicates | 2525 | (regexp-opt-charset (string-to-list erc-lurker-ignore-chars)) |
| 2527 | (mapcar #'char-to-string erc-lurker-ignore-chars))) | ||
| 2528 | "" nick) | 2526 | "" nick) |
| 2529 | nick)) | 2527 | nick)) |
| 2530 | 2528 | ||