bug#38225: Cannot move vertical screen division bar

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

積丹尼 Dan Jacobson
With the mouse I can move the bar created by C-x 2,
but not that created by C-x 3.
emacs-version "26.3"
(I can make a window shorter, but not thinner.)



Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

Lars Ingebrigtsen
積丹尼 Dan Jacobson <[hidden email]> writes:

> With the mouse I can move the bar created by C-x 2,
> but not that created by C-x 3.
> emacs-version "26.3"
> (I can make a window shorter, but not thinner.)

I'm unable to reproduce this in either Emacs 26 or 27 -- when I place
the mouse pointer over the division, I can drag it and make the window
shorter or wider.

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

martin rudalics
In reply to this post by 積丹尼 Dan Jacobson
 > With the mouse I can move the bar created by C-x 2,
 > but not that created by C-x 3.
 > emacs-version "26.3"
 > (I can make a window shorter, but not thinner.)

Enable 'window-divider-mode'.

martin



Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

Eli Zaretskii
In reply to this post by Lars Ingebrigtsen
> From: Lars Ingebrigtsen <[hidden email]>
> Date: Sat, 16 Nov 2019 06:01:54 +0100
> Cc: [hidden email]
>
> 積丹尼 Dan Jacobson <[hidden email]> writes:
>
> > With the mouse I can move the bar created by C-x 2,
> > but not that created by C-x 3.
> > emacs-version "26.3"
> > (I can make a window shorter, but not thinner.)
>
> I'm unable to reproduce this in either Emacs 26 or 27 -- when I place
> the mouse pointer over the division, I can drag it and make the window
> shorter or wider.

Same here.  My guess is that the OP doesn't drag at the right place,
or maybe some toolkit makes this hard or impossible.



Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

Lars Ingebrigtsen
In reply to this post by Lars Ingebrigtsen
Lars Ingebrigtsen <[hidden email]> writes:

> 積丹尼 Dan Jacobson <[hidden email]> writes:
>
>> With the mouse I can move the bar created by C-x 2,
>> but not that created by C-x 3.
>> emacs-version "26.3"
>> (I can make a window shorter, but not thinner.)
>
> I'm unable to reproduce this in either Emacs 26 or 27 -- when I place
> the mouse pointer over the division, I can drag it and make the window
> shorter or wider.

(I meant "thinner or wider".)

But now I can reproduce it.  I normally run with scroll-bar-mode
switched off, and then I can adjust the width of windows.  However, with
scroll-bar-mode switched on, I can't adjust the width any more.

With window-divider-mode switched on, I can adjust the width, but with
both the divider and the scroll bars there, the separation between
windows is very thick.

So I think there's a bug here; i.e., you should be able to adjust the
width of the windows even if there's (just) a scroll bar there.  But
perhaps this is a toolkit restriction?  

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

martin rudalics
 > But now I can reproduce it.  I normally run with scroll-bar-mode
 > switched off, and then I can adjust the width of windows.  However, with
 > scroll-bar-mode switched on, I can't adjust the width any more.

Which is not true.  You can always drag the "divider" of the mode
lines.

 > With window-divider-mode switched on, I can adjust the width, but with
 > both the divider and the scroll bars there, the separation between
 > windows is very thick.

You can easily make a one-pixel wide window divider.

 > So I think there's a bug here; i.e., you should be able to adjust the
 > width of the windows even if there's (just) a scroll bar there.  But
 > perhaps this is a toolkit restriction?

No.  But discerning horizontal and vertical mouse drags on a scroll
bar is not for the faint of heart.  If you want some code, I might be
able to retrieve it.

martin




Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

積丹尼 Dan Jacobson
In reply to this post by 積丹尼 Dan Jacobson
Yeah, I was using emacs -Q, with
this https://www.jidanni.org/comp/configuration/.Xresources



Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

Lars Ingebrigtsen
In reply to this post by martin rudalics
martin rudalics <[hidden email]> writes:

>> So I think there's a bug here; i.e., you should be able to adjust the
>> width of the windows even if there's (just) a scroll bar there.  But
>> perhaps this is a toolkit restriction?
>
> No.  But discerning horizontal and vertical mouse drags on a scroll
> bar is not for the faint of heart.  If you want some code, I might be
> able to retrieve it.

It would be nice if it were possible.  Even though you can change the
width in other ways, it feels natural to be able to drag the scroll bar
horizontally.

--
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



Reply | Threaded
Open this post in threaded view
|

bug#38225: Cannot move vertical screen division bar

martin rudalics
 >> No.  But discerning horizontal and vertical mouse drags on a scroll
 >> bar is not for the faint of heart.  If you want some code, I might be
 >> able to retrieve it.
 >
 > It would be nice if it were possible.  Even though you can change the
 > width in other ways, it feels natural to be able to drag the scroll bar
 > horizontally.

I lost that code anyway.  IIRC it didn't work well with slow or small
mouse movements, mistaking horizontal draggings for vertical ones or
vice-versa.  In either case I then decided to install window dividers
to fix that problem for good.  If these don't satisfy people, they
never looked into how other applications handle that.

martin