2015-01-27 03:51:47 +00:00
|
|
|
;;; core-emacs-backports.el --- Spacemacs Core File
|
2015-01-14 04:12:56 +00:00
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-01-14 04:12:56 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; 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
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2015-01-14 04:12:56 +00:00
|
|
|
|
2016-06-21 01:50:30 +00:00
|
|
|
;; nothing for now
|
2015-09-24 13:36:54 +00:00
|
|
|
|
2015-01-27 03:51:47 +00:00
|
|
|
(provide 'core-emacs-backports)
|
2018-01-13 03:37:04 +00:00
|
|
|
|
2021-04-28 05:17:17 +00:00
|
|
|
(when (version< emacs-version "26.3")
|
2019-08-22 19:11:01 +00:00
|
|
|
;; Hack to prevent TLS error with Emacs 26.1 and 26.2 and gnutls 3.6.4 and
|
|
|
|
;; above see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
|
|
|
|
(message (concat "Testing if your Emacs version %s and GnuTLS version "
|
|
|
|
"need the TLS work-around...")
|
|
|
|
emacs-version)
|
|
|
|
(message "More info at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341")
|
2019-09-15 02:15:53 +00:00
|
|
|
(unless (<= libgnutls-version 30603)
|
|
|
|
(message (concat "Your Emacs version %s and GnutTLS version %s "
|
|
|
|
"need the work-around, applying it...")
|
|
|
|
emacs-version libgnutls-version)
|
|
|
|
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")))
|