From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: toggle the line-length of an entire document? Date: Mon, 3 Oct 2016 06:21:05 -0700 (PDT) Message-ID: References: <87ponhud07.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1475500942 22597 195.159.176.226 (3 Oct 2016 13:22:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2016 13:22:22 +0000 (UTC) To: Sharon Kimble , help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 15:22:14 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 1br3Bg-0001fm-M4 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 15:21:44 +0200 Original-Received: from localhost ([::1]:37122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br3Bf-00069H-63 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 09:21:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br3BF-00069A-FS for help-gnu-emacs@gnu.org; Mon, 03 Oct 2016 09:21:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br3BA-0002Dw-E8 for help-gnu-emacs@gnu.org; Mon, 03 Oct 2016 09:21:16 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:39680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br3BA-0002DY-4G for help-gnu-emacs@gnu.org; Mon, 03 Oct 2016 09:21:12 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u93DL91D020516 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 3 Oct 2016 13:21:10 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id u93DL9qd028269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Oct 2016 13:21:09 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u93DL7u0015849; Mon, 3 Oct 2016 13:21:08 GMT In-Reply-To: <87ponhud07.fsf@skimble.plus.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:111440 Archived-At: > I'm currently using this to toggle line-length - > (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)) >=20 > 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? See these commands: `fill-region', `fill-nonuniform-paragraphs', and `fill-individual-paragraphs'.