all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregory Heytings <gregory@heytings.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>, emacs-devel@gnu.org
Subject: Re: New warnings compiling emacs just now
Date: Thu, 22 Apr 2021 07:45:58 +0000	[thread overview]
Message-ID: <a87041afcb8e4e04c52b@heytings.org> (raw)
In-Reply-To: <83im4epz6v.fsf@gnu.org>

[-- 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


  reply	other threads:[~2021-04-22  7:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a87041afcb8e4e04c52b@heytings.org \
    --to=gregory@heytings.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=paaguti@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.