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] : sort-block Date: Mon, 1 Aug 2022 14:21:55 +0000 Message-ID: References: <87h72wefry.fsf@dataswamp.org> 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="35219"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 01 16:22:53 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 1oIWJo-0008zb-DV for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Aug 2022 16:22:53 +0200 Original-Received: from localhost ([::1]:50124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIWJn-0005Zy-E8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Aug 2022 10:22:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIWJ7-0005YT-2k for help-gnu-emacs@gnu.org; Mon, 01 Aug 2022 10:22:09 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:2504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIWJ3-00035c-ME for help-gnu-emacs@gnu.org; Mon, 01 Aug 2022 10:22:08 -0400 Original-Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 271E8tfL028552; Mon, 1 Aug 2022 14:21:58 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=51Pce123ShLbQH7r1eI6aiqi1tX/dWBiIAf/8JJZJso=; b=26BrK3HrFdmih2a035etO0CqAoKo/OrmwSXtnjGJTwDk0gi0ad+4deBLlKl8z8+rRWmY aDGWH0rlmnxXzlJ9H5FiaZhm1i8Yzk9Cte8yuONzsZ2JSaYjH8E/a818L9++0eSYQ15q fAuwG89EJlgTX8SH0CmW4hLUVkWozXPUybL9tYhktXwuV05pXKEknQ6LD0jGpstc97JN T/8b+C4/D409RiE8bdpkD9xqgjAWqjdOOuyu4b2VmFi9Xx31p23VncD7Qw4H8jwxuFev hQAyLYegfHlgzD2gHJkK7QkPLKbY4M+IaokOUVirNQcxKQSGEXw6Fx2LYE/9U/wXnYVb aw== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3hmu2c3sn0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Aug 2022 14:21:58 +0000 Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 271BkorQ007390; Mon, 1 Aug 2022 14:21:57 GMT Original-Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2045.outbound.protection.outlook.com [104.47.73.45]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3hmu313kk2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Aug 2022 14:21:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BkX/QJAYWzg0ULmK1V/MUfd3NuhjJPn1mxYx36XXt30BMkZlGaOJNYZ/KwUOdLkRcsnNcixvwnTcaK4Jrj7DPbRDJJnevHMSOhln6AKBUSGCFB9amsEYdEzkD1sgcOBGXWEhLlY0ubvtxCByM47YKwjMNcjL/+ICYhoPjIUzX6zyySrvHkc7hJbgdyYgg/UPBB5aCd7P/l1aqG1m5Shk40HNbqv9Afk6CU/Ze1CN09yLy4+WgXPBcXxn6a992Kgv7mmdBb9f33X2mhpb33uGvdgGRSxhUEe0/rs3qEwYFeFnlRLb2EJ6qDNWoZDV3PI/iHhGc2U/hkAcnEYe3xPdnA== 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=51Pce123ShLbQH7r1eI6aiqi1tX/dWBiIAf/8JJZJso=; b=kNJxnTVtU8SUvHQGFoQj5C8Y32MBfc5VO72nrs2hGHDpPVVJRSt5Uy+rcAnav+o2uzpCmsKdYhSqm6P2R64TJI2yR76+0SzU8EbuOcMVDHjwxLS/2+JLXHMUDZynT1fslCS0ZeT4ijfdzqO+JrAuLIGre+5HL9M+MYrBtDJkZCy5pyJcAFAtCXEQt7bQQrrxZn1k4F7djsV0/UaQpvSLauPtIr7FcNJnRCB/KaCJIh9MIF5r8yrhuFjCfFXKGMByzTb+FVHCMPgfbVKrEU4OTOGpO02JVDHkwN8CHbClhjDNem0f3rk9Il6JFlPUGoqFRiYT42v8wQago/rWN6HFiA== 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=51Pce123ShLbQH7r1eI6aiqi1tX/dWBiIAf/8JJZJso=; b=xl1jfIIosoafupRFGxBO1TDMIH5dSAVo++XF0a8yTGmrLPE7XSj2324uK2JbPSVY101H+CDCvEdvJHmFPvFSx5SS6CKbfOudVOlJ8hWpuf6FUoRJnDV9kU+NfIMqHhNvSj1G1Px4DPfAU9KqOiSsduEIXNWbqIDAGRlIz5CHeLw= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH0PR10MB4550.namprd10.prod.outlook.com (2603:10b6:510:34::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.12; Mon, 1 Aug 2022 14:21:55 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::8d65:31e6:cd0e:e95]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::8d65:31e6:cd0e:e95%5]) with mapi id 15.20.5482.016; Mon, 1 Aug 2022 14:21:55 +0000 Thread-Topic: [External] : sort-block Thread-Index: AQHYpWEcaj8O4zwdxk2ZNc3e30A5DK2aGLUQ In-Reply-To: <87h72wefry.fsf@dataswamp.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 495d4941-b46b-42f8-37ce-08da73c92fde x-ms-traffictypediagnostic: PH0PR10MB4550:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IS1CyJCw4Ws9Ch0CeQ2th+XJfJnvom/MXNmG3vjRzFnGNtJZQqYQ8BAo34DW+zLZG+YUjRPxcbuKRQZA/u0O7CygLgwcwbyCQznKAMqWZVLgvUDQUzb3DzfB9tYzR/hHl86LLdBcuwtFMkC3wcDfvii0WvAL8ZCt2YVtfZCzAFgoY7NDKRSLdz0tvZGo+tKUJlXGq8/EEP0Uu3vvSO7vHm7z05uGulRM8JMuPv5GTMC8y7H3VPxkqDXheRlr94zk8rpUnVvFWsAMnWDr35qILpiVYf2opcy1M3jl4Lv9UuUEYMzMVTQoVRgWOdxpQPuQBF6bxYIS1OFRD5HP+9KyXPQh1EJZgIR3js7W4v/TCUlWQDmoYfEAI3ewg9rZD0YMN2RKODZVwqEeV+hXl3ig1jvZ7Gq2hHPx1J3jD8FAvSHRaM6ESekIe8IpaKwkFh64FySuRtiRJrQ5UTuopCZt8AycXYa15X10DKmto6DhZzAMPzmjnzzp+e/7sZFDnnm2etirFgXXNpKQke1xewCfxRl+zPnagSr17WwdChKROoqowl9Ea59XRK3jfuhnXX0vXHdrJqA/DL/ED/SVSS2DubIuJ9lHwVOECGOIvfRagXnDh2MWXNng039vjh4VSnJZPKj5NXi8meZyqlnp60aLOnBceCX8HVqYBYVx+7hfVAkvPL3IsS0c0xyHmoMTh1d1iv8EwJI/PtkgCUuj4k/ro2POuilvsHbITxlqI8PopzlRdWkmDQhOgpgV6/1Cw nOOU3s5vQZUk8WJ/aedFJPgtEtrmhGPIq9lluCKY08uvZFwCmQbVNHd6uTK5jKmtMSI 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)(346002)(366004)(376002)(39860400002)(136003)(396003)(76116006)(44832011)(4744005)(52536014)(2906002)(5660300002)(478600001)(33656002)(41300700001)(8936002)(8676002)(6506007)(7696005)(26005)(64756008)(66946007)(71200400001)(66446008)(66476007)(66556008)(9686003)(86362001)(55016003)(110136005)(38070700005)(38100700002)(186003)(83380400001)(316002)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kQL4xxE7CEMHPtfxQbJ7o8etCc43F8/bt/OIM4VDX1821GuMGinjD/yDLrWi?= =?us-ascii?Q?bKMcdaH/lmTelkVvJQPlBCjDNPVHXXtQUbRD8dq64Rl0lzUzu8CNPLScoatZ?= =?us-ascii?Q?ZGskCzKSJ8K5QkWUvMSKVgRaGesuH8dXZx82pFkEpm9gCd4D1hWloXTsZFpM?= =?us-ascii?Q?1RljqXHPGgjqMtmKQpOYVPmUmiODbgxkh/QhMcqrurbtbrEC+RJ2rPz6cit7?= =?us-ascii?Q?4Y0Xy6rQqiNZfSSPwL/GM4++499ttNeIRfhkym4+e1wg7N8DmFkVI/97Np8Z?= =?us-ascii?Q?kuFqx4MAfVt51MWnmUprv3fd1tt2dt84cMunxq+y7i28tLSj0Im8DTX3DrAA?= =?us-ascii?Q?R219I5VTIJbrCudzj7ofyuBiJUS+kuTmx2/pXqUS4riGl66PYVhWvk+v+Rw7?= =?us-ascii?Q?HW9WIqrTVwie7IIBf28wj2MNDJdSIWjLCOI4EJMZXiJSAqEwszEsd+IwZWTl?= =?us-ascii?Q?vTs8zWiDva58ybWbFanmy3xwQ3hnmwrmkAsqhKf+gbOyxJ6BqzToKSEj4bCR?= =?us-ascii?Q?eJQSpe6EW+lwaLNeMawF75ygETYGyYnNllMiznRDsnyDgOIf3LVNcRgS8pAY?= =?us-ascii?Q?Tf3MyE8Bm8UY5BXmu9lfnPvLt15IdSYkxvXg+4IX4WOhk37AhzeJszhwCDPT?= =?us-ascii?Q?qL 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: 495d4941-b46b-42f8-37ce-08da73c92fde X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2022 14:21:55.4903 (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: NtpznjCUYn3fPWmo3sppaS06pUyVtsfWpUT6C0+AEOxCbTNExa+AH4x0QgBHax4MJv7MS+2Tq/hwQW0SxTLCdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4550 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-01_07,2022-08-01_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 suspectscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxlogscore=968 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208010072 X-Proofpoint-GUID: 5idB0N3JVNtqpPDXTscfJShRsg6o3O2d X-Proofpoint-ORIG-GUID: 5idB0N3JVNtqpPDXTscfJShRsg6o3O2d 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:138718 Archived-At: > Useful? It's up to you. > Maybe something like this already ... somewhere! > (defun sort-block () > (interactive) > (let ((beg (progn (backward-paragraph) (point))) > (end (progn (forward-paragraph) (point))) ) > (sort-lines nil beg end) )) `M-h M-x sort-lines' Or if you're going to add a key binding, it might be more useful to add one for `sort-lines' than for `sort-block' (aka `sort-paragraph').