aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sainty2019-10-22 00:01:59 +1300
committerPhil Sainty2019-11-15 00:39:13 +1300
commitb28f35ac65631243b8e29856a2d13e70d2567b53 (patch)
tree02e39d4ac63a187e66f5b9982b5233744a7ad031
parentbf29fc46c81114909bcfe9c4b60bd419651b49a7 (diff)
downloademacs-b28f35ac65631243b8e29856a2d13e70d2567b53.tar.gz
emacs-b28f35ac65631243b8e29856a2d13e70d2567b53.zip
Backwards-compatibility function definitions for so-long.el
* so-long.el (so-long-inhibit-whitespace-mode) (so-long-make-buffer-read-only, so-long-revert-buffer-read-only) (so-long-inhibit-global-hl-line-mode): Restore dummy definitions of now-obsolete hook functions used by earlier versions of so-long.el, to support users who have saved these symbols in their customized values for the hooks in question.
-rw-r--r--lisp/so-long.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/lisp/so-long.el b/lisp/so-long.el
index 5c9711b0bb0..982a699667a 100644
--- a/lisp/so-long.el
+++ b/lisp/so-long.el
@@ -1801,6 +1801,23 @@ or call the function `global-so-long-mode'.")
1801 (message "Error unloading so-long: %S %S" (car err) (cdr err)) 1801 (message "Error unloading so-long: %S %S" (car err) (cdr err))
1802 t)))) 1802 t))))
1803 1803
1804;; Backwards-compatibility definitions.
1805;;
1806;; The following obsolete functions may exist in the user's customized hook
1807;; values dating from versions < 1.0, so we need to ensure that such saved
1808;; values will not trigger errors.
1809(cl-flet ((ignore () nil))
1810 (dolist (hookfunc '((so-long-inhibit-whitespace-mode . so-long-hook)
1811 (so-long-make-buffer-read-only . so-long-hook)
1812 (so-long-revert-buffer-read-only . so-long-revert-hook)
1813 (so-long-inhibit-global-hl-line-mode . so-long-mode-hook)))
1814 (defalias (car hookfunc) #'ignore
1815 (format "Obsolete function. It now does nothing.
1816
1817If it appears in `%s', you should remove it."
1818 (cdr hookfunc)))
1819 (make-obsolete (car hookfunc) nil "so-long.el version 1.0")))
1820
1804 1821
1805(provide 'so-long) 1822(provide 'so-long)
1806 1823