-;;; fuel-base.el --- Basic FUEL support code
+;;; fuel-base.el --- Basic FUEL support code -*- lexical-binding: t -*-
;; Copyright (C) 2008 Jose Antonio Ortega Ruiz
;; See http://factorcode.org/license.txt for BSD license.
(interactive)
(message "FUEL %s" fuel-version))
-\f
;;; Customization:
;;;###autoload
"Factor's Ultimate Emacs Library."
:group 'languages)
-\f
-;;; Utilities:
-
+;;; Compatibility with Emacs 24.3
(unless (fboundp 'setq-local)
(defmacro setq-local (var val)
(list 'set (list 'make-local-variable (list 'quote var)) val)))
(list 'progn (list 'defvar var val docstring)
(list 'make-variable-buffer-local (list 'quote var)))))
+(unless (fboundp 'alist-get)
+ (defun alist-get (key alist)
+ (cdr (assoc key alist))))
+
+;;; Utilities:
(defun fuel-shorten-str (str len)
(let ((sl (length str)))
(if (<= sl len) str