branch: elpa/with-editor
commit fb9e56082b50f15e5179238df3760d4e670f38af
Author: Noam Postavsky <[email protected]>
Commit: Noam Postavsky <[email protected]>

    .travis.yml: fail on byte compilation warnings
    
    Require pcase at compile time only.
---
 .travis.yml    | 2 +-
 with-editor.el | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index d947f32..3cffd21 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,7 +18,7 @@ install:
   - export EMACS=/tmp/emacs/bin/emacs
   - $EMACS --version
 script:
-  - make lisp EMACSBIN=$EMACS
+  - make lisp EMACSBIN=$EMACS EFLAGS='--eval "(setq byte-compile-error-on-warn 
t)"'
 notifications:
   email:
     on_success: never
diff --git a/with-editor.el b/with-editor.el
index f3ef7e0..6008c32 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -80,7 +80,8 @@
 ;;; Code:
 
 (require 'cl-lib)
-(require 'pcase)
+;; `pcase-dolist' is not autoloaded on Emacs 24.
+(eval-when-compile (require 'pcase))
 (require 'server)
 (require 'shell)
 

Reply via email to