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

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

[elpa] externals/olivetti 2ae21fa 128/134: Remove redundant turn-on-oliv


From: Stefan Monnier
Subject: [elpa] externals/olivetti 2ae21fa 128/134: Remove redundant turn-on-olivetti-mode function
Date: Thu, 25 Apr 2019 09:57:44 -0400 (EDT)

branch: externals/olivetti
commit 2ae21fa9fda463369a7b16cc7f4fbe0327064f33
Author: Paul W. Rankin <address@hidden>
Commit: Paul W. Rankin <address@hidden>

    Remove redundant turn-on-olivetti-mode function
---
 olivetti.el | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/olivetti.el b/olivetti.el
index 16c177f..9c942ad 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -350,12 +350,6 @@ If prefixed with ARG, incrementally increase."
 
 ;;; Mode Definition
 
-;;;###autoload
-(defun turn-on-olivetti-mode ()
-  "Turn on `olivetti-mode' unconditionally."
-  (interactive)
-  (olivetti-mode 1))
-
 (defvar olivetti-mode-map
   (let ((map (make-sparse-keymap)))
     (define-key map (kbd "C-c [") #'olivetti-shrink)
@@ -364,6 +358,9 @@ If prefixed with ARG, incrementally increase."
     map)
   "Mode map for `olivetti-mode'.")
 
+(define-obsolete-function-alias 'turn-on-olivetti-mode
+  'olivetti-mode "1.6.2")
+
 ;;;###autoload
 (define-minor-mode olivetti-mode
   "Olivetti provides a nice writing environment.



reply via email to

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