* Displays defconst string in help buffer
@ 2022-11-11 19:29 Heime
2022-11-11 19:46 ` Emanuel Berg
0 siblings, 1 reply; 6+ messages in thread
From: Heime @ 2022-11-11 19:29 UTC (permalink / raw)
To: Heime via Users list for the GNU Emacs text editor
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?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Displays defconst string in help buffer
2022-11-11 19:29 Displays defconst string in help buffer Heime
@ 2022-11-11 19:46 ` Emanuel Berg
2022-11-12 7:50 ` Heime
0 siblings, 1 reply; 6+ messages in thread
From: Emanuel Berg @ 2022-11-11 19:46 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Displays defconst string in help buffer
2022-11-11 19:46 ` Emanuel Berg
@ 2022-11-12 7:50 ` Heime
2022-11-13 17:11 ` Emanuel Berg
0 siblings, 1 reply; 6+ messages in thread
From: Heime @ 2022-11-12 7:50 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
------- 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))
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Displays defconst string in help buffer
2022-11-12 7:50 ` Heime
@ 2022-11-13 17:11 ` Emanuel Berg
2022-11-14 13:46 ` Heime
0 siblings, 1 reply; 6+ messages in thread
From: Emanuel Berg @ 2022-11-13 17:11 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Displays defconst string in help buffer
2022-11-13 17:11 ` Emanuel Berg
@ 2022-11-14 13:46 ` Heime
2022-11-15 1:04 ` Emanuel Berg
0 siblings, 1 reply; 6+ messages in thread
From: Heime @ 2022-11-14 13:46 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
------- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Displays defconst string in help buffer
2022-11-14 13:46 ` Heime
@ 2022-11-15 1:04 ` Emanuel Berg
0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2022-11-15 1:04 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-11-15 1:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-11 19:29 Displays defconst string in help buffer Heime
2022-11-11 19:46 ` Emanuel Berg
2022-11-12 7:50 ` Heime
2022-11-13 17:11 ` Emanuel Berg
2022-11-14 13:46 ` Heime
2022-11-15 1:04 ` Emanuel Berg
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.