From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: henry atting Newsgroups: gmane.emacs.help Subject: delete frame automatically Date: Sat, 09 Apr 2011 11:35:01 +0200 Organization: LiteraturLateNight Message-ID: <8762qn9396.fsf@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302342065 31544 80.91.229.12 (9 Apr 2011 09:41:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2011 09:41:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 09 11:40:58 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q8Uf3-00048j-AP for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2011 11:40:57 +0200 Original-Received: from localhost ([127.0.0.1]:43751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Uez-0004DV-3o for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2011 05:40:53 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.belwue.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: dslb-188-103-194-253.pools.arcor-ip.net Original-X-Trace: online.de 1302341677 2533 188.103.194.253 (9 Apr 2011 09:34:37 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Sat, 9 Apr 2011 09:34:37 +0000 (UTC) User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:tmEfpM6CqAOkG7dfaVnWSmSh9QU= Original-Xref: usenet.stanford.edu gnu.emacs.help:186623 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80732 Archived-At: I have set up ansi-term to start with tmux in a new frame: --8<---------------cut here---------------start------------->8--- (defun multi-term-tmux () (interactive) "Make a multi-term buffer running tmux." (let ((multi-term-program "/usr/bin/tmux")) (multi-term))) (defun for-term-only () "Make a frame for guess what" (interactive) (let ((frame (make-frame '( (left-fringe . 1) (right-fringe . 1) (background-color . "white") (foreground-color . "black") (font . "DejaVu Sans Mono-11") (internal-border-width . 12) (menu-bar-lines . 0) (width . 100) (height . 36) (tool-bar-lines . 0) (unsplittable . t))))) (select-frame frame) (multi-term-tmux) )) --8<---------------cut here---------------end--------------->8--- How can I bring it about that the frame is deleted automatically when I close ansi-term/tmux? As far a I know the special-display-buffer-names variable does not help in this case because it only applies to buffers that get displayed in another window (which ansi-term does not) henry -- http://literaturlatenight.de