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: Re: How to do a massive unfill paragraph operation over several hundred files? Date: Mon, 1 Oct 2018 07:48:51 +0200 Message-ID: <87o9ceusho.fsf@tu-berlin.de> References: <8636ts4jz3.fsf@zoho.com> <86zhvyzq4c.fsf@zoho.com> 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 1538372851 8352 195.159.176.226 (1 Oct 2018 05:47:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2018 05:47:31 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 01 07:47:27 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 1g6r3H-000259-0D for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Oct 2018 07:47:27 +0200 Original-Received: from localhost ([::1]:59495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6r5N-00048B-OA for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Oct 2018 01:49:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6r4k-00047D-HC for help-gnu-emacs@gnu.org; Mon, 01 Oct 2018 01:49:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6r4h-0005N3-BR for help-gnu-emacs@gnu.org; Mon, 01 Oct 2018 01:48:58 -0400 Original-Received: from exchange.tu-berlin.de ([130.149.7.70]:26332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6r4g-0005LM-VW for help-gnu-emacs@gnu.org; Mon, 01 Oct 2018 01:48:55 -0400 Original-Received: from SPMA-04.tubit.win.tu-berlin.de (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 6EABB97217A_BB1B544B; Mon, 1 Oct 2018 05:48:52 +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-04.tubit.win.tu-berlin.de (Sophos Email Appliance) with ESMTPS id 0B10797069C_BB1B544F; Mon, 1 Oct 2018 05:48:52 +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; Mon, 1 Oct 2018 07:48:51 +0200 In-Reply-To: <86zhvyzq4c.fsf@zoho.com> X-ClientProxiedBy: EX-CAS-01.tubit.win.tu-berlin.de (172.26.35.181) 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=references:from:to:cc:subject:reply-to:in-reply-to:date:message-id:mime-version:content-type; s=dkim-tub; bh=asV8hx2i/pKqLcYJP1G1vSQ8ND+BaQPA+F8SOQ9NoMA=; b=co0dH0bfZG4O6sX0MQCpkkB2ffZ7sj9LQJ68zcRtbUqwIUmGf8CfY/YqPNU7+4wzs28rAAEFci8grO6NpbMzfvLyx6cei/+HXlLG3qESt0H/nIEIRba5F/Ty9Zt/LTE6koESzNHpoDLFguPYjHuZwQo7/bZR52BZkGT1Qej4iTc= X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 130.149.7.70 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:118083 Archived-At: I tried that: loading org works without problems. But how can I use the unfill-paragraph function programmatically (non-interactively) in a script, so that every paragraph of the file is processed by it (as is done through repeated execution of a kbd macro)? On So, Sep 30 2018, Emanuel Berg wrote: > Gerald Wildgruber wrote: > >> But these are of course interactive >> functions; how would I script them to >> non-interactive code in the way you proposed >> for emacs batch processing, i.e. >> not expecting any input except a number files >> to operate on? Can I load org-mode on the fly >> in order for emacs to understand the second >> function (org-forward-paragraph)? > > I don't know if org-mode loads automatically > with Emacs, if it does, it should be enough to > remove the -Q option from the Emacs invocation > command, to make the org-mode functions > available. If it doesn't load automatically, > removing the -Q option should still make it > work since this will include your regular init. > If it still doesn't work, load it manually in > the Emacs script. -- Sent with mu4e