From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9960: Compiling Emacs trunk with MSVC Date: Sat, 12 Nov 2011 16:27:59 +0200 Message-ID: <83fwhtfma8.fsf@gnu.org> References: <83sjy5279e.fsf@gnu.org> <8339e2lsu7.fsf@gnu.org> <83zkgakdby.fsf@gnu.org> <4EB5320F.5090800@gmail.com> <83vcqyk8k3.fsf@gnu.org> <4EB540F4.7080106@gmail.com> <83r51mk62f.fsf@gnu.org> <86wrbeo7p5.fsf@googlemail.com> <83k47ejyyt.fsf@gnu.org> <86sjm2o559.fsf@googlemail.com> <86obwqo2hl.fsf@googlemail.com> <86ipmynwds.fsf@googlemail.com> <838vnujm3z.fsf@gnu.org> <83sjlzj25l.fsf@gnu.org> <8339dvgfpv.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1321108314 27369 80.91.229.12 (12 Nov 2011 14:31:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 14:31:54 +0000 (UTC) Cc: cschol2112@googlemail.com, 9960@debbugs.gnu.org To: Fabrice Popineau Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 12 15:31:49 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPEcU-0002iL-Mm for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 15:31:47 +0100 Original-Received: from localhost ([::1]:46920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPEcU-0007CL-19 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 09:31:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPEcR-0007C1-04 for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 09:31:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPEcP-0001ev-NV for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 09:31:42 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPEcO-0001ej-Ha for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 09:31:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RPEck-0006Ko-1D for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2011 09:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2011 14:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9960-submit@debbugs.gnu.org id=B9960.132110826624285 (code B ref 9960); Sat, 12 Nov 2011 14:32:01 +0000 Original-Received: (at 9960) by debbugs.gnu.org; 12 Nov 2011 14:31:06 +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 1RPEbp-0006Je-Qi for submit@debbugs.gnu.org; Sat, 12 Nov 2011 09:31:06 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RPEbm-0006J7-4D for 9960@debbugs.gnu.org; Sat, 12 Nov 2011 09:31:03 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LUJ00J00WJD7F00@a-mtaout20.012.net.il> for 9960@debbugs.gnu.org; Sat, 12 Nov 2011 16:29:56 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.66.14]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LUJ00ID8XLVQ8K0@a-mtaout20.012.net.il>; Sat, 12 Nov 2011 16:29:56 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Nov 2011 09:32:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53831 Archived-At: > From: Fabrice Popineau > Date: Fri, 11 Nov 2011 20:28:21 +0100 > Cc: cschol2112@googlemail.com, 9960@debbugs.gnu.org > > > +++ lisp/bindings.el 2011-11-10 17:49:35 +0000 > > > @@ -824,13 +824,13 @@ > > > ;; Define control-digits. > > > (let ((i ?0)) > > > (while (<= i ?9) > > > - (define-key global-map (read (format "[?\\C-%c]" i)) > > 'digit-argument) > > > +; (define-key global-map (read (format "[?\\C-%c]" i)) > > 'digit-argument) > > > (setq i (1+ i)))) > > > (define-key global-map [?\C--] 'negative-argument) > > > ;; Define control-meta-digits. > > > (let ((i ?0)) > > > (while (<= i ?9) > > > - (define-key esc-map (read (format "[?\\C-%c]" i)) 'digit-argument) > > > +; (define-key esc-map (read (format "[?\\C-%c]" i)) 'digit-argument) > > > (setq i (1+ i)))) > > > (define-key global-map [?\C-\M--] 'negative-argument) > > > > Why is this part needed? > > > > I would like to know. I get an error when bootstrapping at these lines : > invalid read syntax. > If someone has a suggestion on how to investigate it, I'd like to hear it: > > Loading bindings (source)... > Invalid read syntax: "?" > NMAKE : fatal error U1077: > 'C:\Source\XEmTeX\mirror\emacs\src/obj-spd/i386/temacs.exe' : return code > '0xffffffff' > Stop. > NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\Bin\nmake.exe"' : return code '0x2' > Stop. This error comes from the following fragment in lread.c:read1 case '?': { int modifiers; int next_char; int ok; c = READCHAR; if (c < 0) end_of_file_error (); /* Accept `single space' syntax like (list ? x) where the whitespace character is SPC or TAB. Other literal whitespace like NL, CR, and FF are not accepted, as there are well-established escape sequences for these. */ if (c == ' ' || c == '\t') return make_number (c); if (c == '\\') c = read_escape (readcharfun, 0); modifiers = c & CHAR_MODIFIER_MASK; c &= ~CHAR_MODIFIER_MASK; if (CHAR_BYTE8_P (c)) c = CHAR_TO_BYTE8 (c); c |= modifiers; next_char = READCHAR; ok = (next_char <= 040 || (next_char < 0200 && strchr ("\"';()[]#?`,.", next_char) != NULL)); UNREAD (next_char); if (ok) return make_number (c); invalid_syntax ("?"); <<<<<<<<<<<<<<<<<< } Can you step through this in a debugger and see what character is seen in next_char at the end of this snippet, and what value is in `c' at that point, when it fails? The function read_escape called by this fragment could also be of interest.