From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: xah lee Newsgroups: gmane.emacs.bugs Subject: bug#1406: backward-up-list reports scan error incorrectly? Date: Fri, 21 Nov 2008 13:24:30 -0800 Message-ID: Reply-To: xah lee , 1406@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1227304433 23618 80.91.229.12 (21 Nov 2008 21:53:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2008 21:53:53 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 21 22:54:55 2008 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 1L3dxm-0008Og-3u for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 22:54:55 +0100 Original-Received: from localhost ([127.0.0.1]:57856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3dwd-0005su-1C for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Nov 2008 16:53:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3dZx-0001pM-SB for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:30:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3dZx-0001p0-6D for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:30:17 -0500 Original-Received: from [199.232.76.173] (port=52236 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3dZx-0001oq-0K for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:30:17 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38197) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3dZw-0005HK-Di for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:30:16 -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 mALLU9KD013739; Fri, 21 Nov 2008 13:30:10 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mALLU3hn013255; Fri, 21 Nov 2008 13:30:03 -0800 X-Loop: don@donarmstrong.com Resent-From: xah lee Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 21 Nov 2008 21:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1406 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122730266611840 (code B ref -1); Fri, 21 Nov 2008 21:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 21 Nov 2008 21:24:26 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mALLOM54011832 for ; Fri, 21 Nov 2008 13:24:23 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3dUE-0008Jr-3z for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:24:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3dUD-0008Jc-EF for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:24:21 -0500 Original-Received: from [199.232.76.173] (port=45623 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3dUD-0008JZ-9B for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:24:21 -0500 Original-Received: from mout.perfora.net ([74.208.4.195]:57631) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L3dUC-0004pZ-Pc for bug-gnu-emacs@gnu.org; Fri, 21 Nov 2008 16:24:21 -0500 Original-Received: from [192.168.1.5] (c-24-6-185-159.hsd1.ca.comcast.net [24.6.185.159]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1L3dUB0XsF-0001Ng; Fri, 21 Nov 2008 16:24:20 -0500 X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX1/w83bqmdYxLJzeG831v02NgAt19l8Yg7QYFhy ikTctdMkiNtrgD29kbJ2LzxxSV7FGwYBRISQRw3ypuVl2XqV1c 2oH7Gmfq1YnzUyatVxCQw== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 21 Nov 2008 16:30:17 -0500 X-Mailman-Approved-At: Fri, 21 Nov 2008 16:53:40 -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:22570 Archived-At: This appears to be a bug of backward-up-list. Summary: when i do backward-up-list in a particular lisp file, when =20 the cursor is inside a double quote, it tell me Unbalanced =20 parentheses, but there does not seems to be any unbalanced paren. The =20= file byte-compiles fine. steps to reproduce: Save the following function to a file. (defun replace-keybinding-notation (p1 p2) "Do a bunch of find/replace on current text selection." (interactive "r") (let (mystr (case-fold-search nil) (case-replace nil)) (setq mystr (buffer-substring p1 p2)) (setq mystr (with-temp-buffer (insert mystr) ;; C- (goto-char (point-min)) (while (search-forward-regexp "C-" nil t) (replace-match "Ctlr+" t) ) ;; M- (goto-char (point-min)) (while (search-forward-regexp "M-" nil t) (replace-match "Alt+" t) ) ;; Ctrl+Alt+t (goto-char (point-min)) (while (search-forward-regexp "Ctrl\\+Alt\\+\\([[:graph:]]\=20 \)" nil t) (replace-match "Ctrl+Alt+\=20= \1" t) ) ;; Cmd+Shift+t (goto-char (point-min)) (while (search-forward-regexp "Cmd\\+Shift\\+\\([[:graph:]]\=20= \)" nil t) (replace-match "Cmd+Shift+\=20= \1" t) ) ;; Alt+Shift+t (goto-char (point-min)) (while (search-forward-regexp "Alt\\+Shift\\+\\([[:graph:]]\=20= \)" nil t) (replace-match "Alt+Shift+\=20= \1" t) ) ;; Ctrl+t Ctrl+t (goto-char (point-min)) (while (search-forward-regexp "Ctrl\\+\\([[:graph:]]\\) Ctrl=20= \\+\\([[:graph:]]\\)" nil t) (replace-match "Ctrl+\\1 Ctrl+\\2" t) ) ;; Ctrl+t (goto-char (point-min)) (while (search-forward-regexp "Ctrl\\+\\([[:graph:]]\\)" =20 nil t) (replace-match "Ctrl+\\1" t) ) ;; Alt+t (goto-char (point-min)) (while (search-forward-regexp "Alt\\+\\([[:graph:]]\\)" nil t) (replace-match "Alt+\\1" t) ) ;; Meta+t (goto-char (point-min)) (while (search-forward-regexp "Meta\\+\\([[:graph:]]\\)" =20 nil t) (replace-match "Meta+\\1" t) ) ;; Cmd+t (goto-char (point-min)) (while (search-forward-regexp "Cmd\\+\\([[:graph:]]\\)" nil t) (replace-match "Cmd+\\1" t) ) (buffer-string) ) ) (delete-region p1 p2) (insert mystr) ) ) =E2=80=A2 start emacs by /Applications/Emacs.app/Contents/MacOS/Emacs -q =E2=80=A2 open the file. =E2=80=A2 interactive search for =E2=80=9CM-=E2=80=9D, do it twice so = that your cursor =20 is in between the double quote on the line: (search-forward-regexp =20 "M-" nil t). Press return so that your cursor is just before the =20 closing quote. =E2=80=A2 press Ctrl+Alt+=E2=86=91 (invoke backward-up-list). =E2=80=A2 emacs says: =E2=80=9Cup-list: Scan error: "Unbalanced = parentheses", 582, =20 1=E2=80=9D --------------------------------- In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0) of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp Windowing system distributor `Apple Inc.', version 10.4.11 configured using `configure '--prefix=3D/Applications/Emacs.app/=20 Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=3D/=20 Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=3D-Os -arch =20 i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI -=20= DUSE_MAC_TSM'' Xah =E2=88=91 http://xahlee.org/ =E2=98=84=