]> code.delx.au - gnu-emacs/commitdiff
Fix seq requirement that broke bootstrap
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2016 15:13:03 +0000 (08:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 May 2016 15:13:20 +0000 (08:13 -0700)
* lisp/image.el (image--get-image): Require seq here, not at the
top level, to avoid ‘(require seq) while preparing to dump’ while
bootstrapping.  Suggested by Tino Calancha in:
http://lists.gnu.org/archive/html/emacs-devel/2016-05/msg00477.html

lisp/image.el

index a6464f7d4af9d84607b804cc35ebe20ccb1374fc..e06cb6f47337041a1fa8285944908a15f35221aa 100644 (file)
@@ -25,8 +25,6 @@
 
 ;;; Code:
 
-(require 'seq)
-
 (defgroup image ()
   "Image support."
   :group 'multimedia)
@@ -975,6 +973,7 @@ default is 20%."
                         0.8)))
 
 (defun image--get-image ()
+  (require 'seq)
   (let ((image (or (get-text-property (point) 'display)
                    ;; `put-image' uses overlays, so find an image in
                    ;; the overlays.