From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.bugs Subject: bug#4288: [PATCH] Emacs CVS: lisp/longlines.el -- Add turn-on-* and off functions Date: Sat, 29 Aug 2009 22:43:41 +0300 Message-ID: <87hbvqpfrm.fsf@jondo.cante.net> Reply-To: Jari Aalto , 4288@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1251576439 7824 80.91.229.12 (29 Aug 2009 20:07:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2009 20:07:19 +0000 (UTC) To: Emacs bug BTS Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 29 22:07:12 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by lo.gmane.org with esmtp (Exim 4.50) id 1MhUCe-0006Cr-J5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 22:07:12 +0200 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1MhUCe-0001TW-E0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 22:07:12 +0200 Original-Received: from mail-mx3.uio.no ([129.240.10.44]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1MhUCe-0001TT-Cq for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 22:07:12 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx3.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MhUCa-0004tX-G3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 22:07:12 +0200 Original-Received: from localhost ([127.0.0.1]:40216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhUCY-0008JJ-Mu for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Aug 2009 16:07:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhUCU-0008Ij-62 for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2009 16:07:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhUCP-0008BZ-Kh for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2009 16:07:01 -0400 Original-Received: from [199.232.76.173] (port=46080 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhUCP-0008BS-II for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2009 16:06:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59310) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhUCO-0000P1-RV for bug-gnu-emacs@gnu.org; Sat, 29 Aug 2009 16:06:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7TK6sTU004901; Sat, 29 Aug 2009 13:06:55 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7TJo4Ss031558; Sat, 29 Aug 2009 12:50:04 -0700 Resent-Date: Sat, 29 Aug 2009 12:50:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Jari Aalto Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 29 Aug 2009 19:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4288 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125157502629718 (code B ref -1); Sat, 29 Aug 2009 19:50:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 29 Aug 2009 19:43:46 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from emh03.mail.saunalahti.fi (emh03.mail.saunalahti.fi [62.142.5.109]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7TJhiCo029703 for ; Sat, 29 Aug 2009 12:43:46 -0700 Original-Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 66ACBEBAA5 for ; Sat, 29 Aug 2009 22:43:43 +0300 (EEST) Original-Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A03AFD3D7A2; Sat, 29 Aug 2009 22:43:43 +0300 Original-Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id 4F9FC4035 for ; Sat, 29 Aug 2009 22:43:42 +0300 (EEST) Original-Received: from [192.168.1.7] (helo=jondo.cante.net) by picasso.cante.net with esmtp (Exim 4.69) (envelope-from ) id 1MhTpr-0006Xa-Th for submit@emacsbugs.donarmstrong.com; Sat, 29 Aug 2009 22:43:39 +0300 Original-Received: from jaalto by jondo.cante.net with local (Exim 4.69) (envelope-from ) id 1MhTpt-00023b-GX for submit@emacsbugs.donarmstrong.com; Sat, 29 Aug 2009 22:43:41 +0300 X-SA-Exim-Connect-IP: 192.168.1.7 X-SA-Exim-Mail-From: jari.aalto@cante.net X-SA-Exim-Scanned: No (on picasso.cante.net); SAEximRunCond expanded to false X-Antivirus: VAMS X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 29 Aug 2009 16:07:01 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: 946C56945D32DC2A41261B4727ED9A54E770D7EB X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 108260 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.bugs:30650 Archived-At: --=-=-= Patch is against Emacs CVS as of 2009-08-29 22:42 UTC 2009-08-29 Jari Aalto * longlines.el (turn-on-longlines-mode): New function. (turn-off-longlines-mode): New function. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-lisp-longlines.el-turn-on-off-longlines-mode-New-fun.patch >From f7d3f7485349e7081bd1717f7fda260b850301ea Mon Sep 17 00:00:00 2001 From: Jari Aalto 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 --- 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 --=-=-=--