[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysterious "save abbrevs"?

From: Richard Stallman
Subject: Re: Mysterious "save abbrevs"?
Date: Fri, 28 Dec 2001 00:47:52 -0700 (MST)

    How about doing it without leaving a trace?

    (let ((abbrevs-changed abbrevs-changed))
      (define-abbrev-table 'c-mode-abbrev-table
        '(("else" "else" c-electric-continued-statement 0)
          ("while" "while" c-electric-continued-statement 0))))

That solves one problem--it won't cause the "Save abbrevs" question.
However, there is the other issue: that these abbrevs will
be saved in the user's .abbrev_defs file.  I think it is not right
to save in that file abbrevs that the user did not define--but what
do others think?

Also, if the user ever changes these abbrevs, and saves that,
it looks lik ecc-mode will override the user's definitions.
That wouldn't be right either.

Perhaps the right thing to do is (1) do save these abbrevs
in the user's .abbrev_defs if he decides to save, and (2)
once .abbrev_defs has definitions for c-mode-abbrev-table,
cc-mode should cease trying to specify any.

Do people see any problems with that solution?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]