[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs modifies (s/fd/ad/) C code as you type(!)
From: |
Jim Meyering |
Subject: |
Re: emacs modifies (s/fd/ad/) C code as you type(!) |
Date: |
Thu, 28 Oct 2004 22:33:51 +0200 |
Luc Teirlinck <address@hidden> wrote:
> Jim Meyering wrote:
>
> 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;'.
>
> I can not reproduce this. Maybe your .abbrev_defs or whatever your
> value of abbrev-file-name is, has gotten corrupted. Does the problem
> still happen when you temporarily rename that file before doing `emacs -q'?
>
> I bet you must have inadvertently added an abbrev "fd" expanding into
> "ad" either to global-abbrev-table or to c-mode-abbrev-table.
>
> This has happened occasionally to me too.
You've nailed it.
This garbage somehow crept into my .abbrev_defs file:
(define-abbrev-table 'c-mode-abbrev-table '(
("fd" "ad" nil 0)
))
Thank you!