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 19:23:01 +0200 Message-ID: <87fwn3umiy.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308678482 19896 80.91.229.12 (21 Jun 2011 17:48:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 17:48:02 +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 19: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 1QZ53N-0000f4-0T for ged-emacs-devel@m.gmane.org; Tue, 21 Jun 2011 19:47:57 +0200 Original-Received: from localhost ([::1]:51240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ53L-0001Zv-Qv for ged-emacs-devel@m.gmane.org; Tue, 21 Jun 2011 13:47:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ4fN-00038M-VW for emacs-devel@gnu.org; Tue, 21 Jun 2011 13:23:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ4fL-0003va-Vr for emacs-devel@gnu.org; Tue, 21 Jun 2011 13:23:09 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:64839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ4fL-0003vT-EP for emacs-devel@gnu.org; Tue, 21 Jun 2011 13:23:07 -0400 Original-Received: by wwf22 with SMTP id 22so2605827wwf.30 for ; Tue, 21 Jun 2011 10:23:05 -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=UbW98Nii6fBuwdWfDABt6gtkp9AIAKchX3OPY9vFgLk=; b=jRXFPdQxnIB7JmeHRp63Qxh3jq7Ow8AQbhBfulPYsCpaeXxZo0IrFe/wbdX228W/LY jvrtHBJPw4aovRNygTg0vzKN/llWM++TFflh1o3ieC4YKY7rh9+jGaPkIly9O1SR+ZEl 6vpB5WdL2a8ipukUhmKEji/PRzlwcbBGoC6IE= 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=pINb1lXhzkzy6/Zxzdu8/E1mlHzKcEDB2jW6Fv9hIKaknTqNkLaYar5kkcgBTvx05X p44dxffg93MR8yNtqxjojy7pT4JqH1ofds/IAj7MrcbH0nn7gxR5NWIXRxeDLEylHwRR OaY7wmrfi2hH2wv0x3kbBA1cE5MbqrBEhJUjs= Original-Received: by 10.216.145.149 with SMTP id p21mr3390589wej.91.1308676985758; Tue, 21 Jun 2011 10:23:05 -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 g2sm3597732wes.34.2011.06.21.10.23.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2011 10:23:04 -0700 (PDT) In-Reply-To: <4E00C2D1.2080902@gmx.at> (martin rudalics's message of "Tue, 21 Jun 2011 18:12:01 +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:140790 Archived-At: martin rudalics writes: >> The relevant code is in anything.el starting at line 3123 at: >> ;; (@* "Utility: Persistent Action") >> >> and more exactly in `anything-persistent-action-display-buffer'. > > I tried to look at anything but it is much too complicated for me. It is less complicated than display-buffer-alist ;-) > Besides, evaluating anything-config.el gives the bug What is evaluating? C-M-x? Please use load or require. > global-set-key: Key sequence a starts with non-prefix key Please follow instruction i gave you in precedent mail, or _load_ FIRST anything.el and SECOND anything-config.el. I have no error here with emacs -Q. Here a minimal config for anything with emacs -Q: (add-to-list 'load-path "~/elisp/anything") ; Change path to anything (require 'anything-config) > Anyway: In the buggy version what is the value of NOT-THIS-WINDOW in the > call to `display-buffer' in > `anything-persistent-action-display-buffer'? I think it is not called in old code, at least here, maybe it is used in other libraries. > And what is the selected window at that time? It is the window containing the anything-buffer. You can check with this: --8<---------------cut here---------------start------------->8--- (defun anything-select-persistent-action-window () (select-window (get-buffer-window (anything-buffer-get))) (message "%S" (get-buffer-window (anything-buffer-get))) (select-window (setq minibuffer-scroll-window (anything-persistent-action-display-window))) (message "%S" (anything-persistent-action-display-window))) --8<---------------cut here---------------end--------------->8--- +---------------------------+ | | | anything-current-buffer | | (the window to display | | persistent action result)| In this case the result of +---------------------------+ describe-function. | | | anything-buffer | | (selected window) | | | +---------------------------+ | minibuffer | +---------------------------+ > The minibuffer window? no NOTE: In fixed version using only: --8<---------------cut here---------------start------------->8--- (when (boundp 'display-buffer-alist) (setq not-this-window '(reuse-window same other nil))) (display-buffer buf not-this-window))) --8<---------------cut here---------------end--------------->8--- is enough. (no pop-up-window entry) -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997