I have a defconst declaration called "attend". Would like to have a function that displays the "attend" string in the help buffer as is done by "describe-function". What can I do?
Heime wrote: > I have a defconst declaration called "attend". Would like to > have a function that displays the "attend" string in the > help buffer as is done by "describe-function". What can > I do? Use the source, Luke! C-h f describe-function RET If you see a button there to the source, hit it. It's in help-fns.el lines 251-284. If you don't see a link, see if you can get that. Do you build Emacs from source? If not ... see if you can get that! Here are a bunch of useful commands: https://dataswamp.org/~incal/conf/.zsh/install-emacs -- underground experts united https://dataswamp.org/~incal
------- Original Message -------
On Friday, November 11th, 2022 at 7:46 PM, Emanuel Berg <incal@dataswamp.org> wrote:
> Heime wrote:
>
> > I have a defconst declaration called "attend". Would like to
> > have a function that displays the "attend" string in the
> > help buffer as is done by "describe-function". What can
> > I do?
>
>
> Use the source, Luke!
>
> C-h f describe-function RET
>
> If you see a button there to the source, hit it.
>
> It's in help-fns.el lines 251-284.
>
> If you don't see a link, see if you can get that. Do you build
> Emacs from source? If not ... see if you can get that!
> Here are a bunch of useful commands:
>
> https://dataswamp.org/~incal/conf/.zsh/install-emacs
Yes, I build from source.
I have done the following solution
(with-help-window (help-buffer)
(insert attend-message))
Heime wrote: >> https://dataswamp.org/~incal/conf/.zsh/install-emacs > > Yes, I build from source. Do you also configure with --with-native-compilation ? This will speed up things a lot. On a Debian-type system, install libgccjit-10-dev, that's where the capability resides that can translate Elisp into machine code. It says JIT but it doesn't seem to happen that way, rather it compiles natively and caches every time you start Emacs and it loads something that isn't already cached (say a byte-compiled Elisp file). You still want to byte-compile tho for educational reasons not the least ... -- underground experts united https://dataswamp.org/~incal
------- Original Message ------- On Sunday, November 13th, 2022 at 5:11 PM, Emanuel Berg <incal@dataswamp.org> wrote: > Heime wrote: > > > > https://dataswamp.org/~incal/conf/.zsh/install-emacs > > > > Yes, I build from source. > > > Do you also configure with --with-native-compilation ? I did not. Just followed INSTALL.REPO "Building and Installing Emacs from the Repository". > This will speed up things a lot. > > On a Debian-type system, install libgccjit-10-dev, that's > where the capability resides that can translate Elisp into > machine code. > > It says JIT but it doesn't seem to happen that way, rather it > compiles natively and caches every time you start Emacs and it > loads something that isn't already cached (say a byte-compiled > Elisp file). > > You still want to byte-compile tho for educational reasons not > the least ... > > -- > underground experts united > https://dataswamp.org/~incal
Heime wrote: >> Do you also configure with --with-native-compilation ? > > I did not. Just followed INSTALL.REPO "Building and > Installing Emacs from the Repository". Yeah, enable it. Speed me up :) https://www.youtube.com/watch?v=dCuCpVPkWDY -- underground experts united https://dataswamp.org/~incal