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: Sat, 18 Jun 2011 21:53:15 +0200 Message-ID: <87boxu3oic.fsf@gmail.com> References: <87zklhhcys.fsf@gmail.com> <87ei2tzg3o.fsf@gmail.com> <4DFA690A.20205@gmx.at> <87d3iccuqo.fsf@gmail.com> <4DFCCDE6.30007@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308426821 11882 80.91.229.12 (18 Jun 2011 19:53:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Jun 2011 19:53:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 18 21:53:37 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 1QY1aK-0006rp-HD for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2011 21:53:36 +0200 Original-Received: from localhost ([::1]:55476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY1aJ-0002Uu-Jp for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2011 15:53:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY1a6-0002UQ-0S for emacs-devel@gnu.org; Sat, 18 Jun 2011 15:53:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QY1a4-0004BT-RY for emacs-devel@gnu.org; Sat, 18 Jun 2011 15:53:21 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:38833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QY1a4-0004BO-MK for emacs-devel@gnu.org; Sat, 18 Jun 2011 15:53:20 -0400 Original-Received: by wyf19 with SMTP id 19so2927602wyf.0 for ; Sat, 18 Jun 2011 12:53:19 -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=9Wyo1VYlaI0U/pV3VjQzXoe83GhENI63GnBcj72IzEo=; b=riT2MbAJhAdFNZA/SYE4WRzHbmAVBlBNYip43UIlI9oJ3NCE5T2TiQecI9oBbWCnV7 iXW9WNtSukLTLCSmfnQdGT1BHWG/ugiF4jGiel8WQhc4wRVgwzVtCG/0rf38fSuQb0wY Cp349YTxoMLNgj3iysKU1rNALzLEQUIbLDPY0= 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=vxmM6v51mEqQBMrvPEnzFHw9XsO+zrSI0YUjeYh9srMr5vmiTIoZE9PYC3jybe8btS 9RGHs6H2g1zSdwWu7h+7HqTgOH2KulvE2PlTrwKTZ0NvhtD+IqQveWIph53lZ4q+43ut wkdDcEzDx1++f3zE9BUjh02npqmSWqbouxzfc= Original-Received: by 10.216.237.65 with SMTP id x43mr3281863weq.70.1308426799728; Sat, 18 Jun 2011 12:53:19 -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 h43sm2055219wes.11.2011.06.18.12.53.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 18 Jun 2011 12:53:18 -0700 (PDT) In-Reply-To: <4DFCCDE6.30007@gmx.at> (martin rudalics's message of "Sat, 18 Jun 2011 18:10:14 +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.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:140658 Archived-At: In anything, i can browse image directory without quitting anything. This function `anything-find-files-persistent-action', use `display-buffer' and then display image with image-dired function in this buffer.This doesn't work anymore (display-buffer). The image is displayed ...in minibuffer!!! However it is working fine if i use `switch-to-buffer'. I have commited a fix at: http://repo.or.cz/w/anything-config.git where you can read the code. To reproduce with old code (the one that use display-buffer): M-x anything-find-files navigate to an image directory. hit C-u C-z on an image filename You will have the image displayed in minibuffer and it is impossible to quit. The last code is working fine. martin rudalics writes: >> That is ok now, except it doesn't honor >> (setq split-width-threshold nil) >> The window is splitted | (vertically?) > > I checked in a fix for this. With `display-buffer-alist' you can > inhibit splitting by adding a (pop-up-window-min-width . 1.0) specifier > (this is currently overriden when `split-width-threshold' is nil). > >>>> but not for code that use switch-to-buffer-other-window. >>> That's bad. `switch-to-buffer-other-window' does call >>> >>> (pop-to-buffer buffer 'other-window norecord) >> `switch-to-buffer-other-window' still not working as expected. >> Maybe you can try ioccur.el and see what happen. >> It is working as expected as it is, you will have to uncomment the line >> with switch-to-buffer...(L964) and comment the next one >> pop-to-buffer...(L965) In the function `ioccur'. > > If the effect was that you got a new frame instead, then this should be > fixed now. There was a silly bug inverting the value of `pop-up-frames' > in `display-buffer-normalize-specifiers-1'. If you see another effect, > please tell me which one. > > Thanks, martin -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997