bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#4288: [PATCH] Emacs CVS: lisp/longlines.el -- Add turn-on-* and off


From: Jari Aalto
Subject: bug#4288: [PATCH] Emacs CVS: lisp/longlines.el -- Add turn-on-* and off functions
Date: Sat, 29 Aug 2009 22:43:41 +0300

Patch is against Emacs CVS as of 2009-08-29 22:42 UTC

2009-08-29  Jari Aalto  <address@hidden>

        * longlines.el (turn-on-longlines-mode): New function.
        (turn-off-longlines-mode): New function.

>From f7d3f7485349e7081bd1717f7fda260b850301ea Mon Sep 17 00:00:00 2001
From: Jari Aalto <address@hidden>
Date: Sat, 29 Aug 2009 22:40:09 +0300
Subject: [PATCH] lisp/longlines.el: (turn-{on,off}-longlines-mode): New 
functions


Signed-off-by: Jari Aalto <address@hidden>
---
 lisp/longlines.el |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/lisp/longlines.el b/lisp/longlines.el
index 9ef0638..fab7aee 100644
--- a/lisp/longlines.el
+++ b/lisp/longlines.el
@@ -94,6 +94,18 @@ This is used when `longlines-show-hard-newlines' is on."
 (defvar message-indent-citation-function)
 
 ;;;###autoload
+(defun turn-on-longlines-mode ()
+  "Turn on Long Lines mode."
+  (interactive)
+  (longlines-mode 1))
+
+;;;###autoload
+(defun turn-off-longlines-mode ()
+  "Turn off Long Lines mode."
+  (interactive)
+  (longlines-mode 1))
+
+;;;###autoload
 (define-minor-mode longlines-mode
   "Toggle Long Lines mode.
 In Long Lines mode, long lines are wrapped if they extend beyond
-- 
1.6.3.3


reply via email to

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