emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mmm-mode d5af05a4a9 09/14: Mark `mmm-add-find-file-hook


From: ELPA Syncer
Subject: [elpa] externals/mmm-mode d5af05a4a9 09/14: Mark `mmm-add-find-file-hook' as obsolete
Date: Mon, 10 Oct 2022 18:57:51 -0400 (EDT)

branch: externals/mmm-mode
commit d5af05a4a95b4e29663b0d7815a79d3ae1793453
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>

    Mark `mmm-add-find-file-hook' as obsolete
    
    Both mmm-add-find-file-hook and its alias mmm-add-find-file-hooks are
    deprecated since mmm-mode 0.3.8.  Mark them both as obsolete.
    Also escape the single quote in the docstring.
---
 mmm-auto.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mmm-auto.el b/mmm-auto.el
index 30d46b726d..cee17e9a9b 100644
--- a/mmm-auto.el
+++ b/mmm-auto.el
@@ -164,10 +164,12 @@ to apply, or always if `mmm-global-mode' is t."
 
 (add-hook 'mmm-major-mode-hook #'mmm-mode-on-maybe)
 
-(defalias 'mmm-add-find-file-hooks #'mmm-add-find-file-hook)
+(define-obsolete-function-alias 'mmm-add-find-file-hooks 
'mmm-add-find-file-hook "0.3.8"
+  "Both `mmm-add-find-file-hooks' and `mmm-add-find-file-hook' are 
deprecated.")
 (defun mmm-add-find-file-hook ()
-  "Equivalent to (setq mmm-global-mode 'maybe).
+  "Equivalent to \(setq mmm-global-mode \\='maybe).
 This function is deprecated and may be removed in future."
+  (declare (obsolete nil "0.3.8"))
   (message "Warning: `mmm-add-find-file-hook' is deprecated.")
   (setq mmm-global-mode 'maybe))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]