From 1d4060eedd8d8e702c87a165a6be6cf9942615d7 Mon Sep 17 00:00:00 2001 From: Leon Rische Date: Sat, 19 Sep 2020 20:48:39 +0200 Subject: Add obsolete alias for `org-fc-show-all` --- org-fc-compat.el | 38 ++++++++++++++++++++++++++++++++++++++ org-fc.el | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 org-fc-compat.el diff --git a/org-fc-compat.el b/org-fc-compat.el new file mode 100644 index 0000000..a717d99 --- /dev/null +++ b/org-fc-compat.el @@ -0,0 +1,38 @@ +;;; org-fc-compat.el --- Compatibility Code -*- lexical-binding: t; -*- + +;; Copyright (C) 2020 Leon Rische + +;; Author: Leon Rische +;; Url: https://www.leonrische.me/pages/org_flashcards.html +;; Package-requires: ((emacs "26.3") (org "9.3")) +;; Version: 0.0.1 + +;; 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 . + +;;; Commentary: +;; +;; Code needed for backward compatibility with previous versions of org-fc. +;; +;;; Code: +;;;; Obsolete Aliases + +(define-obsolete-function-alias + 'org-fc-show-all + 'org-fc-remove-overlays "0.0.1") + +;;; Footer + +(provide 'org-fc-compat) + +;;; org-fc-compat.el ends here diff --git a/org-fc.el b/org-fc.el index 27cd036..ef7d381 100644 --- a/org-fc.el +++ b/org-fc.el @@ -36,6 +36,8 @@ (require 'subr-x) (require 'svg) +(require 'org-fc-compat) + ;;; Customization (defgroup org-fc nil -- cgit v1.2.3