unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master d50e0bd 2/2: Use compiler macros for the key syntax checks
       [not found] ` <20211128171307.2DC5920B2A@vcs0.savannah.gnu.org>
@ 2021-11-28 17:47   ` Lars Ingebrigtsen
  2021-11-28 17:58     ` Eli Zaretskii
  2021-11-28 17:56   ` Michael Albinus
  1 sibling, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-11-28 17:47 UTC (permalink / raw)
  To: emacs-devel; +Cc: Mattias Engdegård

This leads to:

  ./temacs --batch  -l loadup --temacs=pbootstrap  
Symbol's function definition is void: remq
  make[2]: *** [Makefile:908: bootstrap-emacs.pdmp] Error  255
  make[1]: *** [Makefile:452: src] Error  2
  make: *** [Makefile:1162: bootstrap] Error  2

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: master d50e0bd 2/2: Use compiler macros for the key syntax checks
       [not found] ` <20211128171307.2DC5920B2A@vcs0.savannah.gnu.org>
  2021-11-28 17:47   ` master d50e0bd 2/2: Use compiler macros for the key syntax checks Lars Ingebrigtsen
@ 2021-11-28 17:56   ` Michael Albinus
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2021-11-28 17:56 UTC (permalink / raw)
  To: emacs-devel; +Cc: Mattias Engdegård

Mattias Engdegård <mattiase@savannah.gnu.org> writes:

Hi Mattias,

>     Use compiler macros for the key syntax checks
>     
>     Compile-time key string syntax checks are better written using
>     compiler macros than with byte-hunk-handlers inside the compiler
>     proper.
>     
>     * lisp/emacs-lisp/bytecomp.el (byte-compile-define-keymap)
>     (byte-compile-define-keymap--define): Remove.
>     * lisp/keymap.el (keymap--compile-check): New.
>     (keymap-set, keymap-global-set, keymap-local-set, keymap-global-unset)
>     (keymap-local-unset, keymap-unset, keymap-substitute)
>     (keymap-set-after, key-translate, keymap-lookup, keymap-local-lookup)
>     (keymap-global-lookup): Use compiler-macro for argument checks.
>     * lisp/subr.el (define-keymap--compile): New.
>     (define-keymap--define): Fold into define-keymap.
>     (define-keymap): Use compiler-macro.
>     (defvar-keymap): Use define-keymap.
> ---
>  lisp/emacs-lisp/bytecomp.el | 63 ---------------------------------------------
>  lisp/keymap.el              | 22 +++++++++++++++-
>  lisp/subr.el                | 30 +++++++++++++++++----
>  3 files changed, 46 insertions(+), 69 deletions(-)

This fails on emba:

--8<---------------cut here---------------start------------->8---
#12 1510. Loading emacs-lisp/byte-run (source)...
#12 1510. Loading emacs-lisp/backquote (source)...
#12 1510. Loading subr (source)...
#12 1510. Symbol's function definition is void: remq
#12 1510. make[2]: *** [bootstrap-emacs.pdmp] Error 255
#12 1510. Makefile:907: recipe for target 'bootstrap-emacs.pdmp' failed
#12 1510. make[2]: Leaving directory '/checkout/src'
#12 1510. make[1]: *** [src] Error 2
#12 1510. make: *** [bootstrap] Error 2
#12 1510. Makefile:452: recipe for target 'src' failed
#12 1510. make[1]: Leaving directory '/checkout'
#12 1510. Makefile:1159: recipe for target 'bootstrap' failed
#12 ERROR: executor failed running [/bin/sh -c make bootstrap]: exit code: 2
--8<---------------cut here---------------end--------------->8---

See also <https://emba.gnu.org/emacs/emacs/-/jobs/34063/raw>.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: master d50e0bd 2/2: Use compiler macros for the key syntax checks
  2021-11-28 17:47   ` master d50e0bd 2/2: Use compiler macros for the key syntax checks Lars Ingebrigtsen
@ 2021-11-28 17:58     ` Eli Zaretskii
  2021-11-28 18:14       ` Mattias Engdegård
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2021-11-28 17:58 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: mattiase, emacs-devel

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 28 Nov 2021 18:47:11 +0100
> Cc: Mattias Engdegård <mattiase@acm.org>
> 
> This leads to:
> 
>   ./temacs --batch  -l loadup --temacs=pbootstrap  
> Symbol's function definition is void: remq

Because byte-run, which now calls remq, is loaded by loadup before
subr, where remq is defined.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: master d50e0bd 2/2: Use compiler macros for the key syntax checks
  2021-11-28 17:58     ` Eli Zaretskii
@ 2021-11-28 18:14       ` Mattias Engdegård
  0 siblings, 0 replies; 4+ messages in thread
From: Mattias Engdegård @ 2021-11-28 18:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Lars Ingebrigtsen, emacs-devel

28 nov. 2021 kl. 18.58 skrev Eli Zaretskii <eliz@gnu.org>:
>>  ./temacs --batch  -l loadup --temacs=pbootstrap  
>> Symbol's function definition is void: remq
> 
> Because byte-run, which now calls remq, is loaded by loadup before
> subr, where remq is defined.

Thank you, and sorry about breaking the build. Now rectified.
(I did bootstrap, but only before this little change because surely it wouldn't make anything go wrong.)




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-28 18:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20211128171305.8769.17735@vcs0.savannah.gnu.org>
     [not found] ` <20211128171307.2DC5920B2A@vcs0.savannah.gnu.org>
2021-11-28 17:47   ` master d50e0bd 2/2: Use compiler macros for the key syntax checks Lars Ingebrigtsen
2021-11-28 17:58     ` Eli Zaretskii
2021-11-28 18:14       ` Mattias Engdegård
2021-11-28 17:56   ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).