From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: pop-to-buffer and friends new behavior or bug? Date: Tue, 21 Jun 2011 17:11:33 +0200 Message-ID: <87mxhb1aoq.fsf@gmail.com> References: <87zklhhcys.fsf@gmail.com> <87ei2tzg3o.fsf@gmail.com> <4DFA690A.20205@gmx.at> <87d3iccuqo.fsf@gmail.com> <4DFCCDE6.30007@gmx.at> <87boxu3oic.fsf@gmail.com> <4DFDF921.5090407@gmx.at> <87aadckisk.fsf@gmail.com> <4DFF11E3.5070503@gmx.at> <8739j3gvu8.fsf@gmail.com> <4E00ADAA.4040206@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308671283 4961 80.91.229.12 (21 Jun 2011 15:48:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 15:48:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 21 17:47:59 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 1QZ3BF-0002Eg-PX for ged-emacs-devel@m.gmane.org; Tue, 21 Jun 2011 17:47:58 +0200 Original-Received: from localhost ([::1]:35043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3BE-0001N9-Gh for ged-emacs-devel@m.gmane.org; Tue, 21 Jun 2011 11:47:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ2cA-0000Vg-JH for emacs-devel@gnu.org; Tue, 21 Jun 2011 11:11:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ2c8-0003Sd-FW for emacs-devel@gnu.org; Tue, 21 Jun 2011 11:11:42 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:63268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ2c8-0003ST-4b for emacs-devel@gnu.org; Tue, 21 Jun 2011 11:11:40 -0400 Original-Received: by wwf22 with SMTP id 22so2479367wwf.30 for ; Tue, 21 Jun 2011 08:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=1h+T7gMevPbMFbloNmKsiMfhW2ULhUTFwTPnshH8E3E=; b=AvL2V6ih7hvnUtbxnfDsCmzNmNNVzVp+DvChfS6IBRwoPkUwc1CXAPBIH4r87GxlKy Eqzr7Na8mHKlg7e5SLDpriAXZyACCKITXGrcwD6nGqXZaeozSB5Qjjstn9dNwTQrXZ29 VIXJrtaacHjTakWmZr71WWB9S3fJgQFFEcx8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=h5FGr9pijk8ZS6diYjOxuEBOpk++UeRqRu7sZqA1JZ9vHA+XLV0vsUaHK9Rx17rgyc e7Cr6bRLNwftQfiE3s3FtgLcahwLGpIQpZXjln9OBHlVqIUFfit55ep6zy21VWQ436QR nZ0bFEIiHNsOBwfcEIbtZ2FmmLtaAzPfXdVeE= Original-Received: by 10.217.7.6 with SMTP id z6mr6091557wes.57.1308669098849; Tue, 21 Jun 2011 08:11:38 -0700 (PDT) Original-Received: from thierry-MM061 (43.77.197.77.rev.sfr.net [77.197.77.43]) by mx.google.com with ESMTPS id g4sm3530126weg.12.2011.06.21.08.11.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2011 08:11:37 -0700 (PDT) In-Reply-To: <4E00ADAA.4040206@gmx.at> (martin rudalics's message of "Tue, 21 Jun 2011 16:41:46 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:140781 Archived-At: martin rudalics writes: >> I have fixed my problem in anything.el using this: >> >> --8<---------------cut here---------------start------------->8--- >> [...] >> (when (boundp 'display-buffer-alist) >> (setq not-this-window '((reuse-window same other nil) >> (pop-up-window (other))))) >> (display-buffer buf not-this-window))) >> --8<---------------cut here---------------end--------------->8--- >> >> It is working fine like this, but i would like to know if that is >> correct. > > I suppose it's reusing another window now because the reuse-window > specifier is correct - try the selected window if it shows another > buffer. The pop-up-window specifier wants a list of window . side > conses like (pop-up-window (largest . below) (selected .right)) to split > the largest window with the new window below or the selected window with > the new window on the right. Ok, so the (pop-up-window (other)) is incorrect (or incomplete) and maybe unuseful in this case. > But please don't fix this before I found the cause of the bug. Having a > sample where it tries to use the minibuffer window is important for me. > (Unfortunately, I haven't git installed so I first have to get this from > somewhere else. Or you send me the files exposing the bug via private > mail?) No problem if you have not git, just download the tarball here: http://repo.or.cz/w/anything-config.git Last revision have bug fixed with the code above, just comment it out, or download the revision just before to have the bug: --8<---------------cut here---------------start------------->8--- author Thierry Volpiatto Mon, 20 Jun 2011 20:28:20 +0000 (22:28 +0200) committer Thierry Volpiatto Mon, 20 Jun 2011 20:28:20 +0000 (22:28 +0200) commit fe786b9d1cbcb8431468f309ed7fa5f5676d47b0 tree 21694f5a4f95654dac54d7e580dab1ca4b40fcd4 parent 9e7236e34f98ba1a5ad8b6414f7f45df70bc531e --8<---------------cut here---------------end--------------->8--- The relevant code is in anything.el starting at line 3123 at: ;; (@* "Utility: Persistent Action") and more exactly in `anything-persistent-action-display-buffer'. Follow the recipe i sent in precedent mail. To see what is expected use the fixed code. You will find a pdf file in the ../doc directory, even if it's not up to date, it can help you if you are not familiar with anything. Thanks. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997