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 16:37:52 +0200 Message-ID: <87in2lvikf.fsf@tu-berlin.de> References: <8636ts4jz3.fsf@zoho.com> <86zhvyzq4c.fsf@zoho.com> <86muryype2.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 1538404597 19820 195.159.176.226 (1 Oct 2018 14:36:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2018 14:36:37 +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 16:36:33 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 1g6zJJ-00053P-7S for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Oct 2018 16:36:33 +0200 Original-Received: from localhost ([::1]:38974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6zLP-0008Og-Ge for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Oct 2018 10:38:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6zKl-0008ND-48 for help-gnu-emacs@gnu.org; Mon, 01 Oct 2018 10:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6zKh-0004ns-Tu for help-gnu-emacs@gnu.org; Mon, 01 Oct 2018 10:38:03 -0400 Original-Received: from exchange.tu-berlin.de ([130.149.7.70]:62168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6zKh-0004mU-Ei for help-gnu-emacs@gnu.org; Mon, 01 Oct 2018 10:37:59 -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 40BB17DDB47_BB23142B; Mon, 1 Oct 2018 14:37:54 +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 CD5CE7DC64D_BB23141F; Mon, 1 Oct 2018 14:37:53 +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 16:37:53 +0200 In-Reply-To: <86muryype2.fsf@zoho.com> X-ClientProxiedBy: EX-MBX-01.tubit.win.tu-berlin.de (172.26.35.171) 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=5OrmDFfQ0HsGwg7gUhiY30d1sNsH7nakxFt8Z+JSaWE=; b=l0uAgJi/2WFftgNtGwu9K5h6U+6DRH4jJHvjF3T/mLWCEUOFzx7e12jYrsmmZMJFKxTORPI5H7QgGfQk8jmTM9NaiKfxtgWwm6rIkZA6TkGlMBuggWFYc7B2qB1fnIxAq7LNQWuwBWeRDV5zlHeyX9esS/tLktWKSzeYq94x8Bc= 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:118086 Archived-At: On Mo, Okt 01 2018, Emanuel Berg wrote: > Gerald Wildgruber wrote: > >> But how can I use the unfill-paragraph >> function programmatically (non-interactively) >> in a script > > (unfill-paragraph ARGS) Yes, that is the whole point I didn't understand! What does "ARGS" have to be when called non-interactively in a script. From the doc string of the function: (defun unfill-paragraph (&optional region) "Takes a multi-line paragraph and makes it into a single line of text." (interactive (progn (barf-if-buffer-read-only) '(t))) (let ((fill-column (point-max))) (fill-paragraph nil region))) I cannot see what to put here. -- Sent with mu4e