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.bugs Subject: bug#61440: 27.2; Be able to have `view-lossage' report only on the current buffer Date: Sun, 12 Feb 2023 15:43:55 +0000 Message-ID: References: <83h6vrifdq.fsf@gnu.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="19353"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "61440@debbugs.gnu.org" <61440@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 16:45:22 2023 Return-path: Envelope-to: geb-bug-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 1pREXZ-0004qW-Nd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 16:45:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pREXJ-0004u6-JC; Sun, 12 Feb 2023 10:45:05 -0500 Original-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 1pREXH-0004tt-Dr for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 10:45:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pREXG-0004gB-AJ for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 10:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pREXG-0008F0-66 for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 10:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2023 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61440 X-GNU-PR-Package: emacs Original-Received: via spool by 61440-submit@debbugs.gnu.org id=B61440.167621664631580 (code B ref 61440); Sun, 12 Feb 2023 15:45:02 +0000 Original-Received: (at 61440) by debbugs.gnu.org; 12 Feb 2023 15:44:06 +0000 Original-Received: from localhost ([127.0.0.1]:46482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pREWL-0008DH-RU for submit@debbugs.gnu.org; Sun, 12 Feb 2023 10:44:06 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:3890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pREWI-0008Ci-1F for 61440@debbugs.gnu.org; Sun, 12 Feb 2023 10:44:04 -0500 Original-Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31C4isEP027368; Sun, 12 Feb 2023 15:44:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=O6ew5xZmFZ1JGjrdfElNcoTQiFG6bcv0gEFoHbUfMIQ=; b=VGESxmZVgdh7fnDODJJy+j8IBImdJCiRIiii4BNUmYy2Aiq/KI4QzH7GD4mbMAFGdKCQ W9dajWOcvrsM2OS9N4AxOGoQj+rsvtKVGF6xfu3BT62uQrGC6JXIEs4CojTUeQVINiii nzQlsH+LocosarfLrPxhR1c7MSUz+xhpNndJwvIJu7VBEbabn4dnOG2q09ixsU9WYOcg n+/cwupIb8ie08JJ9z/zLEmyMtJtskMsXzTQC9ZznLk8Mz6zbgYU3FV0p8+kp7lRuwOt 6KAoj18akDvR5+ACuzVrqfIsVh6beAcCnNbRnDE4kOXuUf/chCy1bxYgF+tftq+n0lOx SA== Original-Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3np1xb1fe9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 12 Feb 2023 15:44:00 +0000 Original-Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 31CB71ts018112; Sun, 12 Feb 2023 15:43:59 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2043.outbound.protection.outlook.com [104.47.66.43]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3np1f3q4ag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 12 Feb 2023 15:43:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D5+jY5cwX0ksmzh3BweXYAcwwcbezLUQ456QzO2YHGTiSEW14CO7MHukqyDzALKHyOHgh5pcUEyTlWzKn+RWhgd3WNpQjckIXd8h/0Aaz7RP9I4cm+OgaZjQD3n4GJn9VithcYFPIXWfnz860CdRK7/XVxaxq0+56IL1baDa9FICGLOVc4plevVgU4F91NvXUV+Blx11O603233YSfABPTBd6NJgnSliRmy2TcpxpDa6FVrHcTkrlrZP8e69A8C0Dh0WACiXeMuZaM0ob0mU1HP2DIr1afTeIIg8vmJ3IsIEhsPHbOaXx0kSscUzfbIeSSt8vBOtsR4TWiuXhoLoNA== 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=O6ew5xZmFZ1JGjrdfElNcoTQiFG6bcv0gEFoHbUfMIQ=; b=Mmk+0fuzweMjgeMAiWs2pikViIt8myse9f4k59ZocCPMUwDwt7zrteN1xVvYawC56Eo2v73DcfDtUwdEo/0Vkya52/MbeQIIcwh3x827QKc+qKR3ij+z3AXckxTp/DFmJXwturki+QRvbdcBYozz3kNqQAAAPxKFfbp6J4wlctYJIz0Yj3gHLwhKezQZxmFpURK59q2iCB5vU3IdhqCiLbn8XdDPeKiUgjSpi3yQIOFCjMlcxX3EAnv2S38cp+7bdMcb8p/UfgQyh4h5C2IKZfcuzes3gniwxbnf8MgS24rZdzUbXlBLvFiB4G/PbMnPZ3PFn4plNcAZoiRJ8xH5Nw== 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=O6ew5xZmFZ1JGjrdfElNcoTQiFG6bcv0gEFoHbUfMIQ=; b=SMHamidq159ky3mRCJrnq2u0mLuy/mj3wqovkX1v+Xq9v9JOVHJ7YPXNE/YIacCE0rQOwSIrzsBmc+bu+Gvo0n5C+WRyTKiStxh2poYEssXU4gtsQRCS2Fa1obdj+P4X4yI4dORJMmKh46nWmJHTUB7pnoIE41EXFAwnWMcAo7c= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH8PR10MB6646.namprd10.prod.outlook.com (2603:10b6:510:222::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.8; Sun, 12 Feb 2023 15:43:56 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::d353:3fb:94e4:18b9]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::d353:3fb:94e4:18b9%7]) with mapi id 15.20.6111.009; Sun, 12 Feb 2023 15:43:56 +0000 Thread-Topic: [External] : Re: bug#61440: 27.2; Be able to have `view-lossage' report only on the current buffer Thread-Index: Adk+ZAAos/RYgRAsRdyiEItN6MnDwQARLVwgABLrW9A= In-Reply-To: <83h6vrifdq.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH8PR10MB6646:EE_ x-ms-office365-filtering-correlation-id: fe8ad11d-1401-4ee6-bb88-08db0d0ff34d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lKtCZKzfu5JL5NWIh1ByoPmq71J/c8h3SEqPUjZA2vPMP5vFQMy/Lt/ukc0eyISTIHsfdIjtSrRJfaklFmPX7dLoHV5VJONKwx2RJXdQsF5PEYznddYYFokmX6y+mtKILKe+0E6/nqtFjjTWCm9BxBHkcX+AkXojAPTRvFQts28//TjWOS0Vw3qtm9r9udXacThyzM4LV5qn/e/XZtyy/qN+1dV0+eq/G+V9YKmGWHxv3c/WAIeu80A+DpuFq74REvKUq/4OAXAgQDym+CU0jhwxTToh6W8gzPFH27BJh52m+bz2PlPNTkWMtpL6YZ3I7ZjGZnKRCEBcFzi3/mfyIn6ZFUsdXOmFaoE08HnbtGSu3boKLh0vSbbjrh/ZTjisk57HF1IdgiiPzQBZ4c94GVLN/j5jYZU/Jg8HiJ3bccKB8veV8+h5+Ing24IkpemmNsBsXdJ5/SuBtUkb6rI/2LS9cL5Y5dz1QDE5MFfWfiGq+cmJuEp55wvRXZKyqOpdQAN9PJBiiK4S4F5zQtlTMZ1HWCqvRQXVbuHpiItWx5GplXGDGrJHj57ytrLROvxr+VGo8tl2y7l8X/r20hwbSLb9JEOrlbN5Fzz3oEZORccWkEI1OgaTgz/Cfl6NLbFJNvFS6n8qUhgz6kUCTmx0W9hySggug6bnlUSDjtOlTrcYXKiiJ/v/39SLkIP7TCcBx5JRg+LXP60Q0BPS33gbdCwVwb3W/zsAZZic6VdXDTw= 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:(13230025)(136003)(366004)(376002)(396003)(39850400004)(346002)(451199018)(6916009)(8676002)(76116006)(4326008)(83380400001)(66476007)(66556008)(66946007)(64756008)(66446008)(316002)(41300700001)(6506007)(9686003)(186003)(26005)(38070700005)(33656002)(478600001)(44832011)(71200400001)(7696005)(8936002)(55016003)(52536014)(5660300002)(86362001)(38100700002)(122000001)(2906002)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: +jCpRGEUCVmBb7OPc69r87KieNF5MuoJhwZ1WebpYSrldYXNrXC0AWKF349fkkkARDqxUgyC5YDyUD8sLqfN3+z6ZLi/7R2uRMgUu9yFX5cBgcftkZwDve8Rj4DuMnjC6B64WwqCXHanE3jTK6M4m4rB+XKBsXdo8zoC9D4lLG4en6xTlgEgTHdvgEMB/LvrhslRRm9RFrGDS3hS4iL1TIOl1tDxTyl3s07V8C2AwEHzRgRHajjxIK8gvisV3qpf2SorwSAyWi0+CaBnq+X0nC8gWTYukdkeE7Jlt6kLGW38C0WTV4BODfXD4GBy5BCJ7gGUadE01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dKOXID4rl7STDhFU6HVHLFMSpP2h3/W879QztAKwEGuTY/q0xBoztiiFaAPduLJkGGUg7s5wUXLEraBXtcqMj6DoKUZikaTdBhFA7e21twCQAPVBycaPUiAyws011pLN8fPgFQCiVMvSndwgfgipZXCPYKbcnCG/0rQD/NCFX5iQdQBkwibvyi8y4JDmtkQQxMw96oGitdNHHk4NHvCJwDA/vGCUAi+wQ77dU7ftEa+vGlO2VH10qNAU+nm9WeHJ5of9UcTQdUvbS lMUbIERANrTKl12MGEdfC8pbuK5VnTGNlAaRIPTql6o5+niF54nLjDbPx6Z9o= 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: fe8ad11d-1401-4ee6-bb88-08db0d0ff34d X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2023 15:43:56.0217 (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: SAOxNNwkhempx+FhRbC2Vjdl8OauG7vSmBvF3ecpj655sddkahRyuT1pWK6GTf3TSfny3KLhoIvMinws61V1xQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6646 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-12_05,2023-02-09_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 adultscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302120141 X-Proofpoint-ORIG-GUID: nFu4xOJ4W997slhONiS4r1MZIDmezDwg X-Proofpoint-GUID: nFu4xOJ4W997slhONiS4r1MZIDmezDwg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255421 Archived-At: > How do you define "commands used in the current buffer"? Good question! Clearly I didn't think enough about this before posting. > . are commands in the minibuffer when Emacs prompts considered to be > "used in the current buffer"? > . are commands invoked from the minibuffer via M-x considered to be > "used in the current buffer"? > . what about commands that switch to temporary buffers and enter > recursive edit there? > . what about commands that switch to another buffer in the middle of > typing a key sequence? > . etc. etc. >=20 > IOW, I don't understand how this hypothetical feature could work in > practice, let alone how to document what exactly it produces. Emacs > commands are by their very nature "global", unrelated to a buffer. All true. Thanks for thinking this through more than I did. Commands and keys (except keys on text/overlay properties) are unrelated to any particular buffer. But some buffer is current when a command/key is invoked. How about making the criterion be the commands/keys invoked when buffer X is current? (More generally, events occurring when X is current.) Only one buffer is current at any time. The time a command is called could be used to decide which buffer considers it a command to be listed for that buffer. This doesn't imply that the buffer that's current when a command is invoked remains current throughout the command execution, or that the effects of the command will even be in that "invocation" buffer - of course. But it gives us a way to split up the stream of input events a bit, in a way that can sometimes be useful. Commands that move point within a buffer, for example would be listed for that buffer. And of course the usual behavior would be there and be the default: show all commands/keys, regardless of the buffer that was current when called. I'm pretty sure I'd find it useful. I can imagine checking one or more such buffer listings, as well as the global one, when I'm looking for some event or want to know better what I did. As for the minibuffer: I think the choices are either (1) count the minibuffer itself as the current buffer when, uh, it's current, or (2) consider the buffer that was current just before the minibuffer (i.e., that particular depth) was entered as the "current buffer" for purposes of this feature. Each of those, #1 and #2 could actually be useful. Except that, as I worded the request, the proposed behavior would only give you the lossage for the current buffer, not for any buffer you request. And minibuffers are ephemeral, especially recursive ones, so "getting into" such a minibuffer again, to be able to request the lossage help would be problematic. A version of `view-lossage' (I mean another, new command) that asks which buffer to show the lossage for would likely take of that problem. But #2 (use the buffer current before the minibuffer) would be fine. (Dunno whether Emacs has a way to give you the buffer current before the minibuffer was entered. I have that for Icicles, but that didn't exist when I added that. Maybe it's available in Emacs now?) Dunno whether this answers both of your questions: what for? and which buffer?