From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#38796: 26.3; `view-lossage': Use a variable for the lossage limit Date: Sun, 29 Dec 2019 09:04:54 -0800 (PST) Message-ID: <43aac56d-ecf1-44ed-9be1-ffb8e5f8a7ce@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="29759"; mail-complaints-to="usenet@blaine.gmane.org" To: 38796@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 29 18:06:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ilc15-0007bM-Vp for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Dec 2019 18:06:12 +0100 Original-Received: from localhost ([::1]:53690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilc13-00017n-M6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Dec 2019 12:06:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34698) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilc0x-00017V-O2 for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 12:06:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilc0w-0001s3-EH for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 12:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilc0w-0001rc-A8 for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 12:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ilc0w-0000wq-4a for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 12:06: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, 29 Dec 2019 17:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38796 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15776391033568 (code B ref -1); Sun, 29 Dec 2019 17:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Dec 2019 17:05:03 +0000 Original-Received: from localhost ([127.0.0.1]:60134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilbzz-0000vU-6K for submit@debbugs.gnu.org; Sun, 29 Dec 2019 12:05:03 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilbzy-0000vL-2W for submit@debbugs.gnu.org; Sun, 29 Dec 2019 12:05:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60350) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilbzw-0000zi-Mc for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 12:05:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilbzv-0008Eb-7o for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 12:05:00 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:38686) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ilbzv-0008CH-0D for bug-gnu-emacs@gnu.org; Sun, 29 Dec 2019 12:04:59 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBTH4Sck093241 for ; Sun, 29 Dec 2019 17:04:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=7/MH4heCOqot2hTW1jXmyuOYLvc5k1xlQ/tWw19rOug=; b=YLfnVhvXz3yVZxNSbyICGXrrJKe4dv7vQtz3cmR21uIPkfAZcBby3KNVokv7vxVr8esf g1yBOB2wjQrUTckhX0glAXBf9TscmK2n2bzzpLfK09arpsi5NeYYHw5LVq2pNZAe5H3T oVq1GGFvWmY0585pms3bZZXLWrb4epb7ikyRBs2n8w0S6gMKaDn987z0BEsPVGnn6uHz ot6ap86silgRfOtBcQWUKOJYwgrn9wPcGZVYukh+sIFd0kHsrmeE+HC6oaIPhYwTtgmT C4M5CXtFqUDPPX4WnySFuMFHTkYAUbNIiC98SXqIqkfLqu98BFP+RKY5Ak/Hf5CF0eeu lw== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2x5y0pb98h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 29 Dec 2019 17:04:57 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id xBTH3cdj077528 for ; Sun, 29 Dec 2019 17:04:57 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2x6h6ujp5m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 29 Dec 2019 17:04:57 +0000 Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id xBTH4tre032020 for ; Sun, 29 Dec 2019 17:04:56 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4939.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9485 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912290161 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9485 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-1912290161 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173894 Archived-At: This report is a follow-up to this emacs-devel thread: https://lists.gnu.org/archive/html/emacs-devel/2019-12/msg00678.html and to the older thread that it references: https://lists.gnu.org/archive/html/emacs-devel/2006-03/msg01012.html Please use a variable for the limit of how many characters to use for recording lossage. Doing that will give users (and Lisp code) control over the limit. Having a limit that is hard-coded in C is not user-friendly - it's even unemacsy. The latter thread mentioned above ended with RMS's decision to have this taken care of after the release that was then incipient. But this was never done. I'd prefer to see this as a user option, but an ordinary defvar would already be a great improvement. I don't think it's uncommon to have mistakenly typed some keys, gotten in a strange or unfamiliar situation as a result of that, and then tried to find out just what keys led to that. Depending on what else you did in the meantime, before hitting `C-h l' (e.g., to get out of the strange situation), `view-lossage' might not reach far enough backward to show you the mistake you made. It shouldn't be a big deal to move this limit to a Lisp variable. Can this please be done now? --- Not part of this bug report, but `view-lossage' could also be improved by letting you (or Lisp code) filter the recorded "keystroke" history, to remove stuff that you feel is really extraneous (e.g. not keyboard keystrokes). Such filtering could be just hiding that from view. (This is all the more relevant if we can control the lossage limit. The really relevant user input is sometimes a relatively small subset of the full list of recorded events you see now with `C-h l'.) In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor `Microsoft Corp.', version 10.0.17763 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''