From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#2435: Bug 2435 Date: Fri, 06 Mar 2009 00:07:48 -0500 Message-ID: References: <87fxhvcmvf.fsf@cyd.mit.edu> <87zlg2a7b9.fsf@cyd.mit.edu> <87ab81293z.fsf@cyd.mit.edu> <877i34shq2.fsf@cyd.mit.edu> <877i33cmto.fsf@cyd.mit.edu> Reply-To: Stefan Monnier , 2435@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236317038 13622 80.91.229.12 (6 Mar 2009 05:23:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2009 05:23:58 +0000 (UTC) Cc: Chong Yidong , 2435@emacsbugs.donarmstrong.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 06 06:25:14 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LfSYb-0005Rw-4W for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Mar 2009 06:25:13 +0100 Original-Received: from localhost ([127.0.0.1]:43463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfSXF-0007zE-LK for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Mar 2009 00:23:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfSXB-0007z7-Ch for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2009 00:23:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfSX8-0007ym-Di for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2009 00:23:44 -0500 Original-Received: from [199.232.76.173] (port=41450 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfSX8-0007yj-9d for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2009 00:23:42 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41128) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LfSX7-0001FB-Mj for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2009 00:23:42 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n265Nd2J021731; Thu, 5 Mar 2009 21:23:39 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n265F3Bj019353; Thu, 5 Mar 2009 21:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 06 Mar 2009 05:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2435 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2435-submit@emacsbugs.donarmstrong.com id=B2435.123631607818025 (code B ref 2435); Fri, 06 Mar 2009 05:15:03 +0000 Original-Received: (at 2435) by emacsbugs.donarmstrong.com; 6 Mar 2009 05:07:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2657sXk018017 for <2435@emacsbugs.donarmstrong.com>; Thu, 5 Mar 2009 21:07:56 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAEM+sElFxKsx/2dsb2JhbACBTtYVhAgGhBI X-IronPort-AV: E=Sophos;i="4.38,312,1233550800"; d="scan'208";a="34775833" Original-Received: from 69-196-171-49.dsl.teksavvy.com (HELO pastel.home) ([69.196.171.49]) by ironport2-out.teksavvy.com with ESMTP; 06 Mar 2009 00:07:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 905057FA2; Fri, 6 Mar 2009 00:07:48 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Fri, 06 Mar 2009 13:48:40 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 06 Mar 2009 00:23:44 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26031 Archived-At: >> > We should take care of re_search_2 and re_match_2_internal >> > too. >> > >> > If the problem is only the call of openp in >> > load_charset_map_from_file, and building various Lisp object >> > is ok, we can change load_charset_map_from_file to open a >> > charset map by itself without using openp. >> Not using openp would be troublesome. How about binding >> file-name-handler-alist to nil inside load_charset_map_from_file? That >> prevents find-file-name-handler from performing the regexp compilation >> and string search. > That's a good idea if "building various Lisp object is ok" > is true. AFAIK building objects is perfectly fine, yes. I wonder why you use record_unwind_protect rather than specbind, tho. Also if we do that, we should add a note in the docstring of charset-map-path that it does not obey file-name-handler-alist. Stefan