Skip to content

Commit

Permalink
Merge pull request #1055 from gracjan/pr-require-at-least-emacs-24-1
Browse files Browse the repository at this point in the history
Require at least Emacs 24.1
  • Loading branch information
gracjan committed Jan 22, 2016
2 parents 38388ea + 24619e0 commit ffeab32
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 32 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ dist: trusty

env:
matrix:
- EMACS=emacs23 TARGET=check
- EMACS=emacs24 TARGET=check
- EMACS=emacs-snapshot TARGET=check
- TARGET=deploy-manual
Expand All @@ -16,10 +15,6 @@ matrix:
- env: EMACS=emacs-snapshot TARGET=check

install:
- if [ "$EMACS" = "emacs23" ]; then
sudo apt-get update &&
sudo apt-get install --no-install-suggests --no-install-recommends --assume-yes emacs23-nox;
fi
- if [ "$EMACS" = "emacs24" ]; then
sudo apt-get update &&
sudo apt-get install --no-install-suggests --no-install-recommends --assume-yes emacs24-nox;
Expand Down
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ for setup and user guide.

## Installation - more information

`haskell-mode` supports GNU Emacs versions 23, 24 and upcoming 25
(snapshot).
`haskell-mode` supports GNU Emacs version 24 or later.

`haskell-mode` is available from [melpa-stable](http://stable.melpa.org) (releases) and [melpa](http://melpa.org)
(git snapshots).
Expand All @@ -75,18 +74,6 @@ Other means of obtaining `haskell-mode` include
[el-get](https://github.com/dimitri/el-get),
[Emacs Prelude](https://github.com/bbatsov/prelude) and [Debian package](https://packages.debian.org/search?keywords=haskell-mode).

Emacs23 requires an the use of "cl-lib". cl-lib.el can be found in
the tests/compat directory. Copy cl-lib.el to your emacs
directory, e.g. ~/.emacs.d directory and put

```el
(add-to-list 'load-path "~/.emacs.d/")
(require 'cl-lib)
```

in your .emacs file.


## Installation from git repository

Running `haskell-mode` directly from sources is easy but
Expand Down
17 changes: 5 additions & 12 deletions doc/haskell-mode.texi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Front-Cover Texts and no Back-Cover Texts.
@top Haskell Mode

Haskell Mode is an Haskell development Environment for GNU Emacs version
23 or later. It provides syntax-based indentation, font locking,
24 or later. It provides syntax-based indentation, font locking,
editing cabal files, and supports running an inferior Haskell
interpreter (e.g. GHCi).

Expand Down Expand Up @@ -156,7 +156,7 @@ source code in color now.

@section Installation - more information

@code{haskell-mode} supports GNU Emacs versions 23, 24 and upcoming 25
@code{haskell-mode} supports GNU Emacs versions 24 and upcoming 25
(snapshot).

@code{haskell-mode} is available from @uref{http://stable.melpa.org,melpa-stable (releases)} and @uref{http://melpa.org, melpa
Expand All @@ -166,16 +166,9 @@ Other means of obtaining `haskell-mode` include
@uref{https://github.com/dimitri/el-get, el-get},
@uref{https://github.com/bbatsov/prelude, Emacs Prelude}) and @uref{https://packages.debian.org/search?keywords=haskell-mode, Debian package}.

Emacs23 requires an the use of @code{cl-lib}. cl-lib.el can be found in
the tests/compat directory. Copy cl-lib.el to your emacs
directory, e.g. ~/.emacs.d directory and put

@lisp
(add-to-list 'load-path "~/.emacs.d/")
(require 'cl-lib)
@end lisp

in your .emacs file.
Last version of haskell-mode that supported Emacs 23 is haskell-mode
13.18 available at
@uref{https://github.com/haskell/haskell-mode/releases/tag/v13.18}.

@section Customizing

Expand Down
2 changes: 1 addition & 1 deletion haskell-mode-pkg.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(define-package "haskell-mode" "16.1-git" "A Haskell editing mode"
'((cl-lib "0.5"))
'((emacs "24.1") (cl-lib "0.5"))
:url "https://github.com/haskell/haskell-mode"
:keywords '("haskell" "cabal" "ghc" "repl"))
;; Local Variables:
Expand Down
3 changes: 3 additions & 0 deletions haskell-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,9 @@ Minor modes that work well with `haskell-mode':
- `smerge-mode': show and work with diff3 conflict markers used
by git, svn and other version control systems."
:group 'haskell
(when (< emacs-major-version 24)
(error "haskell-mode requires at least Emacs 24"))

;; paragraph-{start,separate} should treat comments as paragraphs as well.
(set (make-local-variable 'paragraph-start)
(concat " *{-\\| *-- |\\|" page-delimiter))
Expand Down

0 comments on commit ffeab32

Please sign in to comment.