[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/vm fbe2f525c5 14/20: Move `defvar`s out of `eval-when-comp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/vm fbe2f525c5 14/20: Move `defvar`s out of `eval-when-compile` |
Date: |
Mon, 22 Jul 2024 13:02:26 -0400 (EDT) |
branch: elpa/vm
commit fbe2f525c5e2f72675d8e436229a235c28be8b38
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Move `defvar`s out of `eval-when-compile`
---
lisp/vm-mime.el | 24 +++++++++---------------
lisp/vm-pgg.el | 15 ++++++---------
lisp/vm-vars.el | 13 -------------
3 files changed, 15 insertions(+), 37 deletions(-)
diff --git a/lisp/vm-mime.el b/lisp/vm-mime.el
index f9449ad239..b1acbb18aa 100644
--- a/lisp/vm-mime.el
+++ b/lisp/vm-mime.el
@@ -90,10 +90,9 @@
;; A lot of the more complicated MIME character set processing is only
;; practical under MULE.
-(eval-when-compile
- (defvar latin-unity-ucs-list)
- (defvar latin-unity-character-sets)
- (defvar coding-system-list))
+(defvar latin-unity-ucs-list)
+(defvar latin-unity-character-sets)
+(defvar coding-system-list)
(defun vm-get-coding-system-priorities ()
"Return the value of `vm-coding-system-priorities', or a reasonable
@@ -141,13 +140,12 @@ default for it if it's nil. "
it's nil. This is used instead of `vm-mime-ucs-list' directly in order to
allow runtime checks for optional features like `mule-ucs' or
`latin-unity'. "
- (if vm-mime-ucs-list
- vm-mime-ucs-list
- (if (featurep 'latin-unity)
- latin-unity-ucs-list
- (if (vm-coding-system-p 'utf-8)
- '(utf-8 iso-2022-jp ctext escape-quoted)
- '(iso-2022-jp ctext escape-quoted)))))
+ (or vm-mime-ucs-list
+ (if (featurep 'latin-unity)
+ latin-unity-ucs-list
+ (if (vm-coding-system-p 'utf-8)
+ '(utf-8 iso-2022-jp ctext escape-quoted)
+ '(iso-2022-jp ctext escape-quoted)))))
(defun vm-update-mime-charset-maps ()
"Check for the presence of certain Mule coding systems, and add
@@ -180,10 +178,6 @@ configuration. "
(add-to-list 'vm-mime-mule-coding-to-charset-alist
'(iso-8859-1 "iso-8859-1")))
-(eval-when-compile
- (when (not (featurep 'xemacs))
- (defvar latin-unity-character-sets nil)))
-
(when (featurep 'xemacs)
(require 'vm-vars)
(vm-update-mime-charset-maps)
diff --git a/lisp/vm-pgg.el b/lisp/vm-pgg.el
index 3988a7b7f3..e8c673b6d6 100644
--- a/lisp/vm-pgg.el
+++ b/lisp/vm-pgg.el
@@ -107,15 +107,12 @@
(declare-function rfc822-addresses "ext:rfc822" (header-text))
-(eval-when-compile
- ;; avoid warnings
- (defvar vm-mode-line-format)
- (defvar vm-message-pointer)
- (defvar vm-presentation-buffer)
- (defvar vm-summary-buffer)
- ;; avoid bytecompile warnings
- (defvar vm-pgg-cleartext-state nil "For interfunction communication.")
-)
+;; avoid warnings
+(defvar vm-mode-line-format)
+(defvar vm-message-pointer)
+(defvar vm-presentation-buffer)
+(defvar vm-summary-buffer)
+(defvar vm-pgg-cleartext-state)
; group already defined in vm-vars.el
;(defgroup vm nil
diff --git a/lisp/vm-vars.el b/lisp/vm-vars.el
index 4507c9fb8a..37228f0ba7 100644
--- a/lisp/vm-vars.el
+++ b/lisp/vm-vars.el
@@ -7116,19 +7116,6 @@ Possible values are
`inactive' - session is inactive")
(make-variable-buffer-local 'vm-imap-session-type)
-(eval-when-compile
- (defvar current-itimer nil)
- (defvar current-menubar nil)
- (defvar scrollbar-height nil)
- (defvar top-toolbar nil)
- (defvar top-toolbar-height nil)
- (defvar bottom-toolbar nil)
- (defvar bottom-toolbar-height nil)
- (defvar right-toolbar nil)
- (defvar right-toolbar-width nil)
- (defvar left-toolbar nil)
- (defvar left-toolbar-width nil))
-
(defvar vm-fsfemacs-toolbar-installed-p nil)
;; this defvar matches the XEmacs one so it doesn't matter if VM
;; is loaded before highlight-headers.el
- [nongnu] elpa/vm updated (556b5b7d5e -> 89cfe9aa55), ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm f5e5717718 02/20: Use `with-current-buffer`; silences compiler warning, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 94077ac519 01/20: lisp/vm-macro.el (vm-save-restriction, vm-save-buffer-excursion): Delete, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 31b32ce4d2 03/20: Remove Emacs-20 support in vcard.el, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm b8abcfe761 04/20: Don't modify immediate constants, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm afd21a83dd 05/20: Reorder declarations to avoid compiler warnings, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 9f9eb4ab23 06/20: Improve markup in docstrings according to compiler warnings, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 508752603a 09/20: * lisp/vm-macro.el (vm-interactive-p): Move to top-level. Use everywhere, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 9df9bb01f5 12/20: Fix some `defcustom` types, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm fbe2f525c5 14/20: Move `defvar`s out of `eval-when-compile`,
ELPA Syncer <=
- [nongnu] elpa/vm bc3907cabe 15/20: Assume Emacs-22 hook names, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 4fd49c3888 10/20: vm-mime.el: Use `base64-(en|de)code-region` unconditionally, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm b31b4ec294 16/20: Silence misc warnings, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm ee7f6b8dd2 07/20: Tweak `require`s to fix compiler warnings, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm cdfd325bf9 11/20: Prefer `ash` over `lsh`, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 3535485061 08/20: vm-imap|pop.el (vm-expunge-imap|pop-messages): Fix misuse of `nreverse`, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 7b5009c0e5 13/20: Fix "interactive only" warnings, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 5a45e15c4b 17/20: Activate `lexical-binding`, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm 4fcb1dc734 18/20: restore commit history for vm-fix-many-warnings branch, ELPA Syncer, 2024/07/22
- [nongnu] elpa/vm ae8ec0e7f5 19/20: Merge branch 'main' into 'main', ELPA Syncer, 2024/07/22