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: window.el modify current emacs23 behavior of anything. Date: Sun, 18 Sep 2011 11:08:02 +0200 Message-ID: <87r53ecj65.fsf@gmail.com> References: <87aaaab8jn.fsf@gmail.com> <4E6FA0E6.2090003@gmx.at> <877h585trj.fsf@gmail.com> <4E738310.2070005@gmx.at> <8739fw5lip.fsf@gmail.com> <4E745D84.8050301@gmx.at> <87pqiz3xov.fsf@gmail.com> <4E74D8AF.8000603@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316336900 16140 80.91.229.12 (18 Sep 2011 09:08:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2011 09:08:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 18 11:08:16 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 1R5DMG-0001kb-1i for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2011 11:08:16 +0200 Original-Received: from localhost ([::1]:44611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5DMF-0006pG-IF for ged-emacs-devel@m.gmane.org; Sun, 18 Sep 2011 05:08:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5DMC-0006p8-9m for emacs-devel@gnu.org; Sun, 18 Sep 2011 05:08:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5DMA-00020h-Hz for emacs-devel@gnu.org; Sun, 18 Sep 2011 05:08:12 -0400 Original-Received: from mail-wy0-f177.google.com ([74.125.82.177]:34583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5DMA-00020Q-5e for emacs-devel@gnu.org; Sun, 18 Sep 2011 05:08:10 -0400 Original-Received: by wyh11 with SMTP id 11so5039962wyh.36 for ; Sun, 18 Sep 2011 02:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=hzaZLJRanueZkpLArjZo3G1wERuNkSeZd1XPHT0opw4=; b=hS+HGev5HfDb6IrTV+sz/p4ABGdOHs+BNG5OoHxfg9C5XCOm9jMaNwufuFTFVzVfLu RIDgac/rjgENIK/4bRcHDSxWovSt4IWxMbyJdhqfyRdn8PfIhhkS0Clb2WMtaXjf35OB 1n03vM0EHPaFLaKmo6Wp76uc5Yt12jLeHvMSE= Original-Received: by 10.227.3.2 with SMTP id 2mr1457161wbl.4.1316336889243; Sun, 18 Sep 2011 02:08:09 -0700 (PDT) Original-Received: from thierry-MM061 (host81-129-80-89.range81-129.btcentralplus.com. [81.129.80.89]) by mx.google.com with ESMTPS id n39sm20427937wbp.7.2011.09.18.02.08.06 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Sep 2011 02:08:06 -0700 (PDT) In-Reply-To: <4E74D8AF.8000603@gmx.at> (martin rudalics's message of "Sat, 17 Sep 2011 19:28:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) 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.177 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:144089 Archived-At: martin rudalics writes: >>> (1) Window W shows buffer B with window-start S and window-point P. >>> >>> (2) In W you show buffer BB instead. >>> >>> (3) You bury buffer BB. `bury-buffer' now shows buffer B again with >>> window-point P and, if possible, window-start S. >>> >>> But for some reason after (3) you want to show B with another >>> `window-point' position. Is that analysis correct? >> >> Yes that is correct. >> >> The action function is the function that jump to another position than >> the initial one in buffer B. > > What is "the initial position in buffer B"? The one of `point'? Yes the one of `point'. >> Where buffer B is `anything-current-buffer' and BB is `anything-buffer' > > So apparently the window of `anything-buffer' is selected, you bury > `anything-buffer', and `bury-buffer' shows `anything-current-buffer' > instead with a `window-point' you don't like. What does the action > function do next? The `anything-buffer' disapear from window, the `anything-current-buffer' is shown with the original position of `point' and the action function should jump to another position. IIRC i had same problem before with `anything-current-position', i fixed with the optional arg NOFORCE of `set-window-start'. It was this time to restore an initial position in `anything-current-buffer'. Again a `sit-for' call before was also working. Starting from Wednesday, i will be at home and in a better position to debug this. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997