all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jari Aalto <jari.aalto@cante.net>
To: Emacs bug BTS <submit@emacsbugs.donarmstrong.com>
Subject: bug#4288: [PATCH] Emacs CVS: lisp/longlines.el -- Add turn-on-* and off functions
Date: Sat, 29 Aug 2009 22:43:41 +0300	[thread overview]
Message-ID: <87hbvqpfrm.fsf@jondo.cante.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]


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

2009-08-29  Jari Aalto  <jari.aalto@cante.net>

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-longlines.el-turn-on-off-longlines-mode-New-fun.patch --]
[-- Type: text/x-diff, Size: 1031 bytes --]

From f7d3f7485349e7081bd1717f7fda260b850301ea Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
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 <jari.aalto@cante.net>
---
 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	other threads:[~2009-08-29 19:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-29 19:43 Jari Aalto [this message]
     [not found] ` <jwvd46e9udm.fsf-monnier+emacsbugreports@gnu.org>
2009-08-29 21:40   ` Processed: Re: bug#4288: [PATCH] Emacs CVS: lisp/longlines.el -- Add turn-on-* and off functions Emacs bug Tracking System
2011-09-19 23:49   ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbvqpfrm.fsf@jondo.cante.net \
    --to=jari.aalto@cante.net \
    --cc=4288@emacsbugs.donarmstrong.com \
    --cc=submit@emacsbugs.donarmstrong.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.