emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/xpm 8bfffeb 10/37: [xpm] Fix byte-compilation bugs.


From: Stefan Monnier
Subject: [elpa] externals/xpm 8bfffeb 10/37: [xpm] Fix byte-compilation bugs.
Date: Sat, 28 Nov 2020 14:15:32 -0500 (EST)

branch: externals/xpm
commit 8bfffeb06f57042e85ee0ca1c238a173a32d75f0
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [xpm] Fix byte-compilation bugs.
    
    * packages/xpm/xpm-m2z.el: Require ‘cl’ when compiling.
    * packages/xpm/xpm.el: Likewise.
    Also, add "manual" autoload for ‘image-toggle-display’.
---
 NEWS       | 3 +++
 xpm-m2z.el | 1 +
 xpm.el     | 3 +++
 3 files changed, 7 insertions(+)

diff --git a/NEWS b/NEWS
index c78384c..623a2df 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ NEWS for xpm.el (et al)
 See the end for copying conditions.
 
 
+- 1.0.1 | NOT YET RELEASED
+  - byte-compilation bugfix
+
 - 1.0.0 | 2014-05-18
   - initial release
 
diff --git a/xpm-m2z.el b/xpm-m2z.el
index c699b9a..c9124f9 100644
--- a/xpm-m2z.el
+++ b/xpm-m2z.el
@@ -31,6 +31,7 @@
 
 (require 'artist)
 (require 'cl-lib)
+(eval-when-compile (require 'cl))
 
 ;;;###autoload
 (defun xpm-m2z-ellipse (cx cy rx ry)
diff --git a/xpm.el b/xpm.el
index 26b5f7f..c8cad4e 100644
--- a/xpm.el
+++ b/xpm.el
@@ -67,6 +67,9 @@
 ;;; Code:
 
 (require 'cl-lib)
+(eval-when-compile (require 'cl))
+
+(autoload 'image-toggle-display "image-mode" t) ; hmm is this TRT?
 
 (defvar xpm-raster-inhibit-continuity-optimization nil
   "Non-nil disables a heuristic in `xpm-raster' filling.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]