all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* New warnings compiling emacs just now
@ 2021-04-22  5:22 Pedro Andres Aranda Gutierrez
  2021-04-22  7:15 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2021-04-22  5:22 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

Hi,

I'm compiling Emacs master right now (on macOS Catalina) and have detected
a couple of warnings 'assignment to free variable repeat-map' (one in
tab-bar.el and one in window.el) Which I haven't seen before...

Best, /PA

-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

[-- Attachment #2: Type: text/html, Size: 610 bytes --]

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

* Re: New warnings compiling emacs just now
  2021-04-22  5:22 New warnings compiling emacs just now Pedro Andres Aranda Gutierrez
@ 2021-04-22  7:15 ` Eli Zaretskii
  2021-04-22  7:45   ` Gregory Heytings
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2021-04-22  7:15 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: emacs-devel

> From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Thu, 22 Apr 2021 07:22:25 +0200
> 
> I'm compiling Emacs master right now (on macOS Catalina) and have detected a couple of warnings
> 'assignment to free variable repeat-map' (one in tab-bar.el and one in window.el) Which I haven't seen
> before...

I don't see any warnings, so please show the warnings you see.



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

* Re: New warnings compiling emacs just now
  2021-04-22  7:15 ` Eli Zaretskii
@ 2021-04-22  7:45   ` Gregory Heytings
  2021-04-22  9:06     ` Basil L. Contovounesios
  0 siblings, 1 reply; 10+ messages in thread
From: Gregory Heytings @ 2021-04-22  7:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Pedro Andres Aranda Gutierrez, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]


>> I'm compiling Emacs master right now (on macOS Catalina) and have 
>> detected a couple of warnings 'assignment to free variable repeat-map' 
>> (one in tab-bar.el and one in window.el) Which I haven't seen before...
>
> I don't see any warnings, so please show the warnings you see.
>

I see them (and have seen them for a week or two), too:

In toplevel form:
tab-bar.el:2093:33: Warning: assignment to free variable ‘repeat-map’
In toplevel form:
window.el:10261:33: Warning: assignment to free variable ‘repeat-map’

Patch attached.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff; name=Fix-two-assignment-to-free-variable-repeat-map-warni.patch, Size: 1189 bytes --]

From 38404247ab682bf9692bd5bc5d9c2a94aa22ef65 Mon Sep 17 00:00:00 2001
From: Gregory Heytings <gregory@heytings.org>
Date: Thu, 22 Apr 2021 07:42:19 +0000
Subject: [PATCH] Fix two "assignment to free variable 'repeat-map'" warnings.

---
 lisp/tab-bar.el | 2 ++
 lisp/window.el  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index f3c2fb7ed9..e5abe6790d 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -2085,6 +2085,8 @@ tab-bar-switch-repeat-map
 (put 'tab-next 'repeat-map 'tab-bar-switch-repeat-map)
 (put 'tab-previous 'repeat-map 'tab-bar-switch-repeat-map)
 
+(defvar repeat-map)
+
 (defvar tab-bar-move-repeat-map
   (let ((map (make-sparse-keymap)))
     (define-key map "m" 'tab-move)
diff --git a/lisp/window.el b/lisp/window.el
index 071761ea50..6d798c5d75 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -10253,6 +10253,8 @@ ctl-x-4-map
 (define-key ctl-x-4-map "1" 'same-window-prefix)
 (define-key ctl-x-4-map "4" 'other-window-prefix)
 
+(defvar repeat-map)
+
 (defvar other-window-repeat-map
   (let ((map (make-sparse-keymap)))
     (define-key map "o" 'other-window)
-- 
2.30.2


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

* Re: New warnings compiling emacs just now
  2021-04-22  7:45   ` Gregory Heytings
@ 2021-04-22  9:06     ` Basil L. Contovounesios
  2021-04-22  9:19       ` Gregory Heytings
  0 siblings, 1 reply; 10+ messages in thread
From: Basil L. Contovounesios @ 2021-04-22  9:06 UTC (permalink / raw)
  To: Gregory Heytings
  Cc: Eli Zaretskii, Pedro Andres Aranda Gutierrez, emacs-devel

Gregory Heytings <gregory@heytings.org> writes:

>>> I'm compiling Emacs master right now (on macOS Catalina) and have detected a
>>> couple of warnings 'assignment to free variable repeat-map' (one in
>>> tab-bar.el and one in window.el) Which I haven't seen before...
>>
>> I don't see any warnings, so please show the warnings you see.
>
> I see them (and have seen them for a week or two), too:
>
> In toplevel form:
> tab-bar.el:2093:33: Warning: assignment to free variable ‘repeat-map’
> In toplevel form:
> window.el:10261:33: Warning: assignment to free variable ‘repeat-map’

Isn't this just the usual case of a stale lisp/ldefs-boot.el?  IOW, I'd
expect the warnings to go away when that file is updated to include the
repeat-map autoload.

-- 
Basil



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

* Re: New warnings compiling emacs just now
  2021-04-22  9:06     ` Basil L. Contovounesios
@ 2021-04-22  9:19       ` Gregory Heytings
  2021-04-22  9:43         ` Eli Zaretskii
  2021-04-22  9:49         ` Gregory Heytings
  0 siblings, 2 replies; 10+ messages in thread
From: Gregory Heytings @ 2021-04-22  9:19 UTC (permalink / raw)
  To: Basil L. Contovounesios
  Cc: Eli Zaretskii, Pedro Andres Aranda Gutierrez, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]


>>>> I'm compiling Emacs master right now (on macOS Catalina) and have 
>>>> detected a couple of warnings 'assignment to free variable 
>>>> repeat-map' (one in tab-bar.el and one in window.el) Which I haven't 
>>>> seen before...
>>>
>>> I don't see any warnings, so please show the warnings you see.
>>
>> I see them (and have seen them for a week or two), too:
>>
>> In toplevel form:
>> tab-bar.el:2093:33: Warning: assignment to free variable ‘repeat-map’
>> In toplevel form:
>> window.el:10261:33: Warning: assignment to free variable ‘repeat-map’
>
> Isn't this just the usual case of a stale lisp/ldefs-boot.el?  IOW, I'd 
> expect the warnings to go away when that file is updated to include the 
> repeat-map autoload.
>

I don't know, but I don't think that's the cause.  What I do know is that 
these warnings are displayed when running "make -j" on a fresh clone of 
the repository.

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

* Re: New warnings compiling emacs just now
  2021-04-22  9:19       ` Gregory Heytings
@ 2021-04-22  9:43         ` Eli Zaretskii
  2021-04-22  9:53           ` Basil L. Contovounesios
  2021-04-22  9:49         ` Gregory Heytings
  1 sibling, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2021-04-22  9:43 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: contovob, paaguti, emacs-devel

> Date: Thu, 22 Apr 2021 09:19:21 +0000
> From: Gregory Heytings <gregory@heytings.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,
>  Pedro Andres Aranda Gutierrez <paaguti@gmail.com>, emacs-devel@gnu.org
> 
> >> In toplevel form:
> >> tab-bar.el:2093:33: Warning: assignment to free variable ‘repeat-map’
> >> In toplevel form:
> >> window.el:10261:33: Warning: assignment to free variable ‘repeat-map’
> >
> > Isn't this just the usual case of a stale lisp/ldefs-boot.el?  IOW, I'd 
> > expect the warnings to go away when that file is updated to include the 
> > repeat-map autoload.
> 
> I don't know, but I don't think that's the cause.  What I do know is that 
> these warnings are displayed when running "make -j" on a fresh clone of 
> the repository.

Did you look in ldefs-boo.el to see whether the autoload is missing?



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

* Re: New warnings compiling emacs just now
  2021-04-22  9:19       ` Gregory Heytings
  2021-04-22  9:43         ` Eli Zaretskii
@ 2021-04-22  9:49         ` Gregory Heytings
  2021-04-22 22:28           ` Juri Linkov
  1 sibling, 1 reply; 10+ messages in thread
From: Gregory Heytings @ 2021-04-22  9:49 UTC (permalink / raw)
  To: Basil L. Contovounesios
  Cc: Eli Zaretskii, Pedro Andres Aranda Gutierrez, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]


>>>>> I'm compiling Emacs master right now (on macOS Catalina) and have 
>>>>> detected a couple of warnings 'assignment to free variable 
>>>>> repeat-map' (one in tab-bar.el and one in window.el) Which I haven't 
>>>>> seen before...
>>>> 
>>>> I don't see any warnings, so please show the warnings you see.
>>> 
>>> I see them (and have seen them for a week or two), too:
>>> 
>>> In toplevel form: tab-bar.el:2093:33: Warning: assignment to free 
>>> variable ‘repeat-map’ In toplevel form: window.el:10261:33: Warning: 
>>> assignment to free variable ‘repeat-map’
>> 
>> Isn't this just the usual case of a stale lisp/ldefs-boot.el?  IOW, I'd 
>> expect the warnings to go away when that file is updated to include the 
>> repeat-map autoload.
>
> I don't know, but I don't think that's the cause.  What I do know is 
> that these warnings are displayed when running "make -j" on a fresh 
> clone of the repository.
>

Hmmm...  In fact you're correct: the autoloaded repeat-map is not added to 
ldefs-boot.el.  I have no idea why.

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

* Re: New warnings compiling emacs just now
  2021-04-22  9:43         ` Eli Zaretskii
@ 2021-04-22  9:53           ` Basil L. Contovounesios
  2021-04-22 10:06             ` Gregory Heytings
  0 siblings, 1 reply; 10+ messages in thread
From: Basil L. Contovounesios @ 2021-04-22  9:53 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Gregory Heytings, paaguti, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Thu, 22 Apr 2021 09:19:21 +0000
>> From: Gregory Heytings <gregory@heytings.org>
>> Cc: Eli Zaretskii <eliz@gnu.org>,
>>  Pedro Andres Aranda Gutierrez <paaguti@gmail.com>, emacs-devel@gnu.org
>> 
>> >> In toplevel form:
>> >> tab-bar.el:2093:33: Warning: assignment to free variable ‘repeat-map’
>> >> In toplevel form:
>> >> window.el:10261:33: Warning: assignment to free variable ‘repeat-map’
>> >
>> > Isn't this just the usual case of a stale lisp/ldefs-boot.el?  IOW, I'd 
>> > expect the warnings to go away when that file is updated to include the 
>> > repeat-map autoload.
>> 
>> I don't know, but I don't think that's the cause.  What I do know is that 
>> these warnings are displayed when running "make -j" on a fresh clone of 
>> the repository.
>
> Did you look in ldefs-boo.el to see whether the autoload is missing?

It is, and 'admin/update_autogen -L' should make the warnings go away.

-- 
Basil



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

* Re: New warnings compiling emacs just now
  2021-04-22  9:53           ` Basil L. Contovounesios
@ 2021-04-22 10:06             ` Gregory Heytings
  0 siblings, 0 replies; 10+ messages in thread
From: Gregory Heytings @ 2021-04-22 10:06 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: Eli Zaretskii, paaguti, emacs-devel


>> Did you look in ldefs-boo.el to see whether the autoload is missing?
>
> It is, and 'admin/update_autogen -L' should make the warnings go away.
>

This indeed adds repeat-map to ldefs-boot.el, but it also changes quite a 
few other things in ldefs-boot.el.  Should this script not be 
automatically executed during make?



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

* Re: New warnings compiling emacs just now
  2021-04-22  9:49         ` Gregory Heytings
@ 2021-04-22 22:28           ` Juri Linkov
  0 siblings, 0 replies; 10+ messages in thread
From: Juri Linkov @ 2021-04-22 22:28 UTC (permalink / raw)
  To: Gregory Heytings
  Cc: Basil L. Contovounesios, Eli Zaretskii,
	Pedro Andres Aranda Gutierrez, emacs-devel

> Hmmm...  In fact you're correct: the autoloaded repeat-map is not added to
> ldefs-boot.el.  I have no idea why.

It seems there is a requirement to run this command every time
when a new autoload is added:

  make -C lisp autoloads



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

end of thread, other threads:[~2021-04-22 22:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-22  5:22 New warnings compiling emacs just now Pedro Andres Aranda Gutierrez
2021-04-22  7:15 ` Eli Zaretskii
2021-04-22  7:45   ` Gregory Heytings
2021-04-22  9:06     ` Basil L. Contovounesios
2021-04-22  9:19       ` Gregory Heytings
2021-04-22  9:43         ` Eli Zaretskii
2021-04-22  9:53           ` Basil L. Contovounesios
2021-04-22 10:06             ` Gregory Heytings
2021-04-22  9:49         ` Gregory Heytings
2021-04-22 22:28           ` Juri Linkov

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.