Skip to content

Require at least Emacs 24.1 #1055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# We should have a script that changes it everywhere it is needed and
# syncs it with current git tag.
#
VERSION = 13.17-git
VERSION = 16.1-git

INSTALL_INFO = install-info

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
23 changes: 8 additions & 15 deletions doc/haskell-mode.texi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@c %**start of header
@setfilename haskell-mode.info
@documentencoding UTF-8
@settitle Haskell Mode 13.17-git
@settitle Haskell Mode 16.1-git
@c %**end of header

@dircategory Emacs
Expand All @@ -11,9 +11,9 @@
@end direntry

@copying
This manual is for Haskell mode, version 13.17-git
This manual is for Haskell mode, version 16.1-git

Copyright @copyright{} 2013 Haskell Mode contributors.
Copyright @copyright{} 2013-2016 Haskell Mode contributors.

@quotation
Permission is granted to copy, distribute and/or modify this document
Expand Down 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
4 changes: 2 additions & 2 deletions haskell-mode-pkg.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(define-package "haskell-mode" "13.17-git" "A Haskell editing mode"
'((cl-lib "0.5"))
(define-package "haskell-mode" "16.1-git" "A Haskell editing mode"
'((emacs "24.1") (cl-lib "0.5"))
:url "https://github.com/haskell/haskell-mode"
:keywords '("haskell" "cabal" "ghc" "repl"))
;; Local Variables:
Expand Down
7 changes: 5 additions & 2 deletions haskell-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
;; 2001-2002 Reuben Thomas (>=v1.4)
;; 2003 Dave Love <[email protected]>
;; Keywords: faces files Haskell
;; Version: 13.17-git
;; Version: 16.1-git
;; URL: https://github.com/haskell/haskell-mode

;; This file is not part of GNU Emacs.
Expand Down Expand Up @@ -145,7 +145,7 @@
;; All functions/variables start with `(literate-)haskell-'.

;; Version of mode.
(defconst haskell-version "13.15-git"
(defconst haskell-version "16.1-git"
"The release version of `haskell-mode'.")

;;;###autoload
Expand Down 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