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 do a massive unfill paragraph operation over several hundred files? Date: Fri, 28 Sep 2018 10:16:36 +0200 Message-ID: <87wor6ujdn.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 1538170380 27724 195.159.176.226 (28 Sep 2018 21:33:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2018 21:33:00 +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:32:56 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 1g60Nb-00076Q-OZ for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2018 23:32:55 +0200 Original-Received: from localhost ([::1]:46239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g60Pi-0001FW-6A for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2018 17:35:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5nx8-0002Fg-N9 for help-gnu-emacs@gnu.org; Fri, 28 Sep 2018 04:16:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5nx2-0007n4-Gs for help-gnu-emacs@gnu.org; Fri, 28 Sep 2018 04:16:44 -0400 Original-Received: from exchange.tu-berlin.de ([130.149.7.70]:62458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5nx2-0007mF-66 for help-gnu-emacs@gnu.org; Fri, 28 Sep 2018 04:16:40 -0400 Original-Received: from SPMA-01.tubit.win.tu-berlin.de (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 825F17DDEFE_BADE365B for ; Fri, 28 Sep 2018 08:16:37 +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-01.tubit.win.tu-berlin.de (Sophos Email Appliance) with ESMTPS id 4561D7DB09F_BADE365F for ; Fri, 28 Sep 2018 08:16:37 +0000 (GMT) Original-Received: from corax (178.198.8.89) by ex-mbx-10.tubit.win.tu-berlin.de (130.149.6.164) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Sep 2018 10:16:36 +0200 X-ClientProxiedBy: ex-mbx-09.tubit.win.tu-berlin.de (130.149.6.163) To ex-mbx-10.tubit.win.tu-berlin.de (130.149.6.164) 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=JXaGiH8Po7elga3N4+fpXjqhiwB4ZoMAakpPbGXAi5olRZK2lk+OvKmohw0BpthiSPS5K2JDf4gK9nZangMO1qUOeRYZloOavAjclcawkolzEtidO3QJZiYncJ7u9NayvQhFjay2Bi9sb8Cq47ko7cXK841wGxyr0aqxVF/67a4= 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:118059 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