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#37352: 27.0.50; recursive-edit aborts on elisp error after evaluation Date: Sun, 22 Sep 2019 09:55:44 -0700 (PDT) Message-ID: <7ddd69dc-0dbf-4371-8067-ef219cc0569d@default> References: <86woeh6ho0.fsf@protected.rcdrun.com> <87muey95xs.fsf@gnus.org> <20190920190903.GA12634@protected.rcdrun.com> <87tv9665t8.fsf@gnus.org> <20190922125743.GJ5996@protected.rcdrun.com> <877e60wknp.fsf@gnus.org> <20190922130424.GK5996@protected.rcdrun.com> <87woe0v3tl.fsf@gnus.org> <871rw89tfg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="77334"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Lars Ingebrigtsen , Jean Louis , 37352@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 22 18:56:16 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 1iC59h-000Jyb-Mt for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Sep 2019 18:56:13 +0200 Original-Received: from localhost ([::1]:47878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iC59g-0003AA-IM for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Sep 2019 12:56:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57028) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iC59Z-00037Q-8a for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 12:56:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iC59X-0008SV-7t for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 12:56:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53851) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iC59W-0008SF-Ik for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 12:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iC59W-0005rQ-Ha for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2019 12:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2019 16:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37352 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 37352-submit@debbugs.gnu.org id=B37352.156917135922517 (code B ref 37352); Sun, 22 Sep 2019 16:56:02 +0000 Original-Received: (at 37352) by debbugs.gnu.org; 22 Sep 2019 16:55:59 +0000 Original-Received: from localhost ([127.0.0.1]:34439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC59S-0005r5-QY for submit@debbugs.gnu.org; Sun, 22 Sep 2019 12:55:59 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:54226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iC59Q-0005qm-In for 37352@debbugs.gnu.org; Sun, 22 Sep 2019 12:55:57 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8MGnPV6185578; Sun, 22 Sep 2019 16:55:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=q/3B1G9MkdIN7K82ms2mtUTDe1GBMZ6yzJ3SDGnOO/I=; b=Y23jInoqgQz1WI3zHAGRNJ6xodEL6GrOQGHtVpCOtf5XuXf89ojFfUz2gKQnOetDTa1a EXU9pzF7gWgA5WX677Cuh5uoXrQB5lBGL7zbo8nLVX/qV9pQJNuErAs2+Kd08uADTEhu 6ic1JY0yowNEMbvQ5cf0DM7dildNGWDiNYkzJrP+3pC9b2lvGzbpbD32fcrGs/D8czFC uBKzSW1SiXfiHqj3cpI9g6IXI48mU8rpSnz3bnL/TrPeJO0Y/8es+ItlBJYWDtBJMNKI EZtT3EbueXhrylOTcReJNznUzn2Qn+nCJIuBGMWV7l0GIS4nLI5OhF6pyIyThk0Tk8k6 8A== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2v5b9tb9vb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 22 Sep 2019 16:55:49 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x8MGrOx3153204; Sun, 22 Sep 2019 16:55:48 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2v5b77knpq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 22 Sep 2019 16:55:48 +0000 Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x8MGtjA4002575; Sun, 22 Sep 2019 16:55:47 GMT In-Reply-To: <871rw89tfg.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4888.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9388 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=932 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1909220177 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9388 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-1908290000 definitions=main-1909220177 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:166923 Archived-At: > > > I don't know why the `q' command in the debugging mode > > > is defined that way. > > > > Uh, because it makes sense? =C2=A0The recursive edit > > was entered only for use of the debugger. >=20 > There are two recursive edits, one that the OP entered from their code > (I assume for the edit-file-and-return-as-string stuff [1]),=20 Sorry; didn't realize that. > and a second nested one that happend after an error was signaled and the > debugger was invoked. Then quitting the debugger exits both recursive > edits, because q is bound to top-level in debugger-mode, and top-level > aborts all recursive edits, not just the latest one. >=20 > A possible solution might be to bind q to a command which quits > recursive edits only up to the one that the debugger invoked. I see; thanks. But if an error was raised then is it possible to return from the debugger recursive edit to the previous recursive edit? Continuing from an error can be problematic, no? On the other hand, if the debugger was entered for, say, `debug` or `debug-on-entry` then what's called for is to use `c`, not `q`, (as many times as necessary, to exit the debugger), or to use `C-M-c` to exit the recursive edit immediately.