From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Makoto Fujiwara Newsgroups: gmane.emacs.bugs Subject: bug#6490: 24.0.50; src/lread.c: old style backquote bug? Date: Thu, 01 Jul 2010 13:14:48 +0900 Message-ID: References: <86iq5bifzr.wl%%cc9230e4f6b11649d75e8c3813911dbe1dd37419@be.to> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1277958580 28357 80.91.229.12 (1 Jul 2010 04:29:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 04:29:40 +0000 (UTC) Cc: Tetsurou Okazaki To: 6490@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 06:29:38 2010 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.69) (envelope-from ) id 1OUBP7-0005iW-Ia for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 06:29:37 +0200 Original-Received: from localhost ([127.0.0.1]:52559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUBP6-0002UB-OE for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 00:29:36 -0400 Original-Received: from [140.186.70.92] (port=50620 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUBP0-0002U6-U3 for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 00:29:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUBOy-0002PC-TT for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 00:29:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49503) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUBOy-0002P6-Qp for bug-gnu-emacs@gnu.org; Thu, 01 Jul 2010 00:29:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OUBBy-0007H2-Fq; Thu, 01 Jul 2010 00:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Makoto Fujiwara Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jul 2010 04:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 6490-submit@debbugs.gnu.org id=B6490.127795771427952 (code B ref 6490); Thu, 01 Jul 2010 04:16:02 +0000 Original-Received: (at 6490) by debbugs.gnu.org; 1 Jul 2010 04:15:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUBBC-0007Gn-EM for submit@debbugs.gnu.org; Thu, 01 Jul 2010 00:15:14 -0400 Original-Received: from gw.ki.nu ([218.44.234.233] helo=mail.ki.nu) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUBB9-0007Gi-K3 for 6490@debbugs.gnu.org; Thu, 01 Jul 2010 00:15:13 -0400 Original-Received: from stable.i.ki.nu.ki.nu (stable.i.ki.nu [192.168.60.15]) by mail.ki.nu (8.14.2/8.14.2) with ESMTP id o614ErMA020675; Thu, 1 Jul 2010 13:14:58 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 =?UTF-8?Q?(Goj=1B$(D+W=1B(B)?= APEL/10.7 Emacs/24.0.50 (i386--netbsdelf) MULE/6.0 =?UTF-8?Q?(=E8=8A=B1=E6=95=A3=E9=87=8C)?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 01 Jul 2010 00:16:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:38162 Archived-At: first of all, I got the very much similar problem with hnf-mode (2.5) http://nijino.homelinux.net/hnf-mode/ And the patch by Okazaki San fixed my problem. Thank you. I have looked at the patch, and minimized the changes in diff wise. It is logically exactly the same as the first patch. This second patch also fixes my problem. If you look at this patch, the changes almost nothing to the human being (just not modifying char c). diff --git a/src/lread.c b/src/lread.c index c73f7f3..de01387 100644 --- a/src/lread.c +++ b/src/lread.c @@ -2693,7 +2693,11 @@ read1 (readcharfun, pch, first_in_list) old-style. For Emacs-25, we should completely remove this first_in_list exception (old-style can still be obtained via "(\`" anyway). */ - if (first_in_list && (c = READCHAR, UNREAD (c), c == ' ')) + { + int next_char = READCHAR; + UNREAD (next_char); + + if (first_in_list && next_char == ' ') { Vold_style_backquotes = Qt; goto default_label; @@ -2708,6 +2712,7 @@ read1 (readcharfun, pch, first_in_list) return Fcons (Qbackquote, Fcons (value, Qnil)); } + } case ',': if (new_backquote_flag) --- Makoto Fujiwara, Chiba, Japan, Narita Airport and Disneyland prefecture.