From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : How to get all paragraphs in list? Date: Mon, 5 Sep 2022 16:02:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12483"; mail-complaints-to="usenet@ciao.gmane.io" 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 18:11:32 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 1oVEhA-000364-F7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 18:11:32 +0200 Original-Received: from localhost ([::1]:52522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVEh9-0003kc-B0 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 12:11:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVEZ9-0004zr-BU for help-gnu-emacs@gnu.org; Mon, 05 Sep 2022 12:03:15 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:6146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVEZ4-00060B-NJ for help-gnu-emacs@gnu.org; Mon, 05 Sep 2022 12:03:12 -0400 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 285FCAUP010693; Mon, 5 Sep 2022 16:02:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=WYSBpo9yX9RtT4WDVAmW/apKy6XjOcYwYqMN2YWu+DA=; b=hIv9q4j3tW6UrKuE5IL4QD0l+v0P3bBJZLAHepaegvOWOvjbllks+craK8sLjm/JYDmB s8qfnQ5EbCPTPVDYDuWqyVi3rYWTZct6c03AJt3UUOFssmkIFUxUeJfeT+Vu8vH4vnCn u3v3OHzSn23x306iH3Bn1cVJtGJQMJKdBfLSzRccUNH6GnrJ/TZ+RPjvOR7OZVOnXs4x TrLtrb11cqUEsB3ojIEtW8LlaJ09gzKZIWRgeUCdjlNGV4o6sRfc2aq9mb2zFff7QlBQ M8ZTmAmZWy3xXQrBRXM83aP5UBU54MDBtnoQsXetgZEwWM9DuodNlMs8Ww7PrGmxsInZ 5w== Original-Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jbwq2btq0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Sep 2022 16:02:34 +0000 Original-Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 285FWGKf039721; Mon, 5 Sep 2022 16:02:34 GMT Original-Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2176.outbound.protection.outlook.com [104.47.57.176]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3jbwc86hp0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Sep 2022 16:02:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W++LfInmpZ00oGzurDjr2Y2Ga+eMMU/K1XwPNiKYju4xZdv8FiaQ2pB1NftYzrqfysQcmZPBgMVnaZyKZ8HW89ng7zXulC7SJTqqTuS0shFHh6krfLosYYf3yyjfMBG/wqGeIOX3sw+Zd0D5idQpTu6/G21VtOE60H24ltcdhcfISNUywUIbw6IMLY8Mz4aocV2r+xGeocU9HdQ9ZVJX39pEbNG6o/LPuyi+FSa5uTEggUf2BQRvRZz0xcq+2jQJNlAs++75Z8//JfuA1zB7dR1pOgw6kB/RhmmTPBRNk2ZbyYBbQvxyDuoljUWAx8Otn8JWZsO73nL6szfVlpSCWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WYSBpo9yX9RtT4WDVAmW/apKy6XjOcYwYqMN2YWu+DA=; b=De4iCvQvf+soM5YGWtkjM9HeYlSnJblMMSd/D87PI/xziJZeuQjoPk0s3nmm1fvfSF5zfiTiMyfF/hP5T73xwiM61StqeBAPc+CALcOtKaUmWW9+IbR06t6kYFiy4GIDYTrImkN3TxhOPo/JV0ZHDL1Hl7zy1E285+NJXdGDnhTpOHC/kxNYfeQnt5ePAJXDMq5ZfDn2Ccox/E9UhoiWBvwN63J3cHYlk/2crJm86Fm2Hl+ZuUs8EZ2yY+Q6A5QIFlU5u0idL+gegplSroenxPxlGSDFjvAmzPhRvpeGy3OcdwAcVhb+n+WMoVK3Wt4iHhJV4NuuCbW8JXJwB494LQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WYSBpo9yX9RtT4WDVAmW/apKy6XjOcYwYqMN2YWu+DA=; b=Jc4vcQJQPw/C98z6d/GtQfYq6nbR/QWnPG3SBYvN6pyj+GH0fjTAHldwGaavm2WL7tcdkRSi68TqkcT9fD+ZYHsfwHWBv+voDQ6UHC9fPqwSR270yhnFSiP+e7/TPLlqFAqsVNjhw86vo4qeN293+INUsqLqf8BPbV77s0R6TNI= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by IA1PR10MB6243.namprd10.prod.outlook.com (2603:10b6:208:3a1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.16; Mon, 5 Sep 2022 16:02:32 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::570:ff21:c9e1:22f1]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::570:ff21:c9e1:22f1%3]) with mapi id 15.20.5588.018; Mon, 5 Sep 2022 16:02:32 +0000 Thread-Topic: [External] : How to get all paragraphs in list? Thread-Index: AQHYwN5a941gH5aL80ezS+PeXiC7fq3Q+lpQ In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 69644ae9-5737-45d1-6ee5-08da8f580a88 x-ms-traffictypediagnostic: IA1PR10MB6243:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U5H+UCSBT15FDeQ/9K/j+IQAp5DIB6THQ9HvTCYN3I3QGWXnktn12gRbFYvVs9yeJawE+N3TCBASEyq11U1zRcjvpmEz12ZsJrIl2d3rZM+QrYFwpqqHS8p/IW5Dz1izK67uZNdgdjIaxEw9GTEhlES73/Vl4/wU4q0preVWoyQpn4MkXu2lipJwzPNV8c9pZ08VsIpQoWXYUNDkB4C/g8azi2xawSz634AURf7eJn/QqqN7v/jGK7ZudEFZekWBIO41rygKNZAEV1tI1LSBUaKTP0uWEscrOZUgnVeuGc2viQl2Wpq82zSvvxUyFj6QBNNUEKyrYdZYvC6VTk5ilMV6l/3ExQ8r0u9CDbM/siCW1IeimITSTXd91dX8PmpSZGfI7C7XWJgYCEGMT9gIOqSilLq/t+1yZhWIhCfNy9MjPPSURn7eFtvRSWK8xWBmrm2bNMJUagEPhS6ww6E5QYqoDIJuqLkL+KtrufvymheDAWQOIK5FtyzUCI+QMNmNEgf+xWofoyzWCvXU62q12AG0daTQVxuYWFlI1Qo7mEgpXzJ8KdMIdMPfNkuJRGQov1ONAc6sKAvBKAflGI+lFVW59mi8+tRdCUdmietc+KuFDqovx4mMrhaDCVW3X+feU23YUQDPXcltj5HrW1CxCncsElEZQfCexQGFLIhjEcah69zHNfvv+GKEIjDRCP9I2QZi8WWQAZYLea5H0l3epABe496FUhocnd0mQ1EDtCIr0pq+6vnRs9IvCAfBZ xiaetg4M5A5yxeSDonq+MDSkA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(396003)(39860400002)(366004)(376002)(346002)(136003)(52536014)(122000001)(66556008)(66476007)(8676002)(76116006)(64756008)(66446008)(66946007)(38100700002)(41300700001)(71200400001)(186003)(6506007)(9686003)(110136005)(26005)(7696005)(316002)(83380400001)(86362001)(33656002)(2906002)(5660300002)(4744005)(55016003)(478600001)(8936002)(44832011)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gSn3O4wuyxeF4JPzcGWBGelPscsxMNwejFqBnlMs66WMnaWRdfNV+0m2a01v?= =?us-ascii?Q?Qtq3kFasno5o8fkYY8s2CxC2tDwE2OlfEjozCiPfCfL44WT6AAf3yeLFrnGc?= =?us-ascii?Q?temstuX0gfvFewnVfmvYLVOMMNxkG/TtvfHI1Nz6XZf/ejuVODRfUjhW+F6R?= =?us-ascii?Q?6e4mXa1xQx9/FNn6lNTuqSKd0rktgzCjE4ERU3P0G0NukkPv6K7Ewy9AOBnt?= =?us-ascii?Q?u+h9erQguEKsmVtVgb4dCvzSV1E4z016ZglIftE3TnKXR5UgTzUU+p8BtbUI?= =?us-ascii?Q?jr+H84jFr2IG9CdKMSFp7zJDJ4A6bnPmhAN9IJlAOxLBjhy11MeZbhdXp7Fa?= =?us-ascii?Q?Up1yBuLL4oKW9pzvjnES2t1P4a5eU5WIjDj4e4WpTpqhWxAqcIjzdXbFbCxf?= =?us-ascii?Q?rDKyVaRRcefPrzClaszveuepmMAOJ3UInw6lrVWx+t5JwxP9m6A2A78qAtIR?= =?us-ascii?Q?3Yq6ZjWM5xhimkVp6GagpzKSlAMxi8lO3HvMqkG50DwCNTwwqt3Ed7LJyYNs?= =?us-ascii?Q?7Rg4yktonN9eOfqTx+QnMI8iFZ6g/zxeDx06gB2mGy6P6bIxD2JgYlDGy1LR?= =?us-ascii?Q?VO2hoxzsfhJwzXFc5waY+EUfa/Fd0/K6k7+/hHLHY9sWXzL/1479Qg2bWgs1?= =?us-ascii?Q?mQ X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69644ae9-5737-45d1-6ee5-08da8f580a88 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Sep 2022 16:02:32.2328 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: o+AM7EoWUSUbvxsrpZMLvIaC11tOBUr8ax4WZJnC/KARx7wn03JdEUt2aW9Pg7IzNLZk9ywBdE8XVWIaKJYaeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB6243 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-05_12,2022-09-05_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209050077 X-Proofpoint-GUID: ZwsMUQuTzDGxPpY_YmjOKgpThLqlsnnD X-Proofpoint-ORIG-GUID: ZwsMUQuTzDGxPpY_YmjOKgpThLqlsnnD Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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:139259 Archived-At: Without looking at the details of all you ask, maybe something like this helps? (defun paragraphs-in-region (&optional start end msgp) (interactive (if (use-region-p) (list (region-beginning) (region-end) t) (list (point-min) (point-max) t))) (let ((paras ())) (save-excursion (goto-char start) (while (< (point) end) (push (buffer-substring-no-properties (point) (progn (forward-paragraph) (point))) paras)) (setq paras (nreverse paras)) (when msgp (message "Paras: %S" paras)) paras)))