From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Scholtes Newsgroups: gmane.emacs.devel Subject: Re: Advising quit-window Date: Thu, 27 Oct 2011 06:06:36 -0600 Message-ID: <867h3qbpv7.fsf@googlemail.com> References: <8639eg8qm6.fsf@googlemail.com> <86aa8n6qbb.fsf@googlemail.com> <87d3dj3pfk.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319717216 8589 80.91.229.12 (27 Oct 2011 12:06:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 12:06:56 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 14:06:51 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJOjS-000125-PY for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 14:06:50 +0200 Original-Received: from localhost ([::1]:32862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOjR-0005lr-Rr for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 08:06:49 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOjP-0005lV-3S for emacs-devel@gnu.org; Thu, 27 Oct 2011 08:06:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJOjN-0004E5-B1 for emacs-devel@gnu.org; Thu, 27 Oct 2011 08:06:46 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:60110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJOjN-0004Dz-3V for emacs-devel@gnu.org; Thu, 27 Oct 2011 08:06:45 -0400 Original-Received: by ggnh4 with SMTP id h4so3032365ggn.0 for ; Thu, 27 Oct 2011 05:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=i1CfHWuytJ6q/uK5s0J7XBGaBTW79sxaXpg4OgtQguc=; b=PWgQw/30DlVJQB8Yg9ffyzbodV8yH9ozxA0h7nNAe8k6XmvDBUvSxE+hBz+rU3jezp M0lEiTVUyfl9spRegjXjGqs8ReDK13pH3X4kDXifKOrpjxWHctnjUb49iRvpK+MylULd Ids9bNbo2co2rbhoMo4zc4CejD9Syknx54GbU= Original-Received: by 10.150.190.10 with SMTP id n10mr13106463ybf.70.1319717204552; Thu, 27 Oct 2011 05:06:44 -0700 (PDT) Original-Received: from MARVIN (71-212-154-245.hlrn.qwest.net. [71.212.154.245]) by mx.google.com with ESMTPS id k3sm12762719ann.0.2011.10.27.05.06.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Oct 2011 05:06:43 -0700 (PDT) In-Reply-To: <87d3dj3pfk.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 27 Oct 2011 09:43:11 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145644 Archived-At: Juri Linkov writes: >> Thanks. I didn't know that you could remap command like that. However, >> this fixes quit-window to always kill. I like to be able to bury it with >> `C-u q'. > > Yes, `C-u q' is an important requirement. And no advice, no remapping, no hook > can do that. So we need a new customizable variable `quit-window-kill-buffer'. Doesn't Juanma's solution achieve this? (defadvice quit-window (before advise-quit-window activate) (when (called-interactively-p 'any) (ad-set-arg 0 (not (ad-get-arg 0))))) > Then users could either customize it globally to t, or bind it buffer-locally > in mode hooks. And `C-u q' will inverse its current behavior. +1