aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Nazarewicz2016-09-05 20:01:23 +0200
committerMichal Nazarewicz2016-09-09 03:07:15 +0200
commit4516130d5a4bec47e86bdf560a1375740b6bb110 (patch)
tree3baa5e5cf2c6422506ade7609814fc20063c0e5d
parent0e7eb64076c17b3252249aa2a3ef340ce9f395bb (diff)
downloademacs-4516130d5a4bec47e86bdf560a1375740b6bb110.tar.gz
emacs-4516130d5a4bec47e86bdf560a1375740b6bb110.zip
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.
-rw-r--r--lisp/emacs-lisp/regexp-opt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index b1e132a76e3..cf6653046b5 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."
236 ;; The basic idea is to find character ranges. Also we take care in the 236 ;; The basic idea is to find character ranges. Also we take care in the
237 ;; position of character set meta characters in the character set regexp. 237 ;; position of character set meta characters in the character set regexp.
238 ;; 238 ;;
239 (let* ((charmap (make-char-table 'case-table)) 239 (let* ((charmap (make-char-table 'regexp-opt-charset))
240 (start -1) (end -2) 240 (start -1) (end -2)
241 (charset "") 241 (charset "")
242 (bracket "") (dash "") (caret "")) 242 (bracket "") (dash "") (caret ""))