From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#26650: 26.0.50; Protect *Backtrace* from accidental killing Date: Wed, 26 Apr 2017 22:57:23 +0900 (JST) Message-ID: References: <871ssgvgof.fsf@calancha-pc> <87wpa8ofcc.fsf@users.sourceforge.net> <87shkwodmv.fsf@users.sourceforge.net> <838tmnpjly.fsf@gnu.org> <83wpa7o2gn.fsf@gnu.org> <87k267nxf9.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1493215383 24484 195.159.176.226 (26 Apr 2017 14:03:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2017 14:03:03 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Cc: 26650@debbugs.gnu.org, Tino Calancha To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 26 16:02:46 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3NWo-0005q9-3j for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 16:02:46 +0200 Original-Received: from localhost ([::1]:55408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3NWs-0004co-4d for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Apr 2017 10:02:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d3NSJ-0001D7-VR for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 09:58:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d3NSF-00070U-8G for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 09:58:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d3NSF-00070D-1x for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 09:58:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d3NSE-0004na-AJ for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2017 09:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Apr 2017 13:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26650 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 26650-submit@debbugs.gnu.org id=B26650.149321505518395 (code B ref 26650); Wed, 26 Apr 2017 13:58:02 +0000 Original-Received: (at 26650) by debbugs.gnu.org; 26 Apr 2017 13:57:35 +0000 Original-Received: from localhost ([127.0.0.1]:41746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3NRm-0004mc-Mo for submit@debbugs.gnu.org; Wed, 26 Apr 2017 09:57:34 -0400 Original-Received: from mail-pg0-f66.google.com ([74.125.83.66]:36424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3NRl-0004mK-9e for 26650@debbugs.gnu.org; Wed, 26 Apr 2017 09:57:33 -0400 Original-Received: by mail-pg0-f66.google.com with SMTP id v1so222849pgv.3 for <26650@debbugs.gnu.org>; Wed, 26 Apr 2017 06:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=pG/kZgKyymT4uUYGDHnM30mm/hVu0SLfGDxLrVNhiZU=; b=HsAOYyAsgkaoMZYvBPXAI/AKpIQd8Azbzf9r1KI5vg/hcwVYtcI3ZQ/pKPaty0V//L ZE246JtuNCRt16yohGlyJeApuY5M+NEfcQ47Rll/TUd4BAYA8GK/4U2dvzIPCBLVrNVa t8MnEljgRogcyxRrRfcAnjoRO0wMG1LI7e8XPzamGMD6Ft1eAesseBlUytMSSl/g/VUg Zv+odHFMXonuzo138D5ZixjJ2jB7hTDvFMoV7LxjgWBnF40zj5XlKBwkBheHRupSWnsF ySO+1e2ehqJt9c4W37twJ1gC/BjgTdnCD/UsMXKLvKDa92DIKlTjFjliJozRTxnDSJpU tjqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=pG/kZgKyymT4uUYGDHnM30mm/hVu0SLfGDxLrVNhiZU=; b=ODillosxdSYxCcf/SItm61buxUTUDeKGeBr4v8Wan0prltJ5yovN+rCrQ3WiiRO8bl +yV59rBfolJRBr/Y61HOeXohwk9uEA8Bs9yjizL2Snxgz8UzVzKT8Q9O8ez1xmWOxqnK p3KeOxr1mCBE2c3Xv6BGvvTP9fGVL4IKkuhRF4sM8MYQNNxEd+dpC32SkIpxDTEEq7XN 2Ma7BhYFCgLbgMyGbOVk2DRI6sCTmZ4PlXhWU4pPAAVfCM+sSJLck/Fnxa5WLD4ZovSr sExUgtu1C4JYnmLaHIHL2bnRP3eLOAAK1TNS3lS4/DJucW8j553sIQKlrYejcYj3v3Ma Oa1g== X-Gm-Message-State: AN3rC/4jNBbSoLgzhgIw6iTVAJNvhploy4M25p3Xdo3u5NIGQQpI3YVQ xyVIrqP9/Nf8Iw== X-Received: by 10.99.111.1 with SMTP id k1mr32316608pgc.194.1493215047306; Wed, 26 Apr 2017 06:57:27 -0700 (PDT) Original-Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id c64sm687496pfa.110.2017.04.26.06.57.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Apr 2017 06:57:26 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc In-Reply-To: <87k267nxf9.fsf@users.sourceforge.net> 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: 208.118.235.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:132017 Archived-At: On Wed, 26 Apr 2017, npostavs@users.sourceforge.net wrote: > Eli Zaretskii writes: > >>>>> + (add-hook 'kill-buffer-hook >>>>> + (lambda () (if (> (recursion-depth) 0) (top-level))) nil t) >>>> >>>> This will throw to top-level when _any_ buffer is killed, as long as >>>> we are in recursive-edit, no? >>> No, because `add-hook' is called with non-nil LOCAL arg. >> >> Right, sorry for not paying attention. > > Maybe I should have written > > (add-hook 'kill-buffer-hook (lambda ...) nil 'local) > > to emphasize this? I'm still undecided on the general style question of > whether to use t or ' in these cases. This reminds me the discussion here: https://github.com/bbatsov/emacs-lisp-style-guide/issues/30