From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Custom for quit-window? Date: Fri, 7 Jan 2022 19:05:21 +0100 Message-ID: <20220107180521.7zgkfxro7c7tkdi7@Ergus> References: <20220107180521.7zgkfxro7c7tkdi7.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17234"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 07 19:14:26 2022 Return-path: Envelope-to: geh-help-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 1n5tku-0003z1-Ni for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 07 Jan 2022 19:14:24 +0100 Original-Received: from localhost ([::1]:35606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5teG-0001qs-Ek for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 07 Jan 2022 13:07:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5tcz-0001qQ-85 for help-gnu-emacs@gnu.org; Fri, 07 Jan 2022 13:06:13 -0500 Original-Received: from sonic310-14.consmr.mail.bf2.yahoo.com ([74.6.135.124]:41911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5tcq-0006fe-6I for help-gnu-emacs@gnu.org; Fri, 07 Jan 2022 13:06:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1641578760; bh=D749754ByC7uXORd7UbLO++dBHSHPdkOQ0jtJp14pTg=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=uM7ctJwAvzZd3Xu/1YlQe7WGzTJQkn5bs7Xw4vWZB1tOfQKfKhFgXDlLIIqqBZrfOQ/nMNPY/fznN5geeFECruUB+r93T7ONDiiko3+jeJZwyY/X0df6SVod2HoHS3dg1XJ7ywXCBGEOMjWyzm+qAXi5oPmIZcs32xz74r1fzyBy/vFGRfqH2qKMoOgqVKMjtPUkiASygr2Zike+ZuMHvdRoRVb9gfjhCs1iVqvFzNtYgNgPtLGvo7ShcdOKx2Q1huHohC3Tb4MbQCrxXzZEIJ5ZgD0GIr+d0sUosmapcHBbfoabudem7NJ8PyRS0g4NaaYsWDX5LZMBnQkElYbc2w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1641578760; bh=DfMLydUmMgMKbSzCxFOow6KR2fNjc8JCyzV9Z9KJGIP=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=NGVNdyay6vB8YUXrKCN0oNPr0N2MZMRuZHwnClglU4JdWhQHgEGgmUw6iIgw+1ClbE0vn5XL7k6/Ig7eEeNFN3CAWqolz0o+YD/tBICUYEWySTdNk1oYBQeZQLpH+SdAyup9r+xr8+Uk8aGrBluVQWCJ9J0q+T8L2GHFJrSM+LIwHb6HdvmyU6mI92IOZp0HF6uqpQhOIo/sncDPzOY3Ijv4ftI3+SpyTCviNxwrOadT1cnqLm5fDY/eYvVBLfR6MHB9WusXtQe/UHmSkBCUHX+e1I/HZMZwSzEbIwGSk4U0NBfaot29bnmbaft+C2qJmm4QmTj8rYR0+rBkgvC9ag== X-YMail-OSG: n4PgD5IVM1kzTDMOdlaAk7dcRL0ymvzwCMiOCCeOqCAjQl5a.DooovLkRQ7cemS d7g_drreqcIk6UH4yxFIGnsDYRrn9JTWcgNV1BaeaWCuu6fBxEwenIpfL_K.pZRgngoWV5WwwSgu QnuQnC5rKpqa4EItAbg7J9dKpR18qa1TLfu_wknaFpuqSV_tIVmsSg3aSwF7jIWJZ4OBNzflxrxO EtSkr3S5mjM.rWNxRSchcV_U52cKBCvtDGKmnndxRiGgHl954dlHUCbwNMYFfd3T9re5nV5IN0.a wsWiun1mldlsJwS_Ncx4HeetVM2ZV77qW84YE4D9Ft0YLKN3P7DvFWl0GIgXLTmaOArYoZ09XGtD jpYn5OKKawUPmbB80Zuylf20jkqGAioRl_l3QWqUmwHpht1kSI8D7piGCMX4YexTAo_QXllHRSBR d1HDWcI9ic.A4u.m9gjW0Nes0NbpQLPeoAjzXb1lGwiv41jznjq0FP.TpyQ_xBb.Bs1psw8j5ubw RowYGdd1oYjtHrvLZnVytpZAeK09YlT7TUJS4rGXSJbHAUM_0k0fzBY_3wk7_mcXM40Ccz09jDaJ Vm.x6Uvc9E3I5TOE2l3XjKeL4dcdYOcpDQNULOp_nr4WXm.__ddOjMt3cov8NXZ6OlhL1sM1XATZ dl8RkUajVwBA5pLFEhBkocmu1CvoHx6IL5EaXuaPIJ5lLcCy2kY7xF4dDa5R4HTYOx68vZjTpBK1 .MGfdoVjqSe8gIoOZkoGIfIM11yxKaEaavnIHOVO.K1X.4qMrmtlFhJQZ2rMbBeyGzujQNtka3R0 6Redybo6ypNfu8waomLT0QrDmduUKCMwQwlACi7F9F X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Fri, 7 Jan 2022 18:06:00 +0000 Original-Received: by kubenode519.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 4220b06eb1b9cf0eb9f9dfcbeddfc3d1; Fri, 07 Jan 2022 18:05:56 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.19551 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.124; envelope-from=spacibba@aol.com; helo=sonic310-14.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135125 Archived-At: Hi: Is it there a "simple method" to make quit-window to kill the buffer without needing a prefix? When working with 10 files and using dired, help and some other special-mode derived buffers it becomes awkward to have 10 working files and 15 random noisy buffers that makes "C-x "" navigation useless and "C-x b" harder to read. Such simple custom option I am pretty sure has been deserved by someone before, and a simple approach may be to remap quit-window to something like: (defun my/quit-window (&optional kill window) (interactive "P") (quit-window t window)) But I am wondering if it is so simple why isn't there an option for that. Is there any very bad side effect on this? Another alternative is to hide/filter buffers using a regex or so, but IMHO it is like hiding the real issue under the carpet. Thanks in advance, Ergus