Moving a window against the edge of a frame, doesn't show a warning message
- Dominant language
- Emacs Lisp
- Stars
- 3.9k
- Forks
- 307
- PR merge metrics
- No merged PRs in 30d
Description
Originally reported by: **duianto (Bitbucket: [duianto](https://bitbucket.org/duianto), GitHub: [duianto](https://github.com/duianto))**
----------------------------------------
### Description: ###
Moving a window against the edge of a frame doesn't show a warning message.
### System info: ###
Windows 10 v1511 b10586.545
GNU Emacs 24.5.1 (i686-pc-mingw32)
Evil 20160818.1421
### Steps to reproduce: ###
1. Start emacs
2. Move the window in any direction: C-w H or C-w J or C-w K or C-w L
### Observed behavior: ###
The minibuffer doesn't show a warning message.
### Expected behavior: ###
The minibuffer should probably show a warning message, the same way as it does when the cursor is moved against a frames edge.
C-w h
No window left from selected window
C-w j
Minibuffer is inactive
C-w k
No window up from selected window
C-w l
No window right from selected window
### Possible messages: ###
C-w H
Already the left most window.
Can't move the window any more to the left.
Can't move the window past the left edge.
Can't move there, it's already the left most window.
The window can't move past the frames left edge.
The window can't move any more to the left.
The window is already at the left edge.
C-w J
Already the bottom most window.
Can't move the window any lower.
Can't move the window past the bottom edge.
Can't move there, it's already the bottom most window.
The window can't move past the frames bottom edge.
The window can't move any lower.
The window is already at the bottom edge.
C-w K
Already the top most window.
Can't move the window any higher.
Can't move the window past the top edge.
Can't move there, it's already the top most window.
The window can't move past the frames top edge.
The window can't move any higher.
The window is already at the top edge.
C-w L
Already the right most window.
Can't move the window any more to the right.
Can't move the window past the right edge.
Can't move there, it's already the right most window.
The window can't move past the frames right edge.
The window can't move any more to the right.
The window is already at the right edge.
When the frame only has one window, then it might be enough to just show the messages above, or maybe a separate message could be shown, something like this:
The frame only has one window, there's nowhere to move it
Can't move the only window.
Can't move the only window, split the frame first.
----------------------------------------
- Bitbucket: https://bitbucket.org/lyro/evil/issue/707
Contributor guide
Research direction
Start by tracing the C-w H/J/K/L window-movement commands and compare their behavior with the existing cursor-at-frame-edge warnings. Done means movement against a frame edge, including when the frame has only one window, produces an appropriate minibuffer warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs, emacs-lisp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100