From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gerald Wildgruber Newsgroups: gmane.emacs.help Subject: How to automate an unfill paragraph operation over several files? Date: Fri, 28 Sep 2018 19:52:41 +0200 Message-ID: <87tvm9v79y.fsf@tu-berlin.de> Reply-To: wildgruber@tu-berlin.de NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1538170454 402 195.159.176.226 (28 Sep 2018 21:34:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2018 21:34:14 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 23:34:10 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 1g60Om-0008RC-VS for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2018 23:34:09 +0200 Original-Received: from localhost ([::1]:46258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g60Qt-0001wx-MM for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2018 17:36:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5wyb-0005Wg-He for help-gnu-emacs@gnu.org; Fri, 28 Sep 2018 13:54:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5wxx-00006n-Pe for help-gnu-emacs@gnu.org; Fri, 28 Sep 2018 13:54:19 -0400 Original-Received: from exchange.tu-berlin.de ([130.149.7.70]:35465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5wxu-00080c-AS for help-gnu-emacs@gnu.org; Fri, 28 Sep 2018 13:54:12 -0400 Original-Received: from SPMA-02.tubit.win.tu-berlin.de (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id C4E7E36CDA_BAE6A7FB for ; Fri, 28 Sep 2018 17:53:03 +0000 (GMT) Original-Received: from exchange.tu-berlin.de (exchange.tu-berlin.de [130.149.7.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "exchange.tu-berlin.de", Issuer "DFN-Verein Global Issuing CA" (not verified)) by SPMA-02.tubit.win.tu-berlin.de (Sophos Email Appliance) with ESMTPS id 842D635CF5_BAE6A7FF for ; Fri, 28 Sep 2018 17:53:03 +0000 (GMT) Original-Received: from corax (178.198.8.89) by ex-mbx-10.tubit.win.tu-berlin.de (172.26.35.180) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Sep 2018 19:53:03 +0200 X-ClientProxiedBy: EX-CAS-02.tubit.win.tu-berlin.de (172.26.35.182) To ex-mbx-10.tubit.win.tu-berlin.de (172.26.35.180) X-PMWin-Version: 4.0.1, Antivirus-Engine: 3.73.0, Antivirus-Data: 5.55 X-PureMessage: [Scanned] X-SASI-RCODE: 200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tu-berlin.de; h=from:to:subject:reply-to:date:message-id:mime-version:content-type; s=dkim-tub; bh=tg9oephWZTvuPjQ/HtvwROtZ14De3dXNmNlFloBBTQ8=; b=B0eH57NyT7046ipa8kiuw4JROypqXySbF+wtmkFkCktFCJQg4rybF6wH3tu3Lko4wEJsBgiJj905IfPyIyEsFR46FiJhS053Os/nQ2tpEWKcmDrL+vt8FUlaVN6lTwAe4nDRtb6UTZo1hw87q1b2C1BPFjKygd4npWFOL8MivWA= X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 130.149.7.70 X-Mailman-Approved-At: Fri, 28 Sep 2018 17:34:33 -0400 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:118060 Archived-At: Hi emacs (latest git checkout, on linux) and org-mode are my main environment for doing (natural language) text related work. Recently I changed the way text is processed and stored: I no longer use hard coded line breaks introduced automatically at fill-column with auto-fill-mode enabled; instead I now use visual-line-mode together with visual-fill-column mode to break lines only VISUALLY at fill-column: there are no real hard-coded line breaks in the file, each paragraph is just one long line. I would like to harmonize all my existing Org mode and LaTeX text files in this way, i.e.: "unfill" every paragraph within them, -- while ideally preserving Org mode constructs like lists, BEGIN/END blocks etc. MY QUESTION: What would be a good way to AUTOMATE such an unfill operation, removing all line breaks from all paragraphs over a large number of files? Thanks Gerald. -- Sent with mu4e