From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: toggle the line-length of an entire document? Date: Mon, 03 Oct 2016 08:07:20 +0100 Message-ID: <87ponhud07.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1475478526 12923 195.159.176.226 (3 Oct 2016 07:08:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2016 07:08:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 09:08:42 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqxMR-00015a-1v for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 09:08:27 +0200 Original-Received: from localhost ([::1]:34128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqxMP-0003XY-KU for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 03:08:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqxLZ-0003NT-2i for help-gnu-emacs@gnu.org; Mon, 03 Oct 2016 03:07:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqxLV-0006wJ-SF for help-gnu-emacs@gnu.org; Mon, 03 Oct 2016 03:07:32 -0400 Original-Received: from avasout04.plus.net ([212.159.14.19]:35761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqxLV-0006uo-Ka for help-gnu-emacs@gnu.org; Mon, 03 Oct 2016 03:07:29 -0400 Original-Received: from london.london ([146.198.45.77]) by avasout04 with smtp id qv7S1t0011fufKm01v7TGt; Mon, 03 Oct 2016 08:07:27 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=T4LOdLCQ c=1 sm=1 tr=0 a=j96G4TbZBVZKAi//1dm9DA==:117 a=j96G4TbZBVZKAi//1dm9DA==:17 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=9FSUxZ5dsOcSPAUDrkEA:9 a=qD_ylCjEucmkgQZX:21 a=YtBg_9aaNu9jLFr6:21 a=AgAfjKAlhU7YH3XIS50A:9 a=ONNS8QRKHyMA:10 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 X-AUTH: skimble@:2500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.19 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111438 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm currently using this to toggle line-length - =2D-8<---------------cut here---------------start------------->8--- (setq-default fill-column 100) (defvar my-last-fill-col 75 "...") (defun my-toggle-fill-column () "..." (interactive) (setq-default my-last-fill-col (prog1 fill-column (setq-default fill-column my-last-fill-col))) (message "Fill column is now %d" fill-column)) =2D-8<---------------cut here---------------end--------------->8--- Which works great for individual paragraphs, but now I want to toggle the line-length of an entire document, but I can't work out how I'm supposed to do it, so can anyone help please? Great aunt google hasn't been much help so far! :) Any ideas please folks? Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJX8gOpAAoJEDaBgBkK+INb4JUQALi6N8aEWgdxqAloxOe03rSp HAcK/x1/ebAuD0BLFrTW2s1cfIU4xeRW3rlidjCuOLnEjRVItxBWJcp9jmuaaBZJ 1uU0OkScYucUMotapXPlRRylDu4zKHyg5LOh3KuOW2A8XKpQtnPexCeSXd8x9QeS skWKhTIjKvCKJ4lR8VGaVnyZ+XcgBaorhxULNrBiy9rm+9sD9xY0q0uyXaGvwe3k pHzO1rp2P6k0aYnFAUeZp33qyr+wWvOZLeKrhtfJHkU7RZYdp9NaAZLieBOGCkRE dbSrmS8oFwdkKzcYd7S6hFmFPTEC7Uyc8eeDuHT2iXKYDIswiW1cvw1DzZC7F/QS Bsx9SPsAT9OUxNcx6+DFLDT0by0x4ena9LjSj7zb6d5j/s3L67bMzMJF4NqAP8j7 eUece1oevrAIrNPf8cMY8bNcvTuK6ezJIJ/GvoJzTgCqGs0TRzILYF3Rbwu7pSv8 JVvkgeHEVqmVaDAWr3D9JwYs4fs8+caidP3cyHV/L9J4wDmH1+33GYMYvmkrA4m3 AA9q5YLprRLcvq9mRYRNfkICWU57rmIG1yqs0q+luKaAZvtKGcSU/KfMtAg6Hsgq lfDtxos9eqiqJtkxF7o8h6Er20M3vC9R2ONxGL2at8vhxtPTXcDt1zpXgbL7yaxj qA1XXkP144CLTvRwQERW =w83v -----END PGP SIGNATURE----- --=-=-=--