Duplicated. Both the incorrect indentation, and the incorrect
paren-highlighting.
-Jim Potts
OS: Windows_NT
XEmacs 21.4 \"Copyleft\" configured for `i586-pc-win32'.
Building XEmacs in \"G:\\src\\xemacs\\nt\".
Using compiler \"cl -nologo -W3 -O2 -G5 -MD\".
Installing XEmacs in \"c:\\Program Files\\XEmacs\\XEmacs-21.4\".
Package path is \"~\\.xemacs;;c:\\Program
Files\\XEmacs\\site-packages;c:\\Program Files\\XEmacs\\xemacs-packages\".
Compiling in support for Microsoft Windows native GUI.
Compiling in support for XPM images.
Compiling in support for GIF images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for toolbars.
Compiling in support for dialogs.
Compiling in support for widgets.
Compiling in support for native sounds.
Compiling in fast dired implementation.
Using portable dumper.
Using system malloc.
Using DLL version of C runtime library
----- Original Message -----
From: "Vin Shelton" <acs(a)xemacs.org>
To: "Olivier Fambon" <Olivier.Fambon(a)inrialpes.fr>
Cc: <xemacs-beta(a)xemacs.org>
Sent: Wednesday, May 30, 2001 7:05 PM
Subject: Re: Problem with indentation in 21.4
Olivier Fambon <Olivier.Fambon(a)inrialpes.fr> writes:
> Hi all, [this is a repost]
>
> Try this one:
>
>
> class Bozo {
>
> void func() {
> if () {
> if () { //
> }
> } else {
> /* */
> }
> }
> }
>
>
> The last '}' will not indent correctly.
>
> - removing the first // comment, or adding a */ cures the problem
> - removing one level of if() does not show the problem
>
> I already submitted this to bug-cc-modeļ¼ gnu.org... but...
>
> It does not seem to be a cc-mode bug, coz it works in 21.1.8 with the
> same cc-mode package installed.
>
> It does not work under any of the 21.4.x XEmacses.
>
> Moreover, parens-highlighting behaves strangely:
>
> - it works 'forward', i.e putting the cursor on func()'s { shows a
> correct match, but
>
> - it does not work 'backwards', i.e putting the cursor on func()'s
> last } shows am incorrect match.
>
>
> Any ideas on what's wrong ? Thanxs.
This seems to work fine for me here, both with my normal
customizations and with a -vanilla xemacs - the final brace ends up in
the correct position. What version of 21.4 are you running? My M-x
describe-installation reports the following:
uname -a: Linux
zion.rcn.com 2.4.5-pre1 #2 SMP Wed May 2 21:13:09 EDT
2001 i686
unknown
/usr/local/src/xemacs-21.4-2001-05-18/configure
'--prefix=/usr/local/xemacs-21.4-2001-05-18' '--with-gcc'
'--site-includes=/usr/local/include' '--site-libraries=/usr/local/lib'
'--infopath=/usr/local/info' '--with-mule=no' '--compiler=gcc'
'--cflags=-O3 -malign-double -pipe -march=pentiumpro -mcpu=pentiumpro -ffa
st-math -fno-exceptions' '--with-dialogs=no' '--with-widgets=no'
'--package-path=/usr/local/site-packages::/usr/local/xemacs-packages'
'--debug=no' '--error-checking=none'
XEmacs 21.4.3 "Academic Rigor" configured for `i686-pc-linux'.
Compilation / Installation:
Source code location:
/usr/local/src/xemacs-21.4-2001-05-18
Installation prefix:
/usr/local/xemacs-21.4-2001-05-18
Additional header files: /usr/local/include
Additional libraries: /usr/local/lib
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler:
gcc -O3 -malign-double -pipe -march=pentiumpro -mcpu=pentiumpro -ffast-mat
h -fno-exceptions
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Sound:
Compiling in support for sound (native).
Compiling in support for ESD (Enlightened Sound Daemon).
Databases:
Compiling in support for Berkeley database.
Internationalization:
Mail:
Compiling in support for "dot-locking" mail spool file locking
method.
Other Features:
Compiling in support for dynamic shared object modules.
Please try with the most recent version of 21.4. If the problem
persists, please supply more details about your XEmacs installation
and your cc-mode customizations.
- vin