emacs-devel
[Top][All Lists]
Advanced

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

Re: lexical-binding is turned on in more use cases


From: Stefan Monnier
Subject: Re: lexical-binding is turned on in more use cases
Date: Sun, 08 Mar 2020 19:41:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Does it help to say
>
>   M-: (eval (c-align-cpp-indent-to-body))
             ^
             '

The quote is of the essence, otherwise you're asking to evaluate the
return value of the expression.

And since the above expression was wrong (it lacked the let binding),
what he should do is either

    M-: (eval '(let ((c-syntactic-context (c-guess-basic-syntax))))
                 (c-align-cpp-indent-to-body)) RET

or use `(defvar c-syntactic-context nil)` somewhere, or

    M-: (progn (defvar c-syntactic-context)
               (let ((c-syntactic-context (c-guess-basic-syntax))))
                 (c-align-cpp-indent-to-body)) RET

or write the `(let ((c-syntactic-context (c-guess-basic-syntax))))
(c-align-cpp-indent-to-body))` inside `cc-cmds.el` or `cc-vars.el`
and use `C-x C-e` there.

or ...


        Stefan




reply via email to

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