all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#2926: C++ indentation bug
@ 2009-04-08  3:00 Davin Pearson
  2009-04-08  3:03 ` bug#2927: " Davin Pearson
  0 siblings, 1 reply; 3+ messages in thread
From: Davin Pearson @ 2009-04-08  3:00 UTC (permalink / raw)
  To: bug-gnu-emacs

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







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#2927: C++ indentation bug
  2009-04-08  3:00 bug#2926: C++ indentation bug Davin Pearson
@ 2009-04-08  3:03 ` Davin Pearson
  2009-04-08  8:40   ` Alan Mackenzie
  0 siblings, 1 reply; 3+ messages in thread
From: Davin Pearson @ 2009-04-08  3:03 UTC (permalink / raw)
  To: bug-gnu-emacs

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@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







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#2927: C++ indentation bug
  2009-04-08  3:03 ` bug#2927: " Davin Pearson
@ 2009-04-08  8:40   ` Alan Mackenzie
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Mackenzie @ 2009-04-08  8:40 UTC (permalink / raw)
  To: Davin Pearson, 2927; +Cc: bug-gnu-emacs

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@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).







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-08  8:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-08  3:00 bug#2926: C++ indentation bug Davin Pearson
2009-04-08  3:03 ` bug#2927: " Davin Pearson
2009-04-08  8:40   ` Alan Mackenzie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.