1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 01:57:09 +03:00

Merge pull request #242 from wasamasa/elisp-emacs25

Emacs 25.1 fixes
This commit is contained in:
Joel Martin 2016-10-25 11:07:07 -05:00 committed by GitHub
commit e00c42c2d3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
;; HACK: `text-quoting-style' prettifies quotes in error messages on
;; Emacs 25.1, but no longer does from 25.2 upwards...
(when (and (= emacs-major-version 25) (= emacs-minor-version 1))
(setq text-quoting-style 'grave))
(defvar tokens nil)
(defun peek ()

View File

@ -16,6 +16,6 @@
; Hello World!
;=>nil
(elisp-eval "(setq emacs-version-re (rx \"24.\" digit \".\" digit))")
(elisp-eval "(setq emacs-version-re (rx (+ digit) \".\" digit \".\" digit))")
(elisp-eval "(and (string-match-p emacs-version-re emacs-version) t)")
;=>true