[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bookmarks in EWW
From: |
Stefan Monnier |
Subject: |
Re: Bookmarks in EWW |
Date: |
Sun, 19 Apr 2020 09:18:21 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Michael Heerdegen [2020-04-19 05:42:48] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> >> Nice try, but you won't get off the hook so easily: the byte-compiler
>> >> is all written in Elisp.
>> > Hmm, too bad.
>> > Ok, we could ehm ... give `make-local-variable' a byte-hunk-handler that
>> > calls `byte-compile--declare-var'. Does that make sense?
>>
>> Sounds credible, yes,
>
> But it seems that this byte-hunk-handler is ignored unless
> `make-local-variable' is called at top-level. Is this expected?
Oh, right `byte-hunk-handler` is to handle top-level uses only
(e.g. top-level uses of `require` trigger loading the file at
compilation time, whereas they don't when not at top-level).
I think you want to use `(byte-defop-compiler-1 make-local-variable)`
and then define `byte-compile-make-local-variable`.
Stefan
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/04/18
- Re: Bookmarks in EWW,
Stefan Monnier <=
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/04/19
- Re: Bookmarks in EWW, Stefan Monnier, 2020/04/20
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/04/20
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/04/29
- Re: Bookmarks in EWW, Stefan Monnier, 2020/04/29
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/04/29
- Re: Bookmarks in EWW, Stefan Monnier, 2020/04/29
- Re: Bookmarks in EWW, Michael Heerdegen, 2020/04/30
Re: Bookmarks in EWW, Michael Heerdegen, 2020/04/26