[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 4516130 5/6: Don’t allocate char-table’s extra slo
From: |
Michal Nazarewicz |
Subject: |
[Emacs-diffs] master 4516130 5/6: Don’t allocate char-table’s extra slots in regexp-out-charset |
Date: |
Fri, 9 Sep 2016 16:32:58 +0000 (UTC) |
branch: master
commit 4516130d5a4bec47e86bdf560a1375740b6bb110
Author: Michal Nazarewicz <address@hidden>
Commit: Michal Nazarewicz <address@hidden>
Don’t allocate char-table’s extra slots in regexp-out-charset
* lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Do not use
'case-table as charmap char-table’s property. The function has nothing
to do with casing and in addition using 'case-table causes unnecessary
extra slots to be allocated which ‘regexp-opt-charset’ does not use.
---
lisp/emacs-lisp/regexp-opt.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index b1e132a..cf66530 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -236,7 +236,7 @@ CHARS should be a list of characters."
;; The basic idea is to find character ranges. Also we take care in the
;; position of character set meta characters in the character set regexp.
;;
- (let* ((charmap (make-char-table 'case-table))
+ (let* ((charmap (make-char-table 'regexp-opt-charset))
(start -1) (end -2)
(charset "")
(bracket "") (dash "") (caret ""))
- [Emacs-diffs] master updated (e951aa1 -> 8634efa), Michal Nazarewicz, 2016/09/09
- [Emacs-diffs] master 4516130 5/6: Don’t allocate char-table’s extra slots in regexp-out-charset,
Michal Nazarewicz <=
- [Emacs-diffs] master 3ffc5f4 1/6: STRING_CHAR does not unify characters; update documentation, Michal Nazarewicz, 2016/09/09
- [Emacs-diffs] master 8634efa 6/6: Split regex character class test into smaller chunks, Michal Nazarewicz, 2016/09/09
- [Emacs-diffs] master 0e7eb64 4/6: Remove dead loop iterations in regex.c, Michal Nazarewicz, 2016/09/09
- [Emacs-diffs] master c579b28 3/6: Replace decimalnump with alphanumericp, Michal Nazarewicz, 2016/09/09
- [Emacs-diffs] master b1c4c00 2/6: Remove inaccurate comment in regex.c, Michal Nazarewicz, 2016/09/09