[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24378: [PATCH 5/6] Don’t allocate char-table’s extra slots in regexp
From: |
Michal Nazarewicz |
Subject: |
bug#24378: [PATCH 5/6] Don’t allocate char-table’s extra slots in regexp-out-charset |
Date: |
Tue, 6 Sep 2016 15:31:33 +0200 |
* 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 @@ regexp-opt-charset
;; 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 ""))
--
2.8.0.rc3.226.g39d4020
bug#24378: [PATCH 5/6] Don’t allocate char-table’s extra slots in regexp-out-charset,
Michal Nazarewicz <=
bug#24378: [PATCH 3/6] Replace decimalnump with alphanumericp, Michal Nazarewicz, 2016/09/06
bug#24378: [PATCH 2/6] Remove inaccurate comment in regex.c, Michal Nazarewicz, 2016/09/06
bug#24378: [PATCH 4/6] Remove dead loop iterations in regex.c, Michal Nazarewicz, 2016/09/06
bug#24378: [PATCH 1/6] Don’t use FETCH_MULTIBYTE_CHAR when advancing index, Eli Zaretskii, 2016/09/06
bug#24378: [PATCH] Remove obsolete comment from FETCH_MULTIBYTE_CHAR documentation, Michal Nazarewicz, 2016/09/06
bug#24378: [PATCH 0/6] Small fixes and improvements, Michal Nazarewicz, 2016/09/09