[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorporate package macrostep into Emacs core
From: |
Philip Kaludercic |
Subject: |
Re: Incorporate package macrostep into Emacs core |
Date: |
Tue, 19 Mar 2024 07:26:34 +0000 |
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. If something like this feature should be supported for
C++ and Objc, then the functionality should first be added to cmacexp or
something analogous (as it is my understanding that this is currently
not the case).
--
Philip Kaludercic on peregrine
- 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 <=
- 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, 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