GNU bug report logs - #2927
C++ indentation bug

Previous Next

Package: emacs;

Reported by: Davin Pearson <davin.pearson <at> gmail.com>

Date: Wed, 8 Apr 2009 03:10:07 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2927 in the body.
You can then email your comments to 2927 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2927; Package emacs. (Wed, 08 Apr 2009 03:10:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Davin Pearson <davin.pearson <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 08 Apr 2009 03:10:07 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Davin Pearson <davin.pearson <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: C++ indentation bug
Date: Wed, 8 Apr 2009 15:03:15 +1200
Please ignore the previously sent bug report (see below) as the bug
mysteriously vanished, leaving me with no bug.

2009/4/8 Davin Pearson <davin.pearson <at> gmail.com>:
> The following code does not indent correctly.  Note that
> the line that says std::cout has the wrong indentation.
>
> int main()
> {
>   int j = static_cast<int>(f);
> std::cout << "j=" << j << '\n';
> }
>
> If Emacs crashed, and you have the Emacs process in the gdb debugger,
> please include the output from the following gdb commands:
>    `bt full' and `xbacktrace'.
> If you would like to further debug the crash, please read the file
> d:/Program Files/emacs-22.2/etc/DEBUG for instructions.
>
>
> In GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
>  of 2008-03-27 on RELEASE
> Windowing system distributor `Microsoft Corp.', version 5.1.2600
> configured using `configure --with-gcc (3.4)'
>
> 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: ENZ
>  locale-coding-system: cp1252
>  default-enable-multibyte-characters: t
>
> Major mode: C++/l
>
> Minor modes in effect:
>  recentf-mode: t
>  tabbar-mode: t
>  display-time-mode: t
>  show-paren-mode: t
>  encoded-kbd-mode: t
>  tooltip-mode: t
>  tool-bar-mode: t
>  mouse-wheel-mode: t
>  menu-bar-mode: t
>  file-name-shadow-mode: t
>  global-font-lock-mode: t
>  font-lock-mode: t
>  blink-cursor-mode: t
>  unify-8859-on-encoding-mode: t
>  utf-translate-cjk-mode: t
>  auto-compression-mode: t
>  column-number-mode: t
>  line-number-mode: t
>  abbrev-mode: t
>
> Recent input:
> <S-left> <S-left> <S-right> <right> <delete> <delete>
> ( <left> <S-left> <S-right> <S-left> <down> <tab> <up>
> <up> <C-tab> <M-f1> <C-tab> <C-home> C-y C-k C-k C-k
> C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k
> <f4> <C-home> <down> <down> C-k C-k C-k C-k C-k <down>
> <down> <down> <down> <down> <down> <down> <down> <down>
> <down> <down> <tab> <down> <tab> <down> <tab> <down>
> <tab> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <up> <down> <down> <down> <down> <down> <down>
> <down> <down> <down> <down> <down> <down> <tab> <home>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
> <up> <end> <home> C-k C-k C-k C-k C-k C-k <down> <down>
> <down> <down> <down> <down> <tab> <tab> <tab> <up>
> <tab> <up> <tab> <up> <up> <up> <up> <up> <home> C-k
> C-k C-k <tab> <down> <tab> <down> <tab> <down> <tab>
> <down> <tab> <down> <tab> <delete> <delete> <up> <tab>
> <up> <up> <up> <up> <up> <up> <up> <up> <up> C-k <delete>
> <down> <tab> <down> <tab> <down> <tab> <down> <tab>
> <down> <tab> <down> <tab> <down> <tab> <left> <left>
> <S-left> <up> <tab> <up> <up> <end> <home> <tab> /
> / <down> <down> <tab> <up> <up> <up> <S-left> / / <down>
> <down> <down> <tab> <tab> <up> <up> <up> <up> <S-left>
> / / <tab> <down> <down> <down> <tab> <S-left> / / <tab>
> <down> <tab> <home> <up> <tab> <delete> <delete> <tab>
> <down> <tab> <tab> <up> <up> <down> <down> <up> <up>
> <up> <up> <end> <home> C-k C-k C-k <tab> <down> <tab>
> <tab> <up> <end> <left> <S-left> <S-left> <home> <down>
> <tab> <down> <tab> <tab> <down> <left> <S-left> <left>
> <up> <up> <up> <up> <up> <left> <S-delete> <S-delete>
> <S-delete> <S-delete> <S-delete> <S-delete> <tab> <down>
> <tab> <tab> <down> <delete> <f8> <f8> <f8> <f8> <f8>
> <f8> <f8> <f8> <down> <down> <tab> <down> <tab> <down>
> <f2> <help-echo> M-x r e p o r t <tab> e <backspace>
> <return>
>
> Recent messages:
> Copied buffer to clipboard
> Mark set [2 times]
> ad-Orig-kill-line: End of buffer [6 times]
> Mark set
> Auto-saving...done
> Undo! [8 times]
> Saving some buffers
> Wrote d:/home/3-libd/2006/libd/tests/t-125-emacs-bug.cc
> Wrote d:/home/3-libd/2006/libd/tests/t-124-enum.cc
> Loading emacsbug...done
>
>
> --
> Sincerely and kindest regards, Davin.
> Davin Pearson    http://www.davinpearson.com
>



-- 
Sincerely and kindest regards, Davin.
Davin Pearson    http://www.davinpearson.com





Merged 2926 2927. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 08 Apr 2009 07:00:04 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to Davin Pearson <davin.pearson <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Wed, 08 Apr 2009 07:00:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2927; Package emacs. (Wed, 08 Apr 2009 08:50:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alan Mackenzie <acm <at> muc.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 08 Apr 2009 08:50:03 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Davin Pearson <davin.pearson <at> gmail.com>, 2927 <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#2927: C++ indentation bug
Date: Wed, 8 Apr 2009 08:40:20 +0000
Hi, David!

On Wed, Apr 08, 2009 at 03:03:15PM +1200, Davin Pearson wrote:
> Please ignore the previously sent bug report (see below) as the bug
> mysteriously vanished, leaving me with no bug.

Don't worry - as soon as we've ignore it, it'll come back again.  ;-)

Just as an aside, for this type of bug a dump of CC Mode's configuration
is VERY useful.  You generate this with C-c C-b.

> 2009/4/8 Davin Pearson <davin.pearson <at> gmail.com>:
> > The following code does not indent correctly.  Note that
> > the line that says std::cout has the wrong indentation.

> > int main()
> > {
> >   int j = static_cast<int>(f);
> > std::cout << "j=" << j << '\n';
> > }

[ ..... ]

> -- 
> Sincerely and kindest regards, Davin.
> Davin Pearson    http://www.davinpearson.com

-- 
Alan Mackenzie (Nuremberg, Germany).





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2927; Package emacs. (Wed, 08 Apr 2009 08:50:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alan Mackenzie <acm <at> muc.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 08 Apr 2009 08:50:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 06 May 2009 14:24:14 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Jan 2010 01:03:01 GMT) Full text and rfc822 format available.

Disconnected #2926 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Jan 2010 01:03:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Feb 2010 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 121 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.