From unknown Fri Aug 15 19:25:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2023 10:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 60654@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167317478314873 (code B ref -1); Sun, 08 Jan 2023 10:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2023 10:46:23 +0000 Received: from localhost ([127.0.0.1]:59988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pETC3-0003ro-7V for submit@debbugs.gnu.org; Sun, 08 Jan 2023 05:46:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:35478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pETC1-0003rh-OO for submit@debbugs.gnu.org; Sun, 08 Jan 2023 05:46:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pETBs-0003PR-9U for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 05:46:15 -0500 Received: from mail-lo2gbr01on2128.outbound.protection.outlook.com ([40.107.10.128] helo=GBR01-LO2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pETBp-0000n2-HY for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 05:46:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A5+rEMjV90TuGawaV6NccLMXhhS/bGy/zGGE8Vr4eTvRQXVvZAgv12U3qWbthFLsx+SVOjEO5/y0dHx62epRtswqg82ntK309rTO15nPZlqgQeDwW5MfyIDYr1LXatjeATd2r3bcDwPKFYSLVPmgsuwja47j8Z7kyrz/OIbL697pIJ8zCujgh+VEn85kmB+PP4cJpAGwsU31KkC1hovz/K+t+jTUt7M/4kbR4BbV93a34RdR00AUGfD6Q1l/XT4s3SDlvBW+lbY3qVlg1DUuWkuBJyE1nl+SQpjryaWZh5kA4Ass9TRfbGEA5n+6KKqyaudZbyuweAswgvNKA1kH3g== 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=s1DmN+1hBrktEciwr+Wpt/rnYLx2iPcoQh1ESbvcBes=; b=jDKYQmxv4cdTnsvOBJsSmxzEhx+JYQzel1hGei/Ub44AKa76n9Fv4Ee0URnKONbX4Gx3KiJWIQdPcObjmLzP7bCBLPvFf/B6GR0OzJ+E431/tdm2Zz4fnMvb//RYh8zfhFcyxvGjkivyo3c5J9gFRQnqW64dZUbz/8p9f5Kgv1g0ZcfYC0AGs+KUTkm/bPKhUa8cbmFAiPmEURGuvlujWMilgU/jC1miNcc0gay3HV1P124Fx2tAzG3WyUlx4Ma/WlcrKWf0GVcU+c+P17cKAZRvj8JTahZeqJUWZaPlCSX0qu+iT+88fk2X2hdELP+TLPLfHWz2UfkXSYUHQiD4UA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s1DmN+1hBrktEciwr+Wpt/rnYLx2iPcoQh1ESbvcBes=; b=JfFK1WyWCLoWpG/3FfdMXUP2lXG/zl08oqxkpelBMOz1fR1zn3QmVPwrDHBsfc5LWtZHCJcu0PGXXVS39c1W+hP8W1Dm1sTVb1Tmu8Mu53Y6dR3KgTd6vM4EO9rlieRHBo2POBs/MnMHA75ShPelN3iBWnrnQ+9XM2N4Ev+S1A0= Received: from LO4P123CA0228.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a6::17) by CWXP265MB5155.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:194::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Sun, 8 Jan 2023 10:46:06 +0000 Received: from LO2GBR01FT006.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:1a6:cafe::c2) by LO4P123CA0228.outlook.office365.com (2603:10a6:600:1a6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Sun, 8 Jan 2023 10:46:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Received: from semantical.co.uk (178.79.136.144) by LO2GBR01FT006.mail.protection.outlook.com (10.152.42.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.17 via Frontend Transport; Sun, 8 Jan 2023 10:46:05 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 67B94114003; Sun, 8 Jan 2023 10:46:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1673174765; bh=s1DmN+1hBrktEciwr+Wpt/rnYLx2iPcoQh1ESbvcBes=; h=From:To:Subject:Date:From; b=YcS9rVED8VsAQsa1v0oR6dLqoVNJjw+dpjefx+O4FnF4Yug1gT/dVqk2L0Lo8W6if L7/CBeXz9QO2TWWskpZPKmmn8+YBdxgzxrGWQmvdxarbw6f/9ZtNlf/BZBxXLF0K8v jOlRAhYwztIBqpfh5Fsn8+65ELytN3s5XwfkeSYI= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on semantical.co.uk X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 From: Mickey Petersen Date: Sun, 08 Jan 2023 10:46:03 +0000 Message-ID: <87tu11jod0.fsf@masteringemacs.org> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT006:EE_|CWXP265MB5155:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ffc99094-e94c-476b-094c-08daf1658b49 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: khXPVDj2QVWg1zPu4wIAbrUZb0TjBTp8zvdruKrgHE66DxsN2bV4D2SL57ur0l+gEEhBWGvVvJHFoEPef2jNXjdiw/GnWjNGGDg/9smoOmwy9g48EzDEMnsvDaW9sAOi7QmKiI88aqwTFTqUAVbUuEUmLGYnVvKm36WqKF3sKjMRisBsZBMmZy0JcqYpTD87ncM1j75sIo7z6o1hzQtf8GvkOUIiimsoGKPgj3/UmmqNEZ7xo30p09qAuOCjMvN/pe5gla4irBJhixaVBBRHxyaewVz1bIb8RAgYjpUTFmyrm8ijWAdNLZwCoDk5ehLTz0PK6pMULi/q1pxgq5ClbNuzpd4WNVmZxxFYpslvqoFlsrwrJ804mrgFPZF5XarHATSxr5WJ+O7AJLBrgIDDdoRzsq3jIk/VtTEF9yn8ZWLXcoSjgE+K8jhx1UPW1aT8dhV5P7CCxT5k42PomXVUdo0RmdEn6AFch6+92DO1ySOrcrMurE4tybIaBgYr/fwwHj3kUarF1JKfoxa2VdQYfZwPDmxpVMyE2B5pPwcjfKFMU2y+e5MA2A037opWJGrYv64pQxM+BUuY9lTISg1Q97QMSdXtDEMEGb7amurLqAVRm0N1QqoHR1fov4C8kPHPdnrwG6N762yhxG2Ne70kRS4t4yDYkqE4A+HBGsrtEwSiq8NkrMuk21Lq48qkMwCRIFUlvwAFz7w/8F2xhgsfQabzvjOsbE9H8HSW5RjS4YZ/T9KNqUUi1UEK5e3nzqeD4fI8/kcbS67XhrHA59RaAQ== X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230022)(396003)(39830400003)(136003)(376002)(346002)(451199015)(36840700001)(46966006)(36756003)(186003)(8936002)(26005)(6266002)(4744005)(40480700001)(2616005)(5660300002)(8676002)(6916009)(356005)(316002)(86362001)(42186006)(70586007)(478600001)(7596003)(7636003)(41300700001)(70206006)(82310400005)(47076005)(2906002)(83380400001)(336012)(36860700001)(38230200001)(81973001)(14776008)(79816003); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2023 10:46:05.6822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ffc99094-e94c-476b-094c-08daf1658b49 X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: LO2GBR01FT006.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP265MB5155 Received-SPF: pass client-ip=40.107.10.128; envelope-from=mickey@masteringemacs.org; helo=GBR01-LO2-obe.outbound.protection.outlook.com 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) The defvar `transpose-sexps-function' holds on to a lambda function. Would it be possible to make it an actual function? Its purpose is rather important as it is the default transposition function that was moved out of `transpose-sexps'. Being able to reliably access it when `transpose-sexps-function' is overriden is useful. In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-01-02 built on mickey-work Repository revision: c209802f7b3721a1b95113290934a23fee88f678 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.3 LTS Configured using: 'configure --with-native-compilation --with-json --with-mailutils --without-compress-install --with-imagemagick CC=gcc-10' From unknown Fri Aug 15 19:25:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar References: <87tu11jod0.fsf@masteringemacs.org> In-Reply-To: <87tu11jod0.fsf@masteringemacs.org> Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 03:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mickey Petersen Cc: Theodor Thornhill , 60654@debbugs.gnu.org Received: via spool by 60654-submit@debbugs.gnu.org id=B60654.16732355824622 (code B ref 60654); Mon, 09 Jan 2023 03:40:02 +0000 Received: (at 60654) by debbugs.gnu.org; 9 Jan 2023 03:39:42 +0000 Received: from localhost ([127.0.0.1]:35374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEj0g-0001CS-6M for submit@debbugs.gnu.org; Sun, 08 Jan 2023 22:39:42 -0500 Received: from mail-pl1-f171.google.com ([209.85.214.171]:45788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEj0e-0001C8-Rr for 60654@debbugs.gnu.org; Sun, 08 Jan 2023 22:39:41 -0500 Received: by mail-pl1-f171.google.com with SMTP id g16so8140504plq.12 for <60654@debbugs.gnu.org>; Sun, 08 Jan 2023 19:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=x8ixnMgQAzo4AIeAGlzs2UjIYkR9oWFllfwNWIK5U5w=; b=J+tWfEJx6h81kUPRcOZ8mggs4LrvpkH52qJ7+5KlQG4ZWKHrBvy8p+J4+SjtFF27Bz 9aM984w2pZAJrIpeYmkCECr4pf+dB4VhQmDyFADF3+Ia6OWEr8kALcmvihglsGe+G7Z5 CpdoAechAmi6o8EsAq8fYlnFV+Zo+uzeBxQiGLTghOkEPwwjV0Q0JfGW/3jJ3iJyb/WY R5iHeU3bbrF/3QdMImDR3d2Wvzhxk2A2a48thbYa754t4V392pUAFGBY/9iLXNcYA/RA y/1WyjolLwK+t+nYQr5qw8l/Y38aRomr1AWM/WLevLpNdJ4op5FrATJvH6dXOp/YWvfY N/hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x8ixnMgQAzo4AIeAGlzs2UjIYkR9oWFllfwNWIK5U5w=; b=GCDjuFvI68YAihU+uoQGciQ/sFcNO4KrTc70CBxdYOQpbDwx6R6FRUxq6xeVHzBWJX ftPq7weiiSKXLxp2MsUNkwsBurS46NnTfaQBgF8X/+cXTkVa0L1k3gYBSrhg6lu71Uld SbQajQEBWNt7kXARsM109/+IOTUf3kf56nc/DZrS+HVCgiRYP52LMzYe/eOJIanKYF5k mQGkZa6RsyYBKvS+COUdcwtCZW4Yf9TXPo/7cHOhY+HvKH3WIUnMTBc/TotC79M632Ky 6yfPkDOx3QyoJtHwl+u6TA82EhyPCj5TB1IeMTS5z9Qoo3xC1GtwfodyXPjPYasA5fGZ 9vVw== X-Gm-Message-State: AFqh2krLr3L+kSyKMLPa4HRKshpXQ7wxdbvdvvJ8nxLFmAHBupslxsn5 ecENnsNrjPHEmkQW9rj2BN4= X-Google-Smtp-Source: AMrXdXuaJmgFffYz6QPwfItUZ+TtUoUASS9ok7ejz9AoKVoh1qLicr2fiyDtsSu8DLCIet6pREWM0Q== X-Received: by 2002:a05:6a20:158b:b0:af:7b32:4deb with SMTP id h11-20020a056a20158b00b000af7b324debmr92058106pzj.4.1673235575212; Sun, 08 Jan 2023 19:39:35 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id h2-20020a170902f7c200b0019327f40bfasm1988633plw.119.2023.01.08.19.39.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jan 2023 19:39:34 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Message-Id: Date: Sun, 8 Jan 2023 19:39:34 -0800 X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mickey Petersen writes: > The defvar `transpose-sexps-function' holds on to a lambda function. > Would it be possible to make it an actual function? Its purpose is > rather important as it is the default transposition function that was > moved out of `transpose-sexps'. Being able to reliably access it when > `transpose-sexps-function' is overriden is useful. CC=E2=80=99d Theo. Yuan From unknown Fri Aug 15 19:25:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 06:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu , Mickey Petersen Cc: 60654@debbugs.gnu.org Received: via spool by 60654-submit@debbugs.gnu.org id=B60654.16732454287653 (code B ref 60654); Mon, 09 Jan 2023 06:24:01 +0000 Received: (at 60654) by debbugs.gnu.org; 9 Jan 2023 06:23:48 +0000 Received: from localhost ([127.0.0.1]:35611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pElZT-0001zN-Ml for submit@debbugs.gnu.org; Mon, 09 Jan 2023 01:23:47 -0500 Received: from out2.migadu.com ([188.165.223.204]:22716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pElZP-0001zC-Eg for 60654@debbugs.gnu.org; Mon, 09 Jan 2023 01:23:46 -0500 Date: Mon, 09 Jan 2023 07:23:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1673245422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mEkVxss+01suJ7cyZQaI8OmjyfjpnuVA7im0syOQtzo=; b=MLitNGupUuMM6Z6Op1dlQwalizYxFoBO3H3e2NBYaL9Gc2Dr8tLVnrU2QMhoSwBo/cGm+Z iv+dA/tBZ9v+9wzJDmLXTq+Ceh/j+s5D0XZ/i93EbcTI+k4+Md4tg3KxL4FTmjV8SzaN0N TgTsUANwH5rwwSYwPH46Dc1uIQoGZ/EMpidpt46j26KrujxHL7MGOgM8W/AYoKFg0neOIr k87Or3Pd8ATFFCWbGfB9J4JOoJBP5HeDKLyn6C5lgQvcNFtB9ccacVdtDGwvqfaZvLUFWl Lsho3kN7EcdKnOi2Z+t99WivIsYdMJ1+tNtt3x3Yl9YTkiQoRMA5DeZQBQAJOg== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Theodor Thornhill In-Reply-To: References: Message-ID: <111EEEA5-B5FC-4C45-99A9-06B4C63713A8@thornhill.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 9 January 2023 04:39:34 CET, Yuan Fu wrote: > >Mickey Petersen writes: > >> The defvar `transpose-sexps-function' holds on to a lambda function=2E >> Would it be possible to make it an actual function? Its purpose is >> rather important as it is the default transposition function that was >> moved out of `transpose-sexps'=2E Being able to reliably access it when >> `transpose-sexps-function' is overriden is useful=2E > >CC=E2=80=99d Theo=2E > >Yuan Thanks yuan=2E Yeah I'll make this change and call the new function transpose-sexps-defau= lt-function=2E Apologies for any inconvenience :) Theo From unknown Fri Aug 15 19:25:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 06:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Yuan Fu , Mickey Petersen Cc: 60654@debbugs.gnu.org Received: via spool by 60654-submit@debbugs.gnu.org id=B60654.167324743811275 (code B ref 60654); Mon, 09 Jan 2023 06:58:02 +0000 Received: (at 60654) by debbugs.gnu.org; 9 Jan 2023 06:57:18 +0000 Received: from localhost ([127.0.0.1]:35639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEm5t-0002vn-UL for submit@debbugs.gnu.org; Mon, 09 Jan 2023 01:57:18 -0500 Received: from out2.migadu.com ([188.165.223.204]:57978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEm5r-0002vd-CA for 60654@debbugs.gnu.org; Mon, 09 Jan 2023 01:57:17 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1673247434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GSpL6E/WjMHDv+VLIE/9Qaxy0S+EbuVQzSZ4N9YnlGk=; b=yy9XGwajq5S6X34oNA9a+taMWQHZJdHtUlSQy0tyWU3xfKzpzQBWtRwWExL0aGagZNkjl7 IymT3YmOEAHYGqJF00Unh7ao2R8XjQpyG14px9F4OPTywZHwBT+Wy+hsfOkmgTPixD9HPm T3vPGjN+M3p0Vl+66lL4K+qvQtEIirtQkTLdhNl09YGXGgAg7A9J+UA0H1LfItbrm/6z78 yugDVW8A8F7ub6YCySHyCAE1mUcLdyeIyAMrJRH0UULxkdPiiETtZCZVTuJu6Vv2I5MzFK gZ+XdlMUMrnPwXm/2iwtjHhSQ+IxxhW8l32wS3sJFvpFieoSbIWR2svlPfxP8Q== From: Theodor Thornhill In-Reply-To: <111EEEA5-B5FC-4C45-99A9-06B4C63713A8@thornhill.no> References: <111EEEA5-B5FC-4C45-99A9-06B4C63713A8@thornhill.no> Date: Mon, 09 Jan 2023 07:57:11 +0100 Message-ID: <87lemctcu0.fsf@thornhill.no> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Theodor Thornhill writes: > On 9 January 2023 04:39:34 CET, Yuan Fu wrote: >> >>Mickey Petersen writes: >> >>> The defvar `transpose-sexps-function' holds on to a lambda function. >>> Would it be possible to make it an actual function? Its purpose is >>> rather important as it is the default transposition function that was >>> moved out of `transpose-sexps'. Being able to reliably access it when >>> `transpose-sexps-function' is overriden is useful. >> >>CC=E2=80=99d Theo. >> >>Yuan > > Thanks yuan. > > Yeah I'll make this change and call the new function transpose-sexps-defa= ult-function. > > Apologies for any inconvenience :) > > Theo=20 How about this, Mickey. Is this something you can work with? Theo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-named-defun-for-transpose-sexps-default-function.patch >From 442cb4676d359faf23abb15799338f2025c797cb Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 9 Jan 2023 07:52:38 +0100 Subject: [PATCH] Add named defun for transpose-sexps-default-function (bug#60654) * lisp/simple.el (transpose-sexps-default-function): Move the lambda into its own function. (transpose-sexps-function): Refer to it by name. * etc/NEWS: Mention the change. --- etc/NEWS | 4 ++++ lisp/simple.el | 64 ++++++++++++++++++++++++++------------------------ 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 60dab575da6..3aa8f2abb77 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -57,6 +57,10 @@ trash when deleting. Default is nil. Emacs now can set this variable to customize the behavior of the 'transpose-sexps' function. +** New function 'transpose-sexps-default-function'. +The previous implementation is moved into its own function, to be +bound by transpose-sexps-function'. + ** New function 'treesit-transpose-sexps'. treesit.el now unconditionally sets 'transpose-sexps-function' for all Tree-sitter modes. This functionality utilizes the new diff --git a/lisp/simple.el b/lisp/simple.el index 690968ca938..c8c5542caee 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8436,37 +8436,39 @@ transpose-words (interactive "*p") (transpose-subr 'forward-word arg)) -(defvar transpose-sexps-function - (lambda (arg) - ;; Here we should try to simulate the behavior of - ;; (cons (progn (forward-sexp x) (point)) - ;; (progn (forward-sexp (- x)) (point))) - ;; Except that we don't want to rely on the second forward-sexp - ;; putting us back to where we want to be, since forward-sexp-function - ;; might do funny things like infix-precedence. - (if (if (> arg 0) - (looking-at "\\sw\\|\\s_") - (and (not (bobp)) - (save-excursion - (forward-char -1) - (looking-at "\\sw\\|\\s_")))) - ;; Jumping over a symbol. We might be inside it, mind you. - (progn (funcall (if (> arg 0) - #'skip-syntax-backward #'skip-syntax-forward) - "w_") - (cons (save-excursion (forward-sexp arg) (point)) (point))) - ;; Otherwise, we're between sexps. Take a step back before jumping - ;; to make sure we'll obey the same precedence no matter which - ;; direction we're going. - (funcall (if (> arg 0) #'skip-syntax-backward #'skip-syntax-forward) - " .") - (cons (save-excursion (forward-sexp arg) (point)) - (progn (while (or (forward-comment (if (> arg 0) 1 -1)) - (not (zerop (funcall (if (> arg 0) - #'skip-syntax-forward - #'skip-syntax-backward) - "."))))) - (point))))) +(defun transpose-sexps-default-function (arg) + "Default method to locate a pair of points for transpose-sexps." + ;; Here we should try to simulate the behavior of + ;; (cons (progn (forward-sexp x) (point)) + ;; (progn (forward-sexp (- x)) (point))) + ;; Except that we don't want to rely on the second forward-sexp + ;; putting us back to where we want to be, since forward-sexp-function + ;; might do funny things like infix-precedence. + (if (if (> arg 0) + (looking-at "\\sw\\|\\s_") + (and (not (bobp)) + (save-excursion + (forward-char -1) + (looking-at "\\sw\\|\\s_")))) + ;; Jumping over a symbol. We might be inside it, mind you. + (progn (funcall (if (> arg 0) + #'skip-syntax-backward #'skip-syntax-forward) + "w_") + (cons (save-excursion (forward-sexp arg) (point)) (point))) + ;; Otherwise, we're between sexps. Take a step back before jumping + ;; to make sure we'll obey the same precedence no matter which + ;; direction we're going. + (funcall (if (> arg 0) #'skip-syntax-backward #'skip-syntax-forward) + " .") + (cons (save-excursion (forward-sexp arg) (point)) + (progn (while (or (forward-comment (if (> arg 0) 1 -1)) + (not (zerop (funcall (if (> arg 0) + #'skip-syntax-forward + #'skip-syntax-backward) + "."))))) + (point))))) + +(defvar transpose-sexps-function #'transpose-sexps-default-function "If non-nil, `transpose-sexps' delegates to this function. This function takes one argument ARG, a number. Its expected -- 2.34.1 --=-=-=-- From unknown Fri Aug 15 19:25:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 08:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Theodor Thornhill Cc: Yuan Fu , 60654@debbugs.gnu.org Received: via spool by 60654-submit@debbugs.gnu.org id=B60654.167325408922244 (code B ref 60654); Mon, 09 Jan 2023 08:49:02 +0000 Received: (at 60654) by debbugs.gnu.org; 9 Jan 2023 08:48:09 +0000 Received: from localhost ([127.0.0.1]:35730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEnpB-0005mg-7X for submit@debbugs.gnu.org; Mon, 09 Jan 2023 03:48:09 -0500 Received: from mail-cwlgbr01on2133.outbound.protection.outlook.com ([40.107.11.133]:10839 helo=GBR01-CWL-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEnp8-0005lX-1Q for 60654@debbugs.gnu.org; Mon, 09 Jan 2023 03:48:07 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QxU+py0HNiW8HKuPPUHVM2IdoI8d8QBYnpMro6SQL/j1sjndvf4/rOHH+VjXu4HF7aWGp2PB+OTBJ8hgm84VijaUs8pFGySd1zRnbiSJCTN6L3H9FoVQPb1d/5YDrdu27dNKIkiw2gnmF1MNWquMpZbapBIrsZjcASSbrf8y6hXtn+5aXNkvSdyNbq5Xw/Q2a1zudlm6vkuV3TuvSqvZ3nLzECmQZ2q/kGCDxXWpprj9B6pZLPqgdLj/RClXQTSDMA6+Q4dszlyTiPev3xRqL8yW83IZBRR2Xc5Vuoe1DR0qYa7NGdNXVYrh/AOwpiBheq0QUQ2F7e1W9AOYHfAK6A== 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=IJeevYGl4yJSVZIJfkkSgcas/pLsyeQOK7EZl+leTLI=; b=RVJnhw9UkI2WXQqcm4msPRJtN+uwmR/ZvTAvCEqYtGzZY5yF8nND9wy8NIbnRIKHe6HIvE3e6UF2CtXgVt2NI6/4PkY6jCP8QPI5U6j8f8UFlDP6TiVt7Ao/hb3+JJkRmqpR7/vuiBNuVCz2epznq9vxKteEyzHTyGTFOQX39ykWkZhRHTK4NzXnzzXoE1I/6g6Vypfj5Gu8avHAjcHTjOHGBfc2TLEipz2Td7+A+3qmJ7a7QiLa5CGHjePG1HIX+fvMuEFHJ/L2wGaiSRfOdZLxKzRboL9RB9+G4O0pvJt8kJ9IqM9xBCl5IR/gd6Mcqsg4HX0I+4jOi3Tu2pUzuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=debbugs.gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IJeevYGl4yJSVZIJfkkSgcas/pLsyeQOK7EZl+leTLI=; b=kccW0EvezJplMmhw66irc+4IgviMdgW7ZwtVpVI7l+Am1PlpMc76cik7r6vJwEV0y8LCcjbLlu/q6HHOFxmZRA+DKfqFENcfou4sadIo7ZXt3xZnx7Q6Qc6lsS14GohWIOmmB96otSYwoedQwhVVrQWpSDius2o7lK7UzuREGXU= Received: from CWLP123CA0232.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:19f::14) by LO0P265MB5682.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:1ff::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Mon, 9 Jan 2023 08:47:58 +0000 Received: from CWLGBR01FT009.eop-gbr01.prod.protection.outlook.com (2603:10a6:400:19f:cafe::92) by CWLP123CA0232.outlook.office365.com (2603:10a6:400:19f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Mon, 9 Jan 2023 08:47:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Received: from semantical.co.uk (178.79.136.144) by CWLGBR01FT009.mail.protection.outlook.com (10.152.40.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Mon, 9 Jan 2023 08:47:58 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id B6541114002; Mon, 9 Jan 2023 08:47:57 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1673254077; bh=eGouDEwBYPYK9ukaz4buNhA/oOKDYA9fx1yNOzb77ec=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=vOGAVgbDL47IHeTVHfBY3VhuUZSO/umbn4Dh15cEhRgDcCMdmCT9/V7cf2MfyhKf5 vkQRwtyOioGDEiJws+cHaAA15zuxfWG2cEIzs1yqlCEny59b1c89ckVqRoB6K01BET ZxJ/7R32DkkqjqVL7b2TbU4NQno2usLDMa5zRLto= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on semantical.co.uk X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 References: <111EEEA5-B5FC-4C45-99A9-06B4C63713A8@thornhill.no> <87lemctcu0.fsf@thornhill.no> User-agent: mu4e @VERSION@; emacs 30.0.50 From: Mickey Petersen Date: Mon, 09 Jan 2023 08:47:32 +0000 Organization: Mastering Emacs In-reply-to: <87lemctcu0.fsf@thornhill.no> Message-ID: <87fsckjdqc.fsf@masteringemacs.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLGBR01FT009:EE_|LO0P265MB5682:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c0b3fd99-e1c5-4d0a-0a85-08daf21e352a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TOri7LBfbEWDzkKFDkNfC+3WTyQlOVOfg46s8OEiB5UoIiTG6AfViYg1dyC34mXMWTO25nM0EnRTarBab3e/Dy1h3JGhfnFkjDtuNKc8geerwSPPsJHp8d/tWlg44A5EKGzuhFRVSvig38kOi2QQGD2Vm60VtDMRaKsXqbAy5gRtb6jwoKns+Y/QofoDYcsIBNGz+TG6qHFoool4dLHdXl6gMykE2owBgz9GFaz53KHPBUo7Jq0583iB+qd8lbvX6z5U6vXqhdubwsmp2jyXF3//en4gsOXXLRje6RZhmH5tp+OW0918k55x1BC3H37uCvj0raoQn22HVdvFfWDm3P8WcGWzRfczwLo5Bc3ReQZbLm2UnYp/dcogcs2w/FxwEyKmYDjGu/m3E+Qeras85cqGe0YU3W0lnJDddl7RKk81hV0EEdddMOERnzNxh6rI1Y98N3Bl670gxhZ6SHDtl60Ub1MmI3Xb9gZ4F1Hbegq3T3QKahrS15wX46yg9L8GUf3mvmLFXKhDv6cnqvhyMP2UqWjCAhLeqQIsHbYi0FCG0cjTp9HOXrblWl09dQF+m4WNrJRHIRJSKHhUS6Aiq4ANzG4H7i3RJON4V873/h8tPkRNY58k7Ne2WDKCqpx1ifresShkCaZty9DZAqi6K3npm8bC4hAykEiQaoDoz/JPz4GaOE38VXCUP7VQ0Be0JqFdXvriAO5CGlvaYOHccyZ0dFe+UZrE67lFLDUGbq2e1nTPQv6sEbz8/RjhJ/HX9YueuC9aka8fBTG7ME1OvA== X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230022)(39830400003)(346002)(376002)(136003)(396003)(451199015)(36840700001)(46966006)(8676002)(70586007)(42186006)(4326008)(70206006)(316002)(36916002)(356005)(4744005)(2906002)(5660300002)(7596003)(8936002)(6862004)(41300700001)(7636003)(47076005)(86362001)(36756003)(36860700001)(83380400001)(53546011)(6666004)(478600001)(40480700001)(336012)(2616005)(186003)(6266002)(26005)(82310400005)(38230200001)(81973001)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2023 08:47:58.0453 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c0b3fd99-e1c5-4d0a-0a85-08daf21e352a X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: CWLGBR01FT009.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO0P265MB5682 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Theodor Thornhill writes: > Theodor Thornhill writes: > >> On 9 January 2023 04:39:34 CET, Yuan Fu wrote: >>> >>>Mickey Petersen writes: >>> >>>> The defvar `transpose-sexps-function' holds on to a lambda function. >>>> Would it be possible to make it an actual function? Its purpose is >>>> rather important as it is the default transposition function that was >>>> moved out of `transpose-sexps'. Being able to reliably access it when >>>> `transpose-sexps-function' is overriden is useful. >>> >>>CC=E2=80=99d Theo. >>> >>>Yuan >> >> Thanks yuan. >> >> Yeah I'll make this change and call the new function transpose-sexps-def= ault-function. >> >> Apologies for any inconvenience :) >> >> Theo > > > How about this, Mickey. Is this something you can work with? > Looks perfect. Nice one, Theo. Kind regards, Mickey. > Theo > > [2. text/x-patch; 0001-Add-named-defun-for-transpose-sexps-default-functi= on.patch]... From unknown Fri Aug 15 19:25:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 12:21:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mickey Petersen Cc: Yuan Fu , 60654@debbugs.gnu.org Received: via spool by 60654-submit@debbugs.gnu.org id=B60654.167326681921278 (code B ref 60654); Mon, 09 Jan 2023 12:21:04 +0000 Received: (at 60654) by debbugs.gnu.org; 9 Jan 2023 12:20:19 +0000 Received: from localhost ([127.0.0.1]:35939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEr8U-0005X8-UD for submit@debbugs.gnu.org; Mon, 09 Jan 2023 07:20:19 -0500 Received: from out2.migadu.com ([188.165.223.204]:30677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEr8S-0005Wz-U6 for 60654@debbugs.gnu.org; Mon, 09 Jan 2023 07:20:17 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1673266815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LAJ7cIZRswe9RMk9FJqiyOJUKLwadOaYAniX2rnLj4o=; b=MQbd5NVto/P3Ydrxpalc5T/JvUrQUcKCi57oCG7HR10pwaHdM2faWsZtwpsR+bBwWxS1SB CrJ0tmnzdpvAe3K/pDQe5rhxcuh2Tgq+m2KtZ77xmJwr9fJaefsA67KCt+I4wHo5/mcH7k VWqK2Qr/zoDFXuzcQTtIb7rpHTrx/+X73ML5gZvVoClH2crS/jcoScSVfZjZifJX/UVtga lyG1N9U4jEhWhXaw4Gh9/aFL7R3eKlOqxHg/sWGdBZts6GM64Ob98B+xNykCy0FT2sHQ2+ laiH+gCJpcH/X48X6c8RwoX57vmpRhS6I1ysT5OHKjtf4mdVNZj3CntRRkhnOA== From: Theodor Thornhill In-Reply-To: <87fsckjdqc.fsf@masteringemacs.org> References: <111EEEA5-B5FC-4C45-99A9-06B4C63713A8@thornhill.no> <87lemctcu0.fsf@thornhill.no> <87fsckjdqc.fsf@masteringemacs.org> Date: Mon, 09 Jan 2023 13:20:12 +0100 Message-ID: <87fscjucg3.fsf@thornhill.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mickey Petersen writes: > Theodor Thornhill writes: > >> Theodor Thornhill writes: >> >>> On 9 January 2023 04:39:34 CET, Yuan Fu wrote: >>>> >>>>Mickey Petersen writes: >>>> >>>>> The defvar `transpose-sexps-function' holds on to a lambda function. >>>>> Would it be possible to make it an actual function? Its purpose is >>>>> rather important as it is the default transposition function that was >>>>> moved out of `transpose-sexps'. Being able to reliably access it when >>>>> `transpose-sexps-function' is overriden is useful. >>>> >>>>CC=E2=80=99d Theo. >>>> >>>>Yuan >>> >>> Thanks yuan. >>> >>> Yeah I'll make this change and call the new function transpose-sexps-de= fault-function. >>> >>> Apologies for any inconvenience :) >>> >>> Theo >> >> >> How about this, Mickey. Is this something you can work with? >> > > Looks perfect. Nice one, Theo. > > Kind regards, > > Mickey. > Great! Yuan, can you install for me? Theo From unknown Fri Aug 15 19:25:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mickey Petersen Subject: bug#60654: closed (Re: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar) Message-ID: References: <8C84ACB5-828B-4B62-9DAB-378C6D447426@gmail.com> <87tu11jod0.fsf@masteringemacs.org> X-Gnu-PR-Message: they-closed 60654 X-Gnu-PR-Package: emacs Reply-To: 60654@debbugs.gnu.org Date: Mon, 09 Jan 2023 20:36:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1673296562-3355-1" This is a multi-part message in MIME format... ------------=_1673296562-3355-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a= defvar which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60654@debbugs.gnu.org. --=20 60654: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60654 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1673296562-3355-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 60654-done) by debbugs.gnu.org; 9 Jan 2023 20:35:30 +0000 Received: from localhost ([127.0.0.1]:38307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEyrh-0000r1-QX for submit@debbugs.gnu.org; Mon, 09 Jan 2023 15:35:30 -0500 Received: from mail-pf1-f169.google.com ([209.85.210.169]:38859) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEyrf-0000ql-Ry for 60654-done@debbugs.gnu.org; Mon, 09 Jan 2023 15:35:28 -0500 Received: by mail-pf1-f169.google.com with SMTP id c9so7104733pfj.5 for <60654-done@debbugs.gnu.org>; Mon, 09 Jan 2023 12:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=BVi508LnWz02XrJIgg14deat79kPlf+n9oXeQY0FRHk=; b=av5b53VSaGsrz3dVavQcMbN/+KIFNbs7L8x9UQfy9TrZmduutKWX9fbnb3e67S8rFf JwcBQi2bGAX9hJngNjuq+AZrEwvKGMRmxztiJwBrdmKZ0rnZjUuRfwMWYPDh5nrOB7Hj XyycI1LDaNSv8fTPcdN7KUv8f3fgV8AvSMen0HRh3DEogeiccBRsOR5cbqSgZEN08Ulo mYLlwi9NgCIHIrEycAr9NdulfCr6kYgkOPXU0r8rpR8T+0ipjnluoVmCxN3Y6VaOCcbJ AqwfhQv+BwYp/cUWMysyIYlkdJT33rpkp3g53OnTcFj8iU8bLfJb1bAAVrI67wGG67Om GKrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BVi508LnWz02XrJIgg14deat79kPlf+n9oXeQY0FRHk=; b=1JFlRjmoFqm1+ftGz9e8rE28k/36XIgN39kLP/vOWmLO6PUEx9OVbs28suQrFy78VG C1Gqe7lcLLWpyZEyBz+Wc3XU/1HjTo62XnXbf0hiU5IzxPmDbg4ODGBMAi4m50qxAro5 URIlTp7p1oDsRowy5bo5uqYV0APGz7KEGdJqgahboiv/lOAGUayI3HCpYrGKiCLUXdDl o8H3cRzLtVi7tFdavlootwhfO2+nipVkyVWpThl2Onr1zPBIT8hBUXXDFqEUwjyfmBLt hjWnOaEeadvYZPjO7pgvehYJ+b4O+A2W5vlVgyImhBI0BXFoeiGttspxX0XcCdvOxTFZ cLVw== X-Gm-Message-State: AFqh2krVuoC1MUr1O+MddZsk0cvEEaso9eEkPRvVGvIAo1f3HabWPlV6 NkVchA6EIdk/lUR8pHXi0uIv1655anQ= X-Google-Smtp-Source: AMrXdXvtoC6vgixJjVRg0AYGOAjrYWz/tioUamllnP17YyICyk7RQc37d7qodB4Ohf1D+s2tI3NKKw== X-Received: by 2002:a05:6a00:1d12:b0:588:cb81:9237 with SMTP id a18-20020a056a001d1200b00588cb819237mr3921109pfx.7.1673296521989; Mon, 09 Jan 2023 12:35:21 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id y29-20020aa793dd000000b0057462848b94sm6412032pff.184.2023.01.09.12.35.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2023 12:35:21 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: bug#60654: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar Message-Id: <8C84ACB5-828B-4B62-9DAB-378C6D447426@gmail.com> Date: Mon, 9 Jan 2023 12:35:20 -0800 To: Theodor Thornhill X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60654-done Cc: 60654-done@debbugs.gnu.org, Mickey Petersen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Theodor Thornhill writes: > Mickey Petersen writes: > >> Theodor Thornhill writes: >> >>> Theodor Thornhill writes: >>> >>>> On 9 January 2023 04:39:34 CET, Yuan Fu wrote: >>>>> >>>>>Mickey Petersen writes: >>>>> >>>>>> The defvar `transpose-sexps-function' holds on to a lambda = function. >>>>>> Would it be possible to make it an actual function? Its purpose = is >>>>>> rather important as it is the default transposition function that = was >>>>>> moved out of `transpose-sexps'. Being able to reliably access it = when >>>>>> `transpose-sexps-function' is overriden is useful. >>>>> >>>>>CC=E2=80=99d Theo. >>>>> >>>>>Yuan >>>> >>>> Thanks yuan. >>>> >>>> Yeah I'll make this change and call the new function = transpose-sexps-default-function. >>>> >>>> Apologies for any inconvenience :) >>>> >>>> Theo >>> >>> >>> How about this, Mickey. Is this something you can work with? >>> >> >> Looks perfect. Nice one, Theo. >> >> Kind regards, >> >> Mickey. >> > > Great! Yuan, can you install for me? > > Theo Sure, I applied it to trunk. Yuan ------------=_1673296562-3355-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Jan 2023 10:46:23 +0000 Received: from localhost ([127.0.0.1]:59988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pETC3-0003ro-7V for submit@debbugs.gnu.org; Sun, 08 Jan 2023 05:46:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:35478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pETC1-0003rh-OO for submit@debbugs.gnu.org; Sun, 08 Jan 2023 05:46:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pETBs-0003PR-9U for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 05:46:15 -0500 Received: from mail-lo2gbr01on2128.outbound.protection.outlook.com ([40.107.10.128] helo=GBR01-LO2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pETBp-0000n2-HY for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 05:46:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A5+rEMjV90TuGawaV6NccLMXhhS/bGy/zGGE8Vr4eTvRQXVvZAgv12U3qWbthFLsx+SVOjEO5/y0dHx62epRtswqg82ntK309rTO15nPZlqgQeDwW5MfyIDYr1LXatjeATd2r3bcDwPKFYSLVPmgsuwja47j8Z7kyrz/OIbL697pIJ8zCujgh+VEn85kmB+PP4cJpAGwsU31KkC1hovz/K+t+jTUt7M/4kbR4BbV93a34RdR00AUGfD6Q1l/XT4s3SDlvBW+lbY3qVlg1DUuWkuBJyE1nl+SQpjryaWZh5kA4Ass9TRfbGEA5n+6KKqyaudZbyuweAswgvNKA1kH3g== 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=s1DmN+1hBrktEciwr+Wpt/rnYLx2iPcoQh1ESbvcBes=; b=jDKYQmxv4cdTnsvOBJsSmxzEhx+JYQzel1hGei/Ub44AKa76n9Fv4Ee0URnKONbX4Gx3KiJWIQdPcObjmLzP7bCBLPvFf/B6GR0OzJ+E431/tdm2Zz4fnMvb//RYh8zfhFcyxvGjkivyo3c5J9gFRQnqW64dZUbz/8p9f5Kgv1g0ZcfYC0AGs+KUTkm/bPKhUa8cbmFAiPmEURGuvlujWMilgU/jC1miNcc0gay3HV1P124Fx2tAzG3WyUlx4Ma/WlcrKWf0GVcU+c+P17cKAZRvj8JTahZeqJUWZaPlCSX0qu+iT+88fk2X2hdELP+TLPLfHWz2UfkXSYUHQiD4UA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s1DmN+1hBrktEciwr+Wpt/rnYLx2iPcoQh1ESbvcBes=; b=JfFK1WyWCLoWpG/3FfdMXUP2lXG/zl08oqxkpelBMOz1fR1zn3QmVPwrDHBsfc5LWtZHCJcu0PGXXVS39c1W+hP8W1Dm1sTVb1Tmu8Mu53Y6dR3KgTd6vM4EO9rlieRHBo2POBs/MnMHA75ShPelN3iBWnrnQ+9XM2N4Ev+S1A0= Received: from LO4P123CA0228.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a6::17) by CWXP265MB5155.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:194::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Sun, 8 Jan 2023 10:46:06 +0000 Received: from LO2GBR01FT006.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:1a6:cafe::c2) by LO4P123CA0228.outlook.office365.com (2603:10a6:600:1a6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Sun, 8 Jan 2023 10:46:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Received: from semantical.co.uk (178.79.136.144) by LO2GBR01FT006.mail.protection.outlook.com (10.152.42.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.17 via Frontend Transport; Sun, 8 Jan 2023 10:46:05 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 67B94114003; Sun, 8 Jan 2023 10:46:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1673174765; bh=s1DmN+1hBrktEciwr+Wpt/rnYLx2iPcoQh1ESbvcBes=; h=From:To:Subject:Date:From; b=YcS9rVED8VsAQsa1v0oR6dLqoVNJjw+dpjefx+O4FnF4Yug1gT/dVqk2L0Lo8W6if L7/CBeXz9QO2TWWskpZPKmmn8+YBdxgzxrGWQmvdxarbw6f/9ZtNlf/BZBxXLF0K8v jOlRAhYwztIBqpfh5Fsn8+65ELytN3s5XwfkeSYI= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on semantical.co.uk X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 From: Mickey Petersen To: bug-gnu-emacs@gnu.org Subject: 30.0.50; tree-sitter: `transpose-sexps-function' uses a lambda in a defvar Date: Sun, 08 Jan 2023 10:46:03 +0000 Message-ID: <87tu11jod0.fsf@masteringemacs.org> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT006:EE_|CWXP265MB5155:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ffc99094-e94c-476b-094c-08daf1658b49 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: khXPVDj2QVWg1zPu4wIAbrUZb0TjBTp8zvdruKrgHE66DxsN2bV4D2SL57ur0l+gEEhBWGvVvJHFoEPef2jNXjdiw/GnWjNGGDg/9smoOmwy9g48EzDEMnsvDaW9sAOi7QmKiI88aqwTFTqUAVbUuEUmLGYnVvKm36WqKF3sKjMRisBsZBMmZy0JcqYpTD87ncM1j75sIo7z6o1hzQtf8GvkOUIiimsoGKPgj3/UmmqNEZ7xo30p09qAuOCjMvN/pe5gla4irBJhixaVBBRHxyaewVz1bIb8RAgYjpUTFmyrm8ijWAdNLZwCoDk5ehLTz0PK6pMULi/q1pxgq5ClbNuzpd4WNVmZxxFYpslvqoFlsrwrJ804mrgFPZF5XarHATSxr5WJ+O7AJLBrgIDDdoRzsq3jIk/VtTEF9yn8ZWLXcoSjgE+K8jhx1UPW1aT8dhV5P7CCxT5k42PomXVUdo0RmdEn6AFch6+92DO1ySOrcrMurE4tybIaBgYr/fwwHj3kUarF1JKfoxa2VdQYfZwPDmxpVMyE2B5pPwcjfKFMU2y+e5MA2A037opWJGrYv64pQxM+BUuY9lTISg1Q97QMSdXtDEMEGb7amurLqAVRm0N1QqoHR1fov4C8kPHPdnrwG6N762yhxG2Ne70kRS4t4yDYkqE4A+HBGsrtEwSiq8NkrMuk21Lq48qkMwCRIFUlvwAFz7w/8F2xhgsfQabzvjOsbE9H8HSW5RjS4YZ/T9KNqUUi1UEK5e3nzqeD4fI8/kcbS67XhrHA59RaAQ== X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230022)(396003)(39830400003)(136003)(376002)(346002)(451199015)(36840700001)(46966006)(36756003)(186003)(8936002)(26005)(6266002)(4744005)(40480700001)(2616005)(5660300002)(8676002)(6916009)(356005)(316002)(86362001)(42186006)(70586007)(478600001)(7596003)(7636003)(41300700001)(70206006)(82310400005)(47076005)(2906002)(83380400001)(336012)(36860700001)(38230200001)(81973001)(14776008)(79816003); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2023 10:46:05.6822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ffc99094-e94c-476b-094c-08daf1658b49 X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: LO2GBR01FT006.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP265MB5155 Received-SPF: pass client-ip=40.107.10.128; envelope-from=mickey@masteringemacs.org; helo=GBR01-LO2-obe.outbound.protection.outlook.com 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) The defvar `transpose-sexps-function' holds on to a lambda function. Would it be possible to make it an actual function? Its purpose is rather important as it is the default transposition function that was moved out of `transpose-sexps'. Being able to reliably access it when `transpose-sexps-function' is overriden is useful. In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-01-02 built on mickey-work Repository revision: c209802f7b3721a1b95113290934a23fee88f678 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.3 LTS Configured using: 'configure --with-native-compilation --with-json --with-mailutils --without-compress-install --with-imagemagick CC=gcc-10' ------------=_1673296562-3355-1--