[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs modifies (s/fd/ad/) C code as you type(!)
From: |
Jim Meyering |
Subject: |
emacs modifies (s/fd/ad/) C code as you type(!) |
Date: |
Thu, 28 Oct 2004 21:07:19 +0200 |
[using the latest from CVS, updated/built a few hours ago]
This is pretty nasty. I typed `int fd;' and later got a compile
failure because it had been converted (as I typed!) to `int ad;'.
Reproduce like this:
Edit a new (empty is fine) file whose name ends in `.c', e.g.:
emacs -q /tmp/no-such.c
and then type `fd '. After I type the SPACE, I see that
the contents of my buffer are changed to `ad '.
Wow.
---------------
In GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2004-10-28 on pi
configured using `configure '--disable-nls'
'--prefix=/p/p/emacs-2004-10-28.08h23' 'CC=/usr/bin/gcc' 'CFLAGS=-O3
-fstrict-aliasing' 'LDFLAGS=-s''
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: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: C
Minor modes in effect:
mouse-wheel-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
line-number-mode: t
abbrev-mode: t
Recent input:
a SPC f d SPC <escape> x r e p o r <tab> <return>
Recent messages:
Loading mwheel...done
(emacs -q /tmp/no-such-file.c)
Loading tooltip...done
Loading image...done
(New file)
Loading cc-mode...done
Loading emacsbug...done
- emacs modifies (s/fd/ad/) C code as you type(!),
Jim Meyering <=