From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gulshan Singh Newsgroups: gmane.emacs.bugs Subject: bug#21409: 24.5; Wrong syntactic information for two line statement in an arglist Date: Thu, 3 Sep 2015 22:50:50 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11479ce66c00d2051ee57bae X-Trace: ger.gmane.org 1441346003 9811 80.91.229.3 (4 Sep 2015 05:53:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 05:53:23 +0000 (UTC) To: 21409@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 04 07:53:13 2015 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 1ZXjvx-000286-EP for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Sep 2015 07:53:09 +0200 Original-Received: from localhost ([::1]:55967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXjvx-0003fs-6P for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Sep 2015 01:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXjvs-0003fg-CO for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2015 01:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXjvq-0000l3-4n for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2015 01:53:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXjvq-0000ky-06 for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2015 01:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZXjvp-0001Hd-OH for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2015 01:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gulshan Singh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2015 05:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14413459504854 (code B ref -1); Fri, 04 Sep 2015 05:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Sep 2015 05:52:30 +0000 Original-Received: from localhost ([127.0.0.1]:48388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXjvJ-0001GC-2M for submit@debbugs.gnu.org; Fri, 04 Sep 2015 01:52:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49077) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXjtp-0001Cg-Mc for submit@debbugs.gnu.org; Fri, 04 Sep 2015 01:50:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXjtn-0008Jb-7V for submit@debbugs.gnu.org; Fri, 04 Sep 2015 01:50:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXjtn-0008JX-58 for submit@debbugs.gnu.org; Fri, 04 Sep 2015 01:50:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXjtl-0003HQ-Dq for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2015 01:50:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXjtj-0008IM-Af for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2015 01:50:53 -0400 Original-Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]:34525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXjtj-0008IA-58 for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2015 01:50:51 -0400 Original-Received: by qkfq186 with SMTP id q186so4796789qkf.1 for ; Thu, 03 Sep 2015 22:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=W8YEjxBL1yUsy0GPYtCXP8fo2cmqF6rhHZTpoNNsLKM=; b=g77yC8pGQtEaRTEgqtwfgK7W7CV7RrddUZ+W//cwI0l+GCTVjqnR7TwdqEL6rZO35K clBcBmnSdmVOBg8I8+eUD6MkUb0Oox7IO70CPrOZg9p/47UOrHhRrEN+sHQAGYifGoJF BWGeL6vOMjd34YY/KUffeOGn63+bRTfZaKrKbN5PLRzfg5fJ0BXMKPhhZd0D9VIKSdwO /dETTIRnt3XQP9rBDDTCDBPpkupxtW0vyHJN1pLTF9/IOcwD0pfNUjRC65/ssN77wap+ IxpcFzACI8U1MBYfzP+jfoRd5OsBxVcVCax6N1EXSlraXSnpSdhpJ9Jhj8u5suN6Czxh sZeg== X-Received: by 10.55.195.80 with SMTP id a77mr2612116qkj.2.1441345850571; Thu, 03 Sep 2015 22:50:50 -0700 (PDT) Original-Received: by 10.140.19.1 with HTTP; Thu, 3 Sep 2015 22:50:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Fri, 04 Sep 2015 01:52:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:106141 Archived-At: --001a11479ce66c00d2051ee57bae Content-Type: text/plain; charset=UTF-8 In c-mode (and all derivatives), the following code has the wrong syntactic information (at least, in my opinion): foo(bar .baz() .qux()); Putting point at `.baz()` and pressing C-c C-s shows it as an `arglist-cont-nonempty`, when I'd expect it to be a `statement-cont`. This causes the code to have the wrong indentation, as above I would like to have the continued statements to be indented one c-basic-offset, not aligned to the opening brace. In GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, NS apple-appkit-1348.17) of 2015-08-24 on gulshan-mbp1 Windowing system distributor `Apple', version 10.3.1348 Configured using: `configure --prefix=/usr/local/Cellar/emacs/24.5 --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/24.5/share/info/emacs --with-xml2 --without-dbus --without-gnutls --with-ns --disable-ns-self-contained' Important settings: locale-coding-system: utf-8-unix Major mode: C/l Minor modes in effect: yas-global-mode: t yas-minor-mode: t global-syntax-subword-mode: t syntax-subword-mode: t global-flycheck-mode: t flycheck-mode: t which-function-mode: t global-company-mode: t company-mode: t flx-ido-mode: t ido-ubiquitous-mode: t global-diff-hl-mode: t diff-auto-refine-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t whitespace-mode: t global-anzu-mode: t anzu-mode: t projectile-global-mode: t projectile-mode: t shell-dirtrack-mode: t volatile-highlights-mode: t global-hl-line-mode: t recentf-mode: t savehist-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-mode: t global-auto-revert-mode: t delete-selection-mode: t prelude-global-mode: t prelude-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent messages: Quit Mark set [2 times] Syntactic analysis: ((arglist-cont-nonempty 72 75)) Quit use of undeclared identifier 'bar' Mark set Quit byte-code: Command attempted to use minibuffer while in minibuffer Quit Load-path shadows: None found. Features: (shadow sort eieio-opt emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils mail-extr cus-edit cus-start cus-load easy-kill misearch multi-isearch js2-imenu-extras tramp-cmds ffap url-parse url-vars cc-langs xhp-mode derived xhp-indent php-mode speedbar sb-image ezimage dframe flymake add-log tramp-cache tramp-sh company-anaconda anaconda-mode f s ucs-normalize json-rpc python-el-fgallina-expansions smartparens-python python rainbow-mode color rainbow-delimiters elisp-slime-nav yasnippet appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs syntax-subword superword subword prelude-xml nxml-mode-expansions html-mode-expansions sgml-mode rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok prelude-web web-mode-expansions smartparens-html web-mode disp-table prelude-shell sh-script smie executable prelude-python prelude-js js2-mode-expansions js2-mode js2-old-indent js-mode-expansions js json cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs prelude-emacs-lisp prelude-lisp prelude-c prelude-programming flycheck find-func help-mode rx subr-x which-func prelude-company company-files company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company prelude-ido smex flx-ido flx ido-ubiquitous ido-completing-read+ prelude-osx exec-path-from-shell prelude-global-keybindings prelude-editor operate-on-number calc-bin calc-ext calc calc-loaddefs calc-macs diff-hl smartrep vc-dir ewoc vc vc-dispatcher diff-mode easy-mmode winner undo-tree diff esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util re-builder whitespace tabify browse-kill-ring midnight ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff dired-x dired anzu avy projectile compile ibuf-ext ibuffer bookmark pp expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom flyspell ispell tramp tramp-compat auth-source gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color format-spec etags ring volatile-highlights hl-line windmove recentf tree-widget wid-edit savehist saveplace diminish edmacro kmacro smartparens-config smartparens autorevert filenotify delsel prelude-mode prelude-core imenu epl ido pcase ov dash thingatpt prelude-ui smart-mode-line mule-util rich-minority zenburn-theme prelude-custom prelude-packages finder-inf eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core advice help-fns cl-macs info easymenu package epg-config cl gv cl-loaddefs cl-lib time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 892477 436428) (symbols 48 54665 2) (miscs 40 1391 5733) (strings 32 135135 214576) (string-bytes 1 3737179) (vectors 16 155851) (vector-slots 8 4232856 614143) (floats 8 28966 6540) (intervals 56 3573 9245) (buffers 960 35)) --001a11479ce66c00d2051ee57bae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In c-mode (and all derivatives), the following code h= as the wrong
syntactic information (at least, in my opinion):

foo(bar
=C2=A0 =C2=A0 .baz()
=C2= =A0 =C2=A0 .qux());

Putting point at `.baz()` and = pressing C-c C-s shows it as an
`arglist-cont-nonempty`, when I&#= 39;d expect it to be a
`statement-cont`. This causes the code to = have the wrong indentation, as
above I would like to have the con= tinued statements to be indented one
c-basic-offset, not aligned = to the opening brace.



In GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, NS apple-appkit-1348.17)<= /div>
=C2=A0of 2015-08-24 on gulshan-mbp1
Windowing system di= stributor `Apple', version 10.3.1348
Configured using:
<= div>=C2=A0`configure --prefix=3D/usr/local/Cellar/emacs/24.5
=C2= =A0--enable-locallisppath=3D/usr/local/share/emacs/site-lisp
=C2= =A0--infodir=3D/usr/local/Cellar/emacs/24.5/share/info/emacs --with-xml2
=C2=A0--without-dbus --without-gnutls --with-ns --disable-ns-self-c= ontained'

Important settings:
=C2=A0= locale-coding-system: utf-8-unix

Major mode: C/l<= /div>

Minor modes in effect:
=C2=A0 yas-global= -mode: t
=C2=A0 yas-minor-mode: t
=C2=A0 global-syntax-= subword-mode: t
=C2=A0 syntax-subword-mode: t
=C2=A0 gl= obal-flycheck-mode: t
=C2=A0 flycheck-mode: t
=C2=A0 wh= ich-function-mode: t
=C2=A0 global-company-mode: t
=C2= =A0 company-mode: t
=C2=A0 flx-ido-mode: t
=C2=A0 ido-u= biquitous-mode: t
=C2=A0 global-diff-hl-mode: t
=C2=A0 = diff-auto-refine-mode: t
=C2=A0 winner-mode: t
=C2=A0 g= lobal-undo-tree-mode: t
=C2=A0 undo-tree-mode: t
=C2=A0= whitespace-mode: t
=C2=A0 global-anzu-mode: t
=C2=A0 a= nzu-mode: t
=C2=A0 projectile-global-mode: t
=C2=A0 pro= jectile-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 vo= latile-highlights-mode: t
=C2=A0 global-hl-line-mode: t
=C2=A0 recentf-mode: t
=C2=A0 savehist-mode: t
=C2=A0 = show-smartparens-global-mode: t
=C2=A0 show-smartparens-mode: t
=C2=A0 smartparens-mode: t
=C2=A0 global-auto-revert-mod= e: t
=C2=A0 delete-selection-mode: t
=C2=A0 prelude-glo= bal-mode: t
=C2=A0 prelude-mode: t
=C2=A0 tooltip-mode:= t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mo= de: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-m= ode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock= -mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-en= cryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0= size-indication-mode: t
=C2=A0 column-number-mode: t
= =C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 abbrev-mode: t

Recent messages:
Quit
Mark set [2 times]
Syntactic analysis: ((arglist-= cont-nonempty 72 75))
Quit
use of undeclared identifier= 'bar'
Mark set
Quit
byte-code: Comma= nd attempted to use minibuffer while in minibuffer
Quit


Load-path shadows:
None found.

Features:
(shadow sort eieio-opt emacsbug m= essage rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-pars= e rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc204= 5 ietf-drums mail-utils mail-extr cus-edit
cus-start cus-load eas= y-kill misearch multi-isearch js2-imenu-extras
tramp-cmds ffap ur= l-parse url-vars cc-langs xhp-mode derived xhp-indent
php-mode sp= eedbar sb-image ezimage dframe flymake add-log tramp-cache
tramp-= sh company-anaconda anaconda-mode f s ucs-normalize json-rpc
pyth= on-el-fgallina-expansions smartparens-python python rainbow-mode
= color rainbow-delimiters elisp-slime-nav yasnippet appt diary-lib
diary-loaddefs cal-menu calendar cal-loaddefs syntax-subword superword
subword prelude-xml nxml-mode-expansions html-mode-expansions sgml-m= ode
rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-m= atch rng-dt
rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-= rap nxml-util
nxml-glyph nxml-enc xmltok prelude-web web-mode-exp= ansions
smartparens-html web-mode disp-table prelude-shell sh-scr= ipt smie
executable prelude-python prelude-js js2-mode-expansions= js2-mode
js2-old-indent js-mode-expansions js json cc-mode-expan= sions cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-ali= gn cc-engine cc-vars
cc-defs prelude-emacs-lisp prelude-lisp prel= ude-c prelude-programming
flycheck find-func help-mode rx subr-x = which-func prelude-company
company-files company-oddmuse company-= keywords company-etags
company-gtags company-dabbrev-code company= -dabbrev company-capf
company-cmake company-xcode company-clang c= ompany-semantic company-eclim
company-template company-css compan= y-nxml company-bbdb company
prelude-ido smex flx-ido flx ido-ubiq= uitous ido-completing-read+
prelude-osx exec-path-from-shell prel= ude-global-keybindings
prelude-editor operate-on-number calc-bin = calc-ext calc calc-loaddefs
calc-macs diff-hl smartrep vc-dir ewo= c vc vc-dispatcher diff-mode
easy-mmode winner undo-tree diff esh= -var esh-io esh-cmd esh-opt esh-ext
esh-proc esh-arg eldoc esh-gr= oups eshell esh-module esh-mode esh-util
re-builder whitespace ta= bify browse-kill-ring midnight ediff-merg
ediff-wind ediff-diff e= diff-mult ediff-help ediff-init ediff-util ediff
dired-x dired an= zu avy projectile compile ibuf-ext ibuffer bookmark pp
expand-reg= ion text-mode-expansions er-basic-expansions
expand-region-core e= xpand-region-custom flyspell ispell tramp
tramp-compat auth-sourc= e gnus-util mm-util mail-prsvr password-cache
tramp-loaddefs tram= pver shell pcomplete comint ansi-color format-spec
etags ring vol= atile-highlights hl-line windmove recentf tree-widget
wid-edit sa= vehist saveplace diminish edmacro kmacro smartparens-config
smart= parens autorevert filenotify delsel prelude-mode prelude-core imenu
epl ido pcase ov dash thingatpt prelude-ui smart-mode-line mule-util
rich-minority zenburn-theme prelude-custom prelude-packages finder-i= nf
eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core= advice
help-fns cl-macs info easymenu package epg-config cl gv c= l-loaddefs
cl-lib time-date tooltip electric uniquify ediff-hook = vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image= regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode = register page
menu-bar rfn-eshadow timer select scroll-bar 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 ind= ian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simpl= e abbrev minibuffer nadvice
loaddefs button faces cus-face macroe= xp files text-properties overlay
sha1 md5 base64 format env code-= pages mule custom widget
hashtable-print-readable backquote make-= network-process cocoa ns
multi-tty emacs)

Memory information:
((conses 16 892477 436428)
=C2=A0= (symbols 48 54665 2)
=C2=A0(miscs 40 1391 5733)
=C2=A0(= strings 32 135135 214576)
=C2=A0(string-bytes 1 3737179)
=C2=A0(vectors 16 155851)
=C2=A0(vector-slots 8 4232856 614143)=
=C2=A0(floats 8 28966 6540)
=C2=A0(intervals 56 3573 9= 245)
=C2=A0(buffers 960 35))

--001a11479ce66c00d2051ee57bae--