Fix compilation issues in elpa.git

* dev/examples.el: Require examples-to-tests to make it compilable.
* .gitignore: Add a general .elc rule to also catch dev/*.elc.
master
Stefan Monnier 8 years ago
parent 8c22267566
commit 8a145cacf8
  1. 3
      .gitignore
  2. 5
      dev/examples.el

3
.gitignore vendored

@ -1,4 +1,3 @@
/dash.elc
/dash-functional.elc
*.elc
/dash-autoloads.el
/dash-pkg.el

@ -1,6 +1,6 @@
;;; examples.el --- Examples/tests for dash.el's API -*- lexical-binding: t -*-
;; Copyright (C) 2015 Free Software Foundation, Inc.
;; Copyright (C) 2015, 2017 Free Software Foundation, Inc.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@ -23,6 +23,9 @@
;;; Code:
(require 'dash)
(eval-when-compile
(unless (fboundp 'def-example-group)
(require 'examples-to-tests "dev/examples-to-tests")))
(defun even? (num) (= 0 (% num 2)))
(defun square (num) (* num num))

Loading…
Cancel
Save