GNU bug report logs - #1806
dired-pop-to-buffer in wrong place

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Tue, 6 Jan 2009 15:40:04 UTC

Severity: normal

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


Message #335 received at 1806 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> jurta.org>
Cc: 1806 <at> debbugs.gnu.org
Subject: Re: bug#1806: dired-pop-to-buffer in wrong place
Date: Sun, 03 May 2009 21:02:28 +0200
> 1. Split window vertically.
>
>    In my case this branch is not selected because my window-height (79)
>    is less than split-height-threshold (80).

On my display this amounts to setting `split-height-threshold' nil.

> So display-buffer displays a list of dired files in the existing
> side window.
>
> I see one way to fix this - it is necessary to force
> the first branch to be selected.  It works when I tried
> the following lambda in dired-pop-to-buffer:
>
>     (lambda ()
>       (let ((split-height-threshold 0)
>             (split-width-threshold nil))
>         (with-selected-window old-window (funcall old-fun))))
>
> Setting split-height-threshold to 0 forces the vertical splitting.
> Setting split-width-threshold to nil prevents the horizontal splitting
> when the vertical splitting is not possible (the window is not splittable).

You convinced me.

Thanks, martin.




This bug report was last modified 12 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.