From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.bugs Subject: bug#24378: [PATCH 5/6] =?UTF-8?Q?Don=E2=80=99t?= allocate =?UTF-8?Q?char-table=E2=80=99s?= extra slots in regexp-out-charset Date: Tue, 6 Sep 2016 15:31:33 +0200 Message-ID: <1473168694-13605-5-git-send-email-mina86@mina86.com> References: <1473168498-13194-1-git-send-email-mina86@mina86.com> <1473168694-13605-1-git-send-email-mina86@mina86.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1473169856 24151 195.159.176.226 (6 Sep 2016 13:50:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Sep 2016 13:50:56 +0000 (UTC) To: 24378@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 06 15:50:51 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhGlv-0004wW-Fr for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 15:50:43 +0200 Original-Received: from localhost ([::1]:33565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGlt-0007jU-8j for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2016 09:50:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGTw-0000DS-Fw for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:32:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhGTs-0007Gf-RX for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:32:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhGTs-0007GY-O0 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:32:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bhGTs-0005wD-KI for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2016 09:32:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michal Nazarewicz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2016 13:32:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24378 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24378-submit@debbugs.gnu.org id=B24378.147316871222769 (code B ref 24378); Tue, 06 Sep 2016 13:32:04 +0000 Original-Received: (at 24378) by debbugs.gnu.org; 6 Sep 2016 13:31:52 +0000 Original-Received: from localhost ([127.0.0.1]:51008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhGTf-0005v6-O3 for submit@debbugs.gnu.org; Tue, 06 Sep 2016 09:31:51 -0400 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:35715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhGTe-0005u0-71 for 24378@debbugs.gnu.org; Tue, 06 Sep 2016 09:31:50 -0400 Original-Received: by mail-wm0-f53.google.com with SMTP id i204so34779760wma.0 for <24378@debbugs.gnu.org>; Tue, 06 Sep 2016 06:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zyd4m/jBHjSd/0BgYnM8jlJkn60Hri/JoAFb6KUvXQ4=; b=JKsZ1VJLIDGA+7K1dpK3QTEqrYIexL9PwF1y159Cu7Ic8emsYXc9IDOk/skTBVqohY mPjAPeyOGkai4OQ11aAFTK+9bjc3QH7pqh0qlmlre/VRpMal2L1q/vKIqQs9ijV6yaPc bhug5g9VYGOkVWAiVUC8TcMDVVfCmiqYpE8n5Cn5Vhl+OplimYSwevtmkXz0hapCieuh 2HhxPsyZ/J/n1QzqKJT0TEjJiukqcyMTZfaT+PKLNbzoXCjz5bFDNj4ieN86HwYiYnjB 7g91T0CK72dQ+It6kttYdz4cjmdTKQdtjKJVqzDHyP/jlIj4aEmokknUGtZVtv6eytc0 X+lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=zyd4m/jBHjSd/0BgYnM8jlJkn60Hri/JoAFb6KUvXQ4=; b=jBbrcWeYPid57jZDgi7nemzJ1FJnwpfUmgpnF8ngNRmoO8HEzLQMwWACQXxUaqdNH9 hHXTqfm564vmCN6UiCj3YmXpepuJlfU0yHk2VKS3rZwRGtl41QWKxSiSFXIhiqvqFER8 BdF4eAHykd3RhndWIq2ySq6nMVpTnB0UY/amX7SP2/wxwBHii7feBBaKTp6gzPh+dgye Gi84xushfSf9CJqCeBe3JyD0fL0dUAhkkmNNqlZ/uok7IyGYzaKwqKLS3T4WR7e/qzjR oNgj1A11yjVcQ3nfbRhP6SCzhw8IuchVNUtKfxHlhzr+WOj6XzPsCyo087hxI9hWsWAB 7VaQ== X-Gm-Message-State: AE9vXwM1ZWjc+h9eDac+BHP8pV+SwjZePZ7SfOcXvpviDyS8+EpOXYyqnpRggX0N+NS/vjf5 X-Received: by 10.194.95.105 with SMTP id dj9mr39224699wjb.20.1473168704101; Tue, 06 Sep 2016 06:31:44 -0700 (PDT) Original-Received: from mpn.zrh.corp.google.com ([172.16.113.135]) by smtp.gmail.com with ESMTPSA id f8sm19689536wjh.45.2016.09.06.06.31.41 for <24378@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Sep 2016 06:31:43 -0700 (PDT) Original-Received: by mpn.zrh.corp.google.com (Postfix, from userid 126942) id D6C6F1E021A; Tue, 6 Sep 2016 15:31:39 +0200 (CEST) X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1473168694-13605-1-git-send-email-mina86@mina86.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122989 Archived-At: * 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