From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#43957: remove process-kill-buffer-query-function from kill-buffer-query-functions Date: Mon, 12 Oct 2020 10:07:14 -0400 Message-ID: <20201012140714.3omumvzypamrdiv6@E15-2016.optimum.net> 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="28165"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 To: 43957@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 12 16:08:34 2020 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 1kRyV7-0007Dt-Gg for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Oct 2020 16:08:33 +0200 Original-Received: from localhost ([::1]:45494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRyV6-0006s6-Ax for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Oct 2020 10:08:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRyUd-0006q8-0j for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 10:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRyUc-0003Tg-NG for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 10:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRyUc-0001P9-Hd for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 10:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Oct 2020 14:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43957 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Emacs Bug Reporting Original-Received: via spool by submit@debbugs.gnu.org id=B.16025116465356 (code B ref -1); Mon, 12 Oct 2020 14:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2020 14:07:26 +0000 Original-Received: from localhost ([127.0.0.1]:43566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRyU2-0001OK-3Q for submit@debbugs.gnu.org; Mon, 12 Oct 2020 10:07:26 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRyTz-0001OB-Sh for submit@debbugs.gnu.org; Mon, 12 Oct 2020 10:07:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRyTz-0006N9-LG for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 10:07:23 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:57379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRyTw-0003Pa-0S for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 10:07:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602511637; bh=SUsjFFlChHv44Vfb5W0A+3m2JEocPF47Txo4BsToZqU=; h=X-UI-Sender-Class:Date:From:To:Subject; b=efG4qdSnDlCXLN5+C9EOfqwlCH0XSfG/2vsU3LUMO0JUMLGJKLIDIClVqJdPR+JKh k5qwzQ+uTlV1iloA9/3A21MRMgxazzqxjgj7DcSkjt6ZDDOmAJmuCM4UZRs0PdBRCK Uad71fjm8Tv5u+ndD39vsmRflfyXzBLzYVn1mpY0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([72.89.170.172]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Mn2WF-1k1PEp3VkV-00k6qD for ; Mon, 12 Oct 2020 16:07:17 +0200 Content-Disposition: inline X-Provags-ID: V03:K1:YmcxBXOPw7NOOjKd9rk81K9f3lkSvETesQjPr2R/UVS4q5hstF9 9UbajaANmrsu2z664oB5LG4yynwFVGP9CBC0XMBgv7ei2pq+OD45SZicqh1NmdsB0VHBV6Q DWjdDRtJVnNvt7mw/bKxgByixR61fCUoixD6IORRakuWwmbGAnjieVUQIlwdvHhrkvORT57 GRbgyU8dnYiQM1QOYl0bw== X-UI-Out-Filterresults: notjunk:1;V03:K0:0A4gaaMsge0=:Hr2zgM8Wd+NZ/hZm7L9g+m UybCsDsMBKORxJuKjKYxboHmxqGpgzVKx6tuQ83sBXjn3xv1ViCZlkW8Pt66SrUzCBcbZ1PKJ wuBQDYFJzYOU+DvUV+Ua969kS1pRlfopXuMt9/vJu85b63Hhavr8XloRNaWejNRW20qzzivgw 0tlHzgWfc8uim0V8fH08oKargesywCU06fmab3F2qK6CzA1dHwU4ZcEW3xuu9H0zNvwhW3Vfp uJ5Aih9dja4B5OAl8n1ytWz+4c5Zg2SHlOQ7oGp8aCFaj6P43QyVMa3P8//WP67+aMEWsFzad P5TGsGfKoUbJ1dOnX8M6OaHfggrmWEVBB9rQXG0sOusYeycqRAiaGgVnWIvGu3NbzSwjNdjIG oQsfGOqEGSMqNO59Vqz3bnLE8Sy+uTQhP79/N5Wea4cwvfANrxsFzf5O5FH1yEwayenWHShm0 C903CforDJ3Vz1rO6Qjlv09XBR3ulwjhu5a00bnxdmSGlzFCv9sCZCNuqPowNZ8afkbfjzCGo 3SImABRqxkgf7WWvjO2SYImrnWfOGYOq1K2mcryiVuRoytnckk0NihIQ//MYcv1XGxS5MMh0d mYkGHt5p95ukzkW2FfxNx0PFX47fGc+Wk5Tl8FRpdOVOo6Ok8vzWyRhQ4d3UsbhQvdLG11zTW I6tkkV9EsIa6Sc2hK5rQ9ntMu1IU0ze5qt5qFqE0nxKzOcJUyruieR7QLqk4jcU8kZT9C14U0 Yf+iD6ES9OdA8S3d7a6BsdM6t1+WfWkyPlEESMIWuKxx6USymvGdg3WH9+vPO8MRjA0RAG5h Received-SPF: pass client-ip=212.227.17.21; envelope-from=boruch_baum@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/12 10:07:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:190321 Archived-At: When explicitly killing a shell/eshell or terminal-emulator ansi-term/term buffer, a user shouldn't have to take an extra step to respond to the prompt of process-kill-buffer-query-function. In such cases, the process for which function process-kill-buffer-query-function is activated is the foreground shell process, so of course the conscious user intent is to kill it. One way to implement this is to have the mode entry functions remove the entry from the buffer-local copy of kill-buffer-query-functions (if that's an option for that variable). Another possibility is to put the logic inside function process-kill-buffer-query-function. There may be other ways. I'm not sure which is preferable so I haven't included a patch= . =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0