[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorporate package macrostep into Emacs core
From: |
Gerd Möllmann |
Subject: |
Re: Incorporate package macrostep into Emacs core |
Date: |
Tue, 19 Mar 2024 10:48:48 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Philip Kaludercic <philipk@posteo.net> writes:
> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>
>> Philip Kaludercic <philipk@posteo.net> writes:
>>
>>> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>>>
>>>> Philip Kaludercic <philipk@posteo.net> writes:
>>>>
>>>>>> (add-hook 'c-mode-hook #'macrostep-c-mode-hook)
>>>>>
>>>>> This part is suspicious. First of all, it looks like one is adding a
>>>>> hook to a hook, but this would unconditionally modify
>>>>> c-mode-hook, which I don't think is reliable. Can we find some other
>>>>> way to update the variables, depending on the major mode? E.g. in
>>>>> macrostep.el one could try to intern (format "macrostep-%s-init"
>>>>> major-mode) and check if the symbol is fboundp?
>>>>
>>>> Also, it would be nice to support C++ and Objc, which we have in Emacs
>>>> (c-mode-common-hook).
>>>
>>> From what I understand, this feature is based on cmacexp, which in turn
>>> just uses cpp.
>>
>> What's the problem using cpp?
>
> I don't know what Objc does, but in the case of C++ my understanding was
> that for example Templates were not expanded by C++. Of course, if that
> is not the intention, then never mind my comment.
The preprocessor is the same for all three languages.
If by templates, you mean C++ templates -- these have nothing to do with
the preprocessor. They don't work on the level of text.
- Re: Incorporate package macrostep into Emacs or NonGNU ELPA?, (continued)
- Re: Incorporate package macrostep into Emacs or NonGNU ELPA?, Eli Zaretskii, 2024/03/02
- Re: Incorporate package macrostep into Emacs or NonGNU ELPA?, Jeremy Bryant, 2024/03/02
- Re: Incorporate package macrostep into Emacs core, Jeremy Bryant, 2024/03/17
- Re: Incorporate package macrostep into Emacs core, Philip Kaludercic, 2024/03/18
- Re: Incorporate package macrostep into Emacs core, Jeremy Bryant, 2024/03/18
- Re: Incorporate package macrostep into Emacs core, Philip Kaludercic, 2024/03/19
- Re: Incorporate package macrostep into Emacs core, Gerd Möllmann, 2024/03/19
- Re: Incorporate package macrostep into Emacs core, Philip Kaludercic, 2024/03/19
- Re: Incorporate package macrostep into Emacs core, Gerd Möllmann, 2024/03/19
- Re: Incorporate package macrostep into Emacs core, Philip Kaludercic, 2024/03/19
- Re: Incorporate package macrostep into Emacs core,
Gerd Möllmann <=
- Re: Incorporate package macrostep into Emacs core, Jonathan Oddie, 2024/03/19
- Re: Incorporate package macrostep into Emacs core, Jeremy Bryant, 2024/03/19
- Re: Incorporate package macrostep into Emacs core, Jeremy Bryant, 2024/03/22
- Re: Incorporate package macrostep into Emacs core, Stefan Monnier, 2024/03/22
- Re: Incorporate package macrostep into Emacs core, Eli Zaretskii, 2024/03/18
- Re: Incorporate package macrostep into Emacs core, Stefan Monnier, 2024/03/18
- Re: Incorporate package macrostep into Emacs core, Jeremy Bryant, 2024/03/18
- Re: Incorporate package macrostep into Emacs core, Eli Zaretskii, 2024/03/19