From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Some developement questions Date: Mon, 10 Sep 2018 07:13:50 -0700 (PDT) Message-ID: References: <8336v6cvem.fsf@gnu.org> <871sanb71j.fsf@himinbjorg.adminart.net> <83y3cu7t9j.fsf@gnu.org> <87lg8t2ki9.fsf@himinbjorg.adminart.net> <20180827015422.lcq44zvsjffeau4j@Ergus> <83a7p76f5e.fsf@gnu.org> <87lg8p9o6y.fsf@russet.org.uk> <83pnxx1foj.fsf@gnu.org> <87k1o1a06q.fsf@russet.org.uk> <877ek1ql6u.fsf@toy.adminart.net> <87tvn2g665.fsf@russet.org.uk> <83r2i6wv4v.fsf@gnu.org> <87ftylu327.fsf@toy.adminart.net> <838t4dvefc.fsf@gnu.org> <87tvn1qw75.fsf@toy.adminart.net> <83worxtlbw.fsf@gnu.org> <87sh2lm1xs.fsf@toy.adminart.net> <83in3gtsqa.fsf@gnu.org> <87mussp1zu.fsf@toy.adminart.net> <87o9d7acp5.fsf@mail.linkov.net> <878t4997d9.fsf@toy.adminart.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536589781 16302 195.159.176.226 (10 Sep 2018 14:29:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 14:29:41 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, spacibba@aol.com, phillip.lord@russet.org.uk To: hw , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 16:29:37 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fzNC5-00048e-5v for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 16:29:37 +0200 Original-Received: from localhost ([::1]:51971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzNEB-00016Q-KM for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 10:31:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzN8E-00045U-VW for emacs-devel@gnu.org; Mon, 10 Sep 2018 10:25:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzMx3-00051n-DT for emacs-devel@gnu.org; Mon, 10 Sep 2018 10:14:06 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:38112) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzMwx-0004r0-Uy; Mon, 10 Sep 2018 10:14:00 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8AEDk43173838; Mon, 10 Sep 2018 14:13:54 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-2018-07-02; bh=bFGL4v0csF6ykae4AGHqUv+BKyvUaC/twNRAYuK6g1U=; b=XeQTel0zEygy6LIEno1NHdTEulYKdr6KHyey2XrnPQequ4oVGg6AmhZwbjcYihfMIE7N 1n2pWge6q8U8iGPXybtsHq8mYeKJPiFCbvsjF1ZW7xwTE4G5dGOjc66SASVQ+0n85FVf ifwujGy/FLsuVzSNe8TLpz5+iuOD0ire8WHYttr9nzPb0SXL1vJMeAkkMYIhbLkE9IWV AHhdEpNRT9w5cbE6iy58ivE2BkcWq2yXOlN/bRfxrJ2WXi7JpG2nJgn8GITRmLdxuvUQ ZndwmbJ0opfmjtvioEhzmOBFzAjuTKSYSokdYE7jTAgqiUCrVHdQSUysev1URw09Odhy yw== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2mc6cpe9pf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Sep 2018 14:13:54 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w8AEDrVk017131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Sep 2018 14:13:53 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8AEDpVP028020; Mon, 10 Sep 2018 14:13:52 GMT In-Reply-To: <878t4997d9.fsf@toy.adminart.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9011 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=919 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809100146 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 141.146.126.78 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229637 Archived-At: > Is there a way to make it so that the frame used to display a branch > deletes itself when the cloned buffer it has been created for is killed? (This thread is all over the place now...) I use ` kill-buffer-and-its-windows', defined in `misc-cmds.el': https://www.emacswiki.org/emacs/download/misc-cmds.el I do this: (remap-command 'kill-buffer 'kill-buffer-and-its-windows global-map) And I use this, from `frame-cmds.el': ;; If WINDOW is the only one in its frame, `delete-frame'. (defadvice delete-window (around delete-frame-if-one-win activate) "If WINDOW is the only one in its frame, then `delete-frame' too." (if (fboundp 'with-selected-window) ; Emacs 22+ (with-selected-window (or (ad-get-arg 0) (selected-window)) (if (one-window-p t) (delete-frame) ad-do-it)) (save-current-buffer (select-window (or (ad-get-arg 0) (selected-window))) (if (one-window-p t) (delete-frame) ad-do-it)))) https://www.emacswiki.org/emacs/download/frame-cmds.el (Be aware too that `q' in Info does not kill the buffer. Use `C-x k' or similar if you really want to kill the buffer.)