[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c++-mode: Invalid function: (setq ad-return-value?(ad-Orig-c-parse-s
From: |
Alan Mackenzie |
Subject: |
Re: c++-mode: Invalid function: (setq ad-return-value?(ad-Orig-c-parse-state)) |
Date: |
Wed, 27 Mar 2013 11:07:09 +0000 (UTC) |
User-agent: |
tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.2-STABLE (amd64)) |
Hi, Andrew.
Andrew Pennebaker <andrew.pennebaker@gmail.com> wrote:
> [-- text/plain, encoding 7bit, charset: ISO-8859-1, 34 lines --]
> Updated<https://github.com/mcandre/mcandre/tree/4b8512cf84c4e3553d43182a8a5c72f6f37566f8/cpp/fizzy>code
> example. I had to copy and paste `i` and `{` on lines 48 and 49,
> because Emacs kept complaining
> "Invalid function: (setq ad-return-value (ad-Orig-c-parse-state))"
> On Tue, Mar 26, 2013 at 4:12 PM, Andrew Pennebaker <
> andrew.pennebaker@gmail.com> wrote:
>> I can't insert important C++ characters into my code (attached). When I
>> press ; or { Emacs shows an error in the minibuffer:
>> "Invalid function: (setq ad-return-value (ad-Orig-c-parse-state))"
>> Major mode is c++-mode.
>> Using Emacs 24.2.1.
>> --
>> Cheers,
>> Andrew Pennebaker
>> www.yellosoft.us
Like Leo suggested, it looks like somebody's put a `defadvice' on
c-parse-state, though I've no idea why that should produce an "Invalid
function" error. The code for advice has changed somewhat between Emacs
24.2 and 24.3.
Can you say why c-parse-state was advised? Possibly for debugging? In
that context, I would strongly advise you upgrade your Emacs to 24.3. In
Emacs 24.2, c-parse-state was buggy, and now it is, well, less buggy. ;-)
> --
> Cheers,
> Andrew Pennebaker
> www.yellosoft.us
--
Alan Mackenzie (Nuremberg, Germany).