[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
- Re: lexical-binding is turned on in more use cases, (continued)
- Re: lexical-binding is turned on in more use cases, Eli Zaretskii, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Stefan Monnier, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Eli Zaretskii, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Alan Mackenzie, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Eli Zaretskii, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Alan Mackenzie, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Eli Zaretskii, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Alan Mackenzie, 2020/03/08
- Re: lexical-binding is turned on in more use cases, Richard Stallman, 2020/03/10
- Re: lexical-binding is turned on in more use cases, Stefan Monnier, 2020/03/11
- Re: lexical-binding is turned on in more use cases,
Stefan Monnier <=
- Re: lexical-binding is turned on in more use cases, Stefan Monnier, 2020/03/08
- Re: lexical-binding is turned on in more use cases, John Wiegley, 2020/03/09
- Re: lexical-binding is turned on in more use cases, Stefan Monnier, 2020/03/09
- RE: lexical-binding is turned on in more use cases, Drew Adams, 2020/03/09
- Re: lexical-binding is turned on in more use cases, Stefan Monnier, 2020/03/09
- Re: lexical-binding is turned on in more use cases, John Wiegley, 2020/03/09
- Re: lexical-binding is turned on in more use cases, Alan Mackenzie, 2020/03/10
- Re: lexical-binding is turned on in more use cases, Andrea Corallo, 2020/03/10
- Re: lexical-binding is turned on in more use cases, Alan Mackenzie, 2020/03/10
- Re: lexical-binding is turned on in more use cases, Andrea Corallo, 2020/03/10