From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: How to get all paragraphs in list? Date: Mon, 05 Sep 2022 07:40:49 +0300 Message-ID: <87leqytovi.fsf@iki.fi> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28699"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.37 (https://notmuchmail.org) Emacs/28.1.91 (x86_64-pc-linux-gnu) To: Jean Louis , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 05 06:42:10 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oV3w2-0007I6-66 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 06:42:10 +0200 Original-Received: from localhost ([::1]:37796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oV3w0-0006OH-W1 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 00:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV3v3-0006O5-2C for help-gnu-emacs@gnu.org; Mon, 05 Sep 2022 00:41:09 -0400 Original-Received: from meesny.iki.fi ([195.140.195.201]:33062) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV3ux-00061I-BW for help-gnu-emacs@gnu.org; Mon, 05 Sep 2022 00:41:08 -0400 Original-Received: from mithlond (mobile-access-56734d-158.dhcp.inet.fi [86.115.77.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by meesny.iki.fi (Postfix) with ESMTPSA id B106D2023B; Mon, 5 Sep 2022 07:40:56 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1662352856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=V1kaMIc3GdVWlJiPZHccn4ApMpRY50+7yIl5PaHI1AY=; b=wnLnlCevnjQcUIoad5BPWKeARGfOvr2b1YiYYhbVZXGWglbjAVfJBYt99qV+PXq2mfYIlD aKEG8lDq7EiFjqfilmZNNHpCeWesAjxZ5SwecV9kvj9RM0zmNp/eURt8YyQgt5p5RrXjWW yzSgF3K5HWSWt3vVbefDDVwYaBaXpgI= In-Reply-To: ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1662352856; a=rsa-sha256; cv=none; b=AcPyvzZ0+Q7s9UMjHpzDyr8wNBjnN8BKTavkW9N3v1NGHizwc2WLIF8GLiJ8+MRDrH6mWT 8pgzlGpUdfK8FC23YHg8I8xyiCBuHbACnghSBMAY248/pNeBCFfUkXuKDITyvj3T50qGh1 dHI1O7Asyav/gcCGspJTYG12q+KP/rE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1662352856; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=V1kaMIc3GdVWlJiPZHccn4ApMpRY50+7yIl5PaHI1AY=; b=BaTmQUj98MULtRVV7aZDFmzstECBwhcuayuEaCFSMjO5V/lGXS2T9J9LWKnPZv1ovthVdH ZeFWCcW1SPzJWit391pJGVpKuq75CqRNHeB3rdEhAiB4WmAeI5u4l5orJd296YLmgerpfO ewJzoFYeB4hWvMTXM7jkdpUJHBz2RLg= Received-SPF: pass client-ip=195.140.195.201; envelope-from=tlikonen@iki.fi; helo=meesny.iki.fi X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139247 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * 2022-09-05 07:15:50+0300, Jean Louis wrote: > Starting function to join lines is this one: > > (defun join-lines () > "Joins lines of a paragraph of 100000 chars." > (interactive) > (let ((old fill-column)) > (setq fill-column 100000) > (fill-paragraph nil) > (setq fill-column old))) Not answering your actual question but I noticed that the above function can be simplified because fill-column is a dynamic (special) variable: (defun join-lines () "Joins lines of a paragraph of 100000 chars." (interactive) (let ((fill-column 100000)) (fill-paragraph))) =2D-=20 /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQQL23klfGMkeOvdGCt57xklfWtWWwUCYxV90RAcdGxpa29uZW5A aWtpLmZpAAoJEHnvGSV9a1ZbyxcBANvoNPW9jTtYEGol30FQSnvGq2pmDZTIdYbC r+QJvdtaAQC5/IqFDugU3t+t6ELZG1Z3KBCKl1qZB87eaA/lvMUzCA== =m5AV -----END PGP SIGNATURE----- --=-=-=--