From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: matthew.miner@misys.com Newsgroups: gmane.emacs.bugs Subject: C++ mode, embedded SQL: unbalanced parens diag. Date: Tue, 14 Jun 2005 12:01:40 -0400 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118764899 30062 80.91.229.2 (14 Jun 2005 16:01:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2005 16:01:39 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 14 18:01:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DiDqY-0002Op-0Y for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2005 18:01:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiDvZ-00089T-LP for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2005 12:06:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DiDur-0007mX-1i for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2005 12:05:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DiDuj-0007g3-AY for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2005 12:05:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiDug-0007cq-Vu for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2005 12:05:19 -0400 Original-Received: from [168.143.177.190] (helo=rly22c.srv.mailcontrol.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DiDrI-0003tj-JP for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2005 12:01:48 -0400 Original-Received: from nyiqhub01.iqfinancial.com (nyiqhub01.misys.com [216.187.17.161] (may be forged)) by rly22c.srv.mailcontrol.com (MailControl) with ESMTP id j5EG0MY9003228 for ; Tue, 14 Jun 2005 17:00:25 +0100 Original-To: bug-gnu-emacs@gnu.org X-Mailer: Lotus Notes Release 5.0.9a January 7, 2002 X-MIMETrack: Serialize by Router on NYIQHUB01/IQFS(Release 5.0.12 |February 13, 2003) at 06/14/2005 12:01:45 PM X-Scanned-By: MailControl A-05-01-01 (www.mailcontrol.com) 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:12236 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:12236 To: bug-gnu-emacs@gnu.org Subject: C++ mode, embedded SQL: unbalanced parens diag. --text follows this line-- This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing lis= t, and to the gnu.emacs.bug news group. In GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO configured using `configure --with-gcc (3.2)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU locale-coding-system: iso-latin-1 default-enable-multibyte-characters: nil Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Remove the "xxx" and type "(". Shows message: up-list: Scan error: "Unbalanced parentheses", 406, 1 There are no unbalanced parens (the original program compiles and runs successfully). The below (bounded by "=3D=3D=3D") is a trimming that illustrates the p= roblem, plus a bit of context. It was part a .sqc file, and in "C++-mode". To reproduce, yank the code into another buffer, put in c++-mode, remov= e the 'xxx', and type (. I suspect the <> of some role here; change either, and the problem disappears. Not critical issue to me. If I can provide anything else, please let me= know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D EXEC SQL END DECLARE SECTION; void changeAsign(char *tovalue, char *fromvalue) { NumStrMult(fromvalue= , "-1", tovalue); } EXEC SQL DECLARE OST_BILL_CYCLES CURSOR WITH HOLD FOR SELECT ACC_RID_ACR_CYCLE, OST_NME_ALIAS FROM VLS_OUTSTANDING OST WHERE ( :hvVAR_DTE_NEXT <=3D ACC_DTE_ADJ_CYCLE AND (FAC_DTE_FINAL_MAT >=3D :hvVAR_DTE_NEXT) ) UNION SELECT ACC_RID_ACR_CYCLE, xxx OST_RID_OUTSTANDNG FROM VLS_OUTSTANDING OST FOR FETCH ONLY; static int isSBLC(void) { return ( strcmp(hvOST_CDE_OUTSTD_TYP, "SBLC ") =3D=3D 0 ); } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Recent input: ( C-SPC C-w C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k ( C-d = ( C-z SPC ( SPC C-s f o n t i C-s C-s C-x k Recent messages: up-list: Scan error: "Unbalanced parentheses", 11790, 1 Mark set [2 times] Buffer biltrost.sqc has shrunk a lot; auto save turned off there up-list: Scan error: "Unbalanced parentheses", 436, 1 up-list: Scan error: "Unbalanced parentheses", 406, 1 Undo! up-list: Scan error: "Unbalanced parentheses", 406, 1 Type C-h for help, h for commands, q to quit. Mark saved where search started Loading q:/NTTools/GNU/emacs-21.3/lisp/mail/emacsbug.elc...done This email and any attachments have been scanned for known viruses usin= g multiple scanners. We believe that this email and any attachments are v= irus free, however the recipient must take full responsibility for virus checking. This email message is intended for the named recipient only. = It may be privileged and/or confidential. If you are not the intended name= d recipient of this email then you should not copy it or use it for any purpose, nor disclose its contents to any other person. You should cont= act the Misys Banking and Securities Division as shown below so that we can= take appropriate action at no cost to yourself.=A0 Misys Banking and Securities Division, 1 St George's Road, Wimbledon, London, SW19 4DR, England. Email: banking.postmaster@misys.com. Tel: +44 (0) 20 8879 1188= Fax: +44 (0) 20 8947 3373 =