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: Thu, 23 Jun 2011 20:51:06 +0200 Message-ID: <87liwsmlet.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> <87mxhb1aoq.fsf@gmail.com> <4E00C2D1.2080902@gmx.at> <87fwn3umiy.fsf@gmail.com> <4E02119A.8040109@gmx.at> <87mxh96djo.fsf@gmail.com> <4E030C18.9070205@gmx.at> <87mxh8onv6.fsf@gmail.com> <4E031E77.5050400@gmx.at> <87iprwo82n.fsf@gmail.com> <4E0364CA.5010209@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308855099 11007 80.91.229.12 (23 Jun 2011 18:51:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2011 18:51:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 23 20:51:34 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 1QZp01-0002qN-CR for ged-emacs-devel@m.gmane.org; Thu, 23 Jun 2011 20:51:33 +0200 Original-Received: from localhost ([::1]:39975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZp00-0004Y0-Lw for ged-emacs-devel@m.gmane.org; Thu, 23 Jun 2011 14:51:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZozi-0004XA-0t for emacs-devel@gnu.org; Thu, 23 Jun 2011 14:51:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZozg-00054n-Cy for emacs-devel@gnu.org; Thu, 23 Jun 2011 14:51:13 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:52683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZozf-00054c-TL for emacs-devel@gnu.org; Thu, 23 Jun 2011 14:51:12 -0400 Original-Received: by wyg36 with SMTP id 36so1826985wyg.0 for ; Thu, 23 Jun 2011 11:51:10 -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=bI6wtghqZFP/1K7AIyGRdxnK3mYXRIKxsKmDmLc4ElU=; b=H8XhGShvWgwOoUMWfIfC7UyW+PEmL0Z6+fFonIjmQ0qyoWWVrY7wFUE4lQmwFgzbPL C6mrKMoJpVBvzjWg6fCJdqoxlalPMXJ22aO5CPG8GwNxy6ziii2HYsbu7Dn7Im5SiZCx 5EIPZyDW5tGlyMwUVFFDowI7NohvxCFyh6yHA= 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=Mx0acRmdUyUR28Mp05RZK7gDxvR41Ungm4r20nkg/M/MRS/eo5QIkq75jZc15Qk79J j+vntsHBE8/ocZjyndubMO/TOoH2MJb26u6RBJUdkfB98nT0YoXKvltHJFtu9f3SX5B0 PsiDu0F5oaxf3naDke+O6EjdZ7NPqvi2Wz2go= Original-Received: by 10.227.169.139 with SMTP id z11mr2207390wby.60.1308855070599; Thu, 23 Jun 2011 11:51:10 -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 fm6sm1440356wbb.27.2011.06.23.11.51.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Jun 2011 11:51:09 -0700 (PDT) In-Reply-To: <4E0364CA.5010209@gmx.at> (martin rudalics's message of "Thu, 23 Jun 2011 18:07:38 +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:140929 Archived-At: martin rudalics writes: >>> Is this with the most recent code from trunk? >> I didn't already push the second version of function i sent you. >> So the first version (buggy one) is the last in the trunk. > > I meant "did you try with the latest version of the Emacs 24 trunk"? I have just installed last version. anything-toggle-resplit-window: Last version from trunk, so the one that was not working is now working perfectly. anything-persistent-action-display-buffer: I tried with the old version that was not working, and now it work perfectly as before. (the version before the fix i did) Many thanks. Also it seem count-windows count the minibuffer-window even whithout mini arg, when the minibuffer is active. You can check with adding a message in an anything function: --8<---------------cut here---------------start------------->8--- (defun anything-toggle-resplit-window () "Toggle resplit anything window, vertically or horizontally." (interactive) (message "Window number: %s" (count-windows)) (with-anything-window (let ((before-height (window-height))) (delete-window) (set-window-buffer (select-window (if (= (window-height) before-height) (split-window-vertically) (split-window-horizontally))) anything-buffer)))) --8<---------------cut here---------------end--------------->8--- But maybe it is the behavior of count-windows, i don't know. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997