From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#5560: 23.1.92; parens matching in c-mode broken Date: Tue, 16 Feb 2016 22:56:34 -0500 Message-ID: References: <4B60ED87-9CF5-464A-AE3F-C948ADB1C4D2@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1455681450 26328 80.91.229.3 (17 Feb 2016 03:57:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2016 03:57:30 +0000 (UTC) Cc: 5560@debbugs.gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 17 04:57:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVtEr-0000rg-7S for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Feb 2016 04:57:17 +0100 Original-Received: from localhost ([::1]:53411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVtEn-000795-Ft for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Feb 2016 22:57:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVtEi-00078z-G8 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 22:57:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVtEg-0002Bp-L4 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 22:57:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVtEb-0002BK-Pq; Tue, 16 Feb 2016 22:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVtEb-0004h7-IR; Tue, 16 Feb 2016 22:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 17 Feb 2016 03:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5560 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 5560-submit@debbugs.gnu.org id=B5560.145568140518019 (code B ref 5560); Wed, 17 Feb 2016 03:57:01 +0000 Original-Received: (at 5560) by debbugs.gnu.org; 17 Feb 2016 03:56:45 +0000 Original-Received: from localhost ([127.0.0.1]:38746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVtEK-0004gY-He for submit@debbugs.gnu.org; Tue, 16 Feb 2016 22:56:45 -0500 Original-Received: from mail-qg0-f54.google.com ([209.85.192.54]:33305) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVtEI-0004gL-L6 for 5560@debbugs.gnu.org; Tue, 16 Feb 2016 22:56:43 -0500 Original-Received: by mail-qg0-f54.google.com with SMTP id b35so3532481qge.0 for <5560@debbugs.gnu.org>; Tue, 16 Feb 2016 19:56:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=sAs39a5zxw4iNAaN0pJbh/+RF8cUhPrvvYYh1Elja4A=; b=IhFYMJs9DqbS5QeUdSI6Q2BiIKcgiYrAFOpcw5tfQJmiIYN580ujkEp4qQb33d4M7P tu9Dty4eq7QBd2C2F0PQ0g2kdD98KG7QbMaw4uiB9hmN/wGujfMkdJH1hl1im1ZzcOCx 2mfQgT4g7mR4t+ECqiyN4/zcNmF+VIxkI/1cfUmKIa0A1lHHJyI0e3x8JHpl8gp6VsoK pkVLMONxl2YmTHBqL0Mchgn5TUIpnuhAr/W8eGLWoLKgB/6kx/1KpyJPLkN28yRjuO0D cRqd9P9KC3AZt8LkgWTBz0JszBn/zigqbr8OSwxk14rlBcEeK6gP851YQu6SF+kHS6xy MGxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=sAs39a5zxw4iNAaN0pJbh/+RF8cUhPrvvYYh1Elja4A=; b=SVAN0txs4thoEwPoYg1x+SkNlDxFyVzzUITEpG7lKxni30cJnakfBfCqyFHSEhG6bz n+MuFhWjZS1oS83/YzVlwEpiSvfRztOJuF8sMTtU5gNUfObY7Vt5/1OgWNSpuL/EmMLC BAkAfLL/6T93cQi1y4rfjm2SCuHoBs8oDZfOVntBFyOjqrqnTVuPY2Gt6G1RrsoscI2Z ZZluPQdGO+Swun8lXsjB20KI01aLzED0od6bW1chSWVGk5jYj2n1sPRwwCDzzkftS1i+ FoylzOYQZGI2aIPgd8Xd+iVQAsqpM1VUK5Wwm1YlcyHKFbc4Y7bkMcWWrBQU7F55dlDt EwqQ== X-Gm-Message-State: AG10YOR40GHQqDSd0fUFkTF7rCSpRwM/SjLQSHcmuSTAisVSm5hFqdCowhe8eqMKSBC8uw== X-Received: by 10.140.157.214 with SMTP id d205mr34211455qhd.3.1455681397177; Tue, 16 Feb 2016 19:56:37 -0800 (PST) Original-Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id 139sm14516968qho.2.2016.02.16.19.56.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Feb 2016 19:56:35 -0800 (PST) In-Reply-To: <4B60ED87-9CF5-464A-AE3F-C948ADB1C4D2@gmail.com> (David Reitter's message of "Wed, 10 Feb 2010 22:01:05 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:113170 Archived-At: I can confirm this still doesn't work right in Emacs 25. However, I get a slightly different experience, with clicking on all 3 left parens highlighting until the first right paren only. Similarly, that right paren seems to be the matching paren for all 3 left parens. David Reitter writes: > Parens matching in C mode is sometimes surprising. In the example > below, double-clicking on either of the first two opening parentheses=20 > will mark the text until the " hyper_modifier : 0)", but that is corr= ect > only for the second paren, while the first one is unmatched due to a space > following the backslash. > > #define EV_MODIFIERS(e) \ > ((([e modifierFlags] & NSHelpKeyMask) ? \=20 > hyper_modifier : 0) \=20=20=20=20 > ... > > > It would be more useful if an "unmatched parentheses" was shown, or if th= e region up to the end of the scan process (i.e. the space+newline) was mar= ked. > > > > > In GNU Emacs 23.1.92.86 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.= 25) > of 2010-02-08 on scarlett.local - Aquamacs Distribution 2.0dev > Windowing system distributor `Apple', version 10.3.1038 > configured using `configure '--with-ns' 'CFLAGS=3D-O0 -g'' > > 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: en_US.UTF-8 > value of $XMODIFIERS: nil > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Major mode: ObjC/l > > Minor modes in effect: > diff-auto-refine-mode: t > which-function-mode: t > savehist-mode: t > smart-frame-positioning-mode: t > aquamacs-autoface-mode: t > recentf-mode: t > osx-key-mode: t > tabbar-mwheel-mode: t > tabbar-mode: t > show-paren-mode: t > delete-selection-mode: t > pc-selection-mode: t > cua-mode: t > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > abbrev-mode: t > > Recent input: > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > | =20 > | =20 > | =20 > =20 > =20 > =20 > =20 > =E2=8C=98X =20 > =E2=8C=98V =20 > =20 > =20 > SPC \ =20 > SPC \ =20 > =20 > ) =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > ) =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =E2=8C=98S =20 > X C - M O D E =20 > =20 > X O B =E2=8C=98S =20 > =E2=8C=98C =20 > > > Recent messages: > Auto-saving... > Mark set [4 times] > Auto-saving...done > Auto-saving...done > Mark set > Auto-saving...done > Auto-saving...done > Saving file /Users/dr/ae.git/src/nsterm.m... > Wrote /Users/dr/ae.git/src/nsterm.m > (No changes need to be saved) > > Load-path shadows: > /Users/dr/Library/Preferences/Aquamacs Emacs/Recent Files hides /Users/dr= /Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Recent Files > /Users/dr/Library/Preferences/Aquamacs Emacs/Preferences hides /Users/dr/= Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Preferences > /Users/dr/Library/Preferences/Aquamacs Emacs/places hides /Users/dr/Libra= ry/Preferences/Aquamacs Emacs/Aquamacs Emacs2/places > /Users/dr/Library/Preferences/Aquamacs Emacs/minibuffer-history hides /Us= ers/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/minibuffer-history > /Users/dr/Library/Preferences/Aquamacs Emacs/frame-positions hides /Users= /dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/frame-positions > /Users/dr/Library/Preferences/Aquamacs Emacs/customizations hides /Users/= dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/customizations > /Library/Application Support/Aquamacs Emacs/JDEE/site-start hides /Librar= y/Application Support/Aquamacs Emacs/SLIME/site-start > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/speedbar/speedbar = hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/speedb= ar > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/speedbar/sb-image = hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/sb-ima= ge > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/common/ezimage hid= es /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/ezimage > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/speedbar/dframe hi= des /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/dframe > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/eieio/eieio hides = /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/emacs-lisp/e= ieio > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/eieio/eieio-speedb= ar hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/ema= cs-lisp/eieio-speedbar > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/eieio/eieio-opt hi= des /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/emacs-li= sp/eieio-opt > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/eieio/eieio-custom= hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/emacs= -lisp/eieio-custom > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/eieio/eieio-comp h= ides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/emacs-l= isp/eieio-comp > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/eieio/eieio-base h= ides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/emacs-l= isp/eieio-base > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/eieio/chart hides = /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/emacs-lisp/c= hart > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/semantic/semantic = hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/cedet/= semantic > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/common/mode-local = hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/cedet/= mode-local > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/common/inversion h= ides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/cedet/i= nversion > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/ede/ede hides /Use= rs/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/cedet/ede > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/common/cedet hides= /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/cedet/cedet > /Library/Application Support/Aquamacs Emacs/JDEE/cedet/common/cedet-files= hides /Users/dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/cedet= /cedet-files > /Library/Application Support/Aquamacs Emacs/JDEE/site-start hides /Users/= dr/ae.git/nextstep/Aquamacs.app/Contents/Resources/lisp/aquamacs/site-start > > Features: > (shadow sort mail-extr message ecomplete rfc822 mml mml-sec > password-cache mm-decode mm-bodies mm-encode mailabbrev nnheader > gnus-util netrc gmm-utils mailheader canlock sha1 hex-util hashcash > emacsbug cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine > cc-vars cc-defs log-edit ring pcvs-util add-log diff-mode vc > vc-dispatcher cl-specs edebug multi-isearch jka-compr find-func vc-git > url-http tls url-auth mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums > url-gw url-cache url url-proxy url-privacy url-expand url-methods > url-history url-cookie url-util url-parse url-vars mm-util mail-prsvr > mailcap mail-utils which-func imenu slime-autoloads load-emacs-plugins > aquamacs-mode-defaults auctex-config server tex-site smart-dnd > aquamacs-aux savehist mouse-sel one-buffer-one-frame > smart-frame-positioning drews_init color-theme-autoloads saveplace > visual-line aquamacs-bug aquamacs-autoface-mode aquamacs-editing > sendmail recentf tree-widget cus-edit osxkeys emulate-mac-keyboard-mode > frame-cmds strings misc-fns thingatpt+ thingatpt frame-fns avoid > aquamacs-mac-fontsets fit-frame aquamacs-frame-setup aquamacs-tabbar > tabbar-window cl cl-19 tabbar easy-mmode cus-start cus-load > load-emacs-pre-plugins aquamacs-site-start cocoa-compatibility filladapt > aquamacs-redo check-for-updates aquamacs-menu osx_defaults > aquamacs-tool-bar aquamacs mac-extra-functions aquamacs-tools > aquamacs-macros parse-time timezone time-date paren delsel pc-select > cua-base wid-edit regexp-opt advice advice-preload byte-opt bytecomp > byte-compile debug help-fns help-mode view image-file disp-table tooltip > ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd > fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer > select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu > font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan > thai tai-viet lao korean japanese hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese case-table epa-hook > jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces > cus-face files text-properties overlay md5 base64 format env code-pages > mule custom widget hashtable-print-readable backquote > make-network-process ns multi-tty emacs)