From: Davin Pearson <dmp36@student.canterbury.ac.nz>
Subject: C++ auto indentation
Date: Fri, 28 Jan 2005 18:27:51 +1300 [thread overview]
Message-ID: <41F9CD57.6070801@student.canterbury.ac.nz> (raw)
This bug report will be sent to the Free Software Foundation,
not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
In GNU Emacs 20.7.1 (i386-*-nt5.1.2600)
of Wed Jun 14 2000 on buffy
configured using `configure NT'
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
I am writing a computer game in C++
and while doing so I noticed a bug
in the Emacs auto-indentation.
The bug is also manifested in the
forward-sexp/backward-sexp functionality.
Here is the file so you can fix
the bug:
To see how the bug happens, try
running the command indent-region
of the source file.
///
/// This file is a demonstration of a
/// bug in the auto indentation feature
/// of Gnu Emacs. I have deleted
/// as much as I could from this
/// file to mimimise the work needed
/// from an Emacs Lisp programmer to
/// find the bug. The programming
/// language used is C++.
///
/// The bug seems to be in the
/// #ifdef ... #endif lines
///
int main()
{
for (;;) {
{
blit(global_persistent_bitmap,
global_memory_buffer_bitmap,
0,//*global_blackwell_start_pixel_x.get_element_at(0) -
GLOBAL_TILE_SIZE,
GLOBAL_BLACKWELL_START_PIXEL_Y - GLOBAL_TILE_SIZE -
GLOBAL_CONSOLE_HEIGHT_PIXELS,
0,//*global_blackwell_start_pixel_x.get_element_at(0) -
GLOBAL_TILE_SIZE,
GLOBAL_BLACKWELL_START_PIXEL_Y - GLOBAL_TILE_SIZE -
GLOBAL_CONSOLE_HEIGHT_PIXELS,
global_persistent_bitmap->w,//GLOBAL_ALLWELL_WIDTH_PIXELS,
GLOBAL_ALLWELL_HEIGHT_PIXELS + GLOBAL_CONSOLE_HEIGHT_PIXELS);
if (keypressed())
{
{
switch (readkey() >> 8) {
case KEY_ESC:
break;
case KEY_P:
{
#ifdef NDEBUG
local_print_sync_used_by_main_loop();
#endif /* NDEBUG */
}
break;
case KEY_SPACE:
break;
}
}
}
}
}
}
///
/// end of file
///
Recent input:
backspace backspace backspace backspace backspace backspace
backspace backspace p r o g r a m m m backspace i n
g return l a n g ` SPC u s e d SPC i s SPC C = backspace
+ + . f2 C-end up C-home down down down down down down
down down down down end C-end up up up up up up up
up up up up up up up up tab down down tab tab S-left
S-right down down down down down down down down down
down down down down S-left S-right f2 f2 menu-bar help-menu
report-emacs-bug
Recent messages:
Scanning `Tritus-II.cc'
Scanning `zallegro'
Scanning ` *Minibuf-0*'
Scanning `allegro.txt'
Expansion found in 'allegro.txt'
Wrote d:/zallegro/2005/tests/indent-bug.cc
Mark set [3 times]
(No files need saving) [2 times]
Loading emacsbug...
Loading emacsbug...done
--
Davin Pearson http://www.geocities.com/davin_pearson
reply other threads:[~2005-01-28 5:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41F9CD57.6070801@student.canterbury.ac.nz \
--to=dmp36@student.canterbury.ac.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.