From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Valentin Plechinger Newsgroups: gmane.emacs.help Subject: Re: kill other buffer Date: Mon, 22 Apr 2013 23:28:27 +0200 Message-ID: References: <40f727bd-aac3-4f8d-812f-c4032ded41b1@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdcaaa4d6d0ad04daf9bff9 X-Trace: ger.gmane.org 1366666120 7512 80.91.229.3 (22 Apr 2013 21:28:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2013 21:28:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 22 23:28:44 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UUOHz-000115-9k for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Apr 2013 23:28:43 +0200 Original-Received: from localhost ([::1]:36605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUOHy-0001HU-Ti for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Apr 2013 17:28:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUOHm-0001HC-Pa for help-gnu-emacs@gnu.org; Mon, 22 Apr 2013 17:28:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUOHk-00063H-IP for help-gnu-emacs@gnu.org; Mon, 22 Apr 2013 17:28:30 -0400 Original-Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]:33034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUOHk-000635-CD for help-gnu-emacs@gnu.org; Mon, 22 Apr 2013 17:28:28 -0400 Original-Received: by mail-ie0-f173.google.com with SMTP id k5so7676354iea.18 for ; Mon, 22 Apr 2013 14:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Ua8H8wrXR7pDqKu12KT0bLW4M2AFUoRNf/eVUah23ws=; b=MEs2569j+iL1qkowvI7KMSgu05b3x+TLEQwTzp8sFwDxD7ySRN6APiCuAqcjGojUwI tL9vYfjK8ViK29FcsUg5NniXucOY1jYHToySxGRYMPbAubT74ujBRiK3wS0QgeH6GgCF m4lso3BGxYJnTtN4RjO3xidlPuMzUs8LTfN8KPdMGC2SIljbFWU8gbJGpz5YRE4+kcYr quXnXg2YF5C38iPn7fnLr8WujjDXAaMu3MEPGUIockLQZICJo9LKputdN6wntNv5UwXG XAam2WuyabEzFA37qPkyf/apxRhH48NxWs2CV+FXRKTx/Hz3FWnIgoS51Y/xeXNPvAum f69A== X-Received: by 10.50.77.48 with SMTP id p16mr22669324igw.53.1366666107078; Mon, 22 Apr 2013 14:28:27 -0700 (PDT) Original-Received: by 10.42.232.10 with HTTP; Mon, 22 Apr 2013 14:28:27 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90298 Archived-At: --047d7bdcaaa4d6d0ad04daf9bff9 Content-Type: text/plain; charset=ISO-8859-1 (defun kill-other-buffer () (interactive) (other-window 1) (kill-this-buffer) (other-window 1)) with more windows you'd have to rewrite it, so probably not the most elegant solution On Mon, Apr 22, 2013 at 11:26 PM, Valentin Plechinger < v.plechinger@gmail.com> wrote: > (defun kill-other-buffer () > (interactive) > (other-window 1) > (kill-this-buffer) > (other-window 1)) > > with more windows you'd have to rewrite it, so probably not the most > elegant solution > > > > On Mon, Apr 22, 2013 at 8:58 PM, Rami A wrote: > >> Greetings, >> I usually start emacs with split screen horizontally. >> I have F3 programmed to kill-this-buffer "kills the current buffer >> without confirmation" >> >> How would I have [S-F3] programmed to kill the buffer in the other window >> without confirmation and without deleting the window itself? "I would like >> to keep emacs split horizontally". >> >> Thanks. >> > > --047d7bdcaaa4d6d0ad04daf9bff9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
(defun kill-other-buffer ()
=A0 (interactive)
=A0 (other-window 1)
=A0 (kill-this= -buffer)
=A0 (other-window 1))

with more windows you&= #39;d have to rewrite it, so probably not the most elegant solution


On Mon, Apr 22, 2013 at 11:26 PM, Valentin Plechinger <v.plechinger@gmail.com> wrote:
(d= efun kill-other-buffer ()
=A0 (interactive)
=A0 (other-wi= ndow 1)
=A0 (kill-this-buffer)
=A0 (other-window 1))

wi= th more windows you'd have to rewrite it, so probably not the most eleg= ant solution



On Mon, Apr 22, 2013 at 8:58 PM, Rami = A <rami.ammari@gmail.com> wrote:
Greetings,
I usually start emacs with split screen horizontally.
I have F3 programmed to kill-this-buffer "kills the current buffer wit= hout confirmation"

How would I have [S-F3] programmed to kill the buffer in the other window w= ithout confirmation and without deleting the window itself? "I would l= ike to keep emacs split horizontally".

Thanks.


--047d7bdcaaa4d6d0ad04daf9bff9--