From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "James K. Lowden" Newsgroups: gmane.emacs.help Subject: Re: c-fill-paragrpah for code, not just comments Date: Fri, 14 Dec 2018 13:33:54 -0500 Organization: http://www.NewsDemon.com Message-ID: <20181214133354.cfaee65f9d809acc547a43bb@speakeasy.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1544812419 23850 195.159.176.226 (14 Dec 2018 18:33:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Dec 2018 18:33:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 14 19:33:35 2018 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 1gXsHF-00065H-QP for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Dec 2018 19:33:33 +0100 Original-Received: from localhost ([::1]:34964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXsJM-0007CK-Kd for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Dec 2018 13:35:44 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin1!goblin.stu.neva.ru!border1.nntp.ams1.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.fr7!futter-mich.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post02.iad!fx08.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Sylpheed 3.4.3 (GTK+ 2.24.28; x86_64--netbsd) Original-Lines: 15 Original-X-Complaints-To: abuse@newsdemon.com Original-NNTP-Posting-Date: Fri, 14 Dec 2018 18:34:05 UTC X-Received-Bytes: 1272 X-Received-Body-CRC: 1201928804 X-Original-Bytes: 1089 Original-Xref: usenet.stanford.edu gnu.emacs.help:224866 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:118995 Archived-At: On Thu, 13 Dec 2018 16:28:20 -0500 Ken Goldman wrote: > (The use case is auto-generated code that has to be pasted into a > Word document and has a line length limit.) Ah, so what you really want to do is format the code to fit the allotted space. That's not "filling", which usually means to re-flow the lines as prose. I don't know the emacs answer. I think you'll find that GNU indent has all the knobs you need, though. --jkl