emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pop-to-buffer and friends new behavior or bug?


From: Thierry Volpiatto
Subject: Re: pop-to-buffer and friends new behavior or bug?
Date: Thu, 23 Jun 2011 20:51:06 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

martin rudalics <address@hidden> 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 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]