Comments (15)
Yes, it fixes the issue in both 27.0 and 26.3 🎉 Now the minibuffer window is super solid when test.
from emacs-mini-modeline.
@AmaiKinono Can you try with latest version, I think it should be fixed now
from emacs-mini-modeline.
No. It looks like this now. It's not folded but hidden:
You can test with this one-liner:
(while (not (eq (read-key "multi\nline\nprompt") ?\C-g)))
from emacs-mini-modeline.
Not happen to me with the latest version though.
Can you check if you're using the origin/master
already?
I think you're using straight.el
which will have some problem with pulling the origin/master
that deviates from current HEAD
.
Or you can try just deleting this package and reinstall it via package-install
or using Quelpa
.
from emacs-mini-modeline.
I am on the latest master. I've found the problem: It has something to do with blink-cursor-mode
(yeah that's weird). Try this in emacs -Q
:
(require 'mini-modeline)
(blink-cursor-mode -1)
(mini-modeline-mode)
(while (not (eq (read-key "multi\nline\nprompt") ?\C-g)))
Then press some key that's not C-g
.
Update: I've found if you disable and enable blink-cursor-mode
again, the behavior of read-key
becomes even weirder.
from emacs-mini-modeline.
Even with blink-cursor-mode
disabled, I still cannot repro this 😞
If you look at my gif, the blink-cursor-mode
has been disabled.
from emacs-mini-modeline.
I'm using Emacs 26.3 on Linux. What version are you using? If it's different, I could install and test it tomorrow.
from emacs-mini-modeline.
I'm using emacs-snapshot 27.0.
from emacs-mini-modeline.
I'm on Emacs 27.0.90 now. The problem still happens, and I can tell you that mini-modeline-mode
strongly interferes with blink-cursor-mode
.
This is emacs -Q
and I didn't do anything other than the code you see in the screenshot (so blink-cursor-mode
is on, by default). After enabling mini-modeline-mode
:
- The cursor stops blinking.
- When I type something, the cursor shows and immediately disappears. The GIF is not well recorded so it looks like glitching, but actually the cursor just gone.
- When I move to somewhere, the cursor appears again and doesn't blink.
I didn't remember if I saw this in 26.3. One thing that's different from 26.3 is if I disable and enable blink-cursor-mode
again, the read-key prompt shows correctly.
Did you notice this behavior in emacs -Q
? If you didn't than I really don't know what's wrong... maybe switch to another PC and test it again.
from emacs-mini-modeline.
Ok, here's the situation now: You can merge #20, it solves the cursor problem perfectly. The thing described below has nothing to do with blink-cursor-mode
since I've test them with blink-cursor-mode
enabled and disabled.
In emacs -Q
, when you test using this one liner:
(while (not (eq (read-key "multi\nline\nprompt") ?\C-g)))
when pressing any key, the prompt folds into one line and expands really quick. It looks like a blink so that's perfectly useable. I don't know what you see, does it blink or not?
In my own config, somehow the reaction is slow. When I press a key, it needs like 0.5s to fold, then another 0.5s to expand. So it doesn't look good, but useable too. This is affected by mini-modeline-update-interval
, but even it's set to 0.0, the reaction is still slow.
I can't do more test since even if I leave only configurations of straight.el, use-package and mini-modeline, it's still slow.
You can take this issue as solved (since it's already useable). But don't close it for now, please let me confirm this also works on 26.3 later.
from emacs-mini-modeline.
When I've tried with Ubuntu, I did saw the blinking of minibuffer being expanded/retracted.
However, with Emacs on Windows, the problem don't happen.
Not sure why
from emacs-mini-modeline.
@AmaiKinono Can you try with latest master, it seems that the issues is fixed in my Ubuntu Emacs
from emacs-mini-modeline.
Thanks, I'm closing this issue, please open it again if you have found new undesired behaviors
from emacs-mini-modeline.
I have to reopen this. With 6b6efe6, read-from-minibuffer
with multi-line prompt/content doesn't work. Try this:
(read-from-minibuffer "Hi: " "line1\nline2")
Update: I found I can't reopen this because it's not closed by me.
I think it's okay to not bother with resize-mini-windows
. With this line in 2348b9f:
(setq mini-modeline--timer (run-with-timer 0 0.1 #'mini-modeline-display))
read-key
is already perfectly useable.
from emacs-mini-modeline.
Let's track the new issue with #23
from emacs-mini-modeline.
Related Issues (20)
- Modeline background is all white HOT 2
- Feature request - option not to hide mode line
- mini-modeline hides messages HOT 1
- With 2 window opening the same file, pressing `C-g` sometimes scrolls to the position in the other window. HOT 7
- optionally dont display any messages in the echo area HOT 2
- the call to redisplay makes startup unresponsive for few seconds during startup HOT 2
- [new feature] echo messages in the right part of the minibuffer HOT 5
- Emacs uses CPU when this mode is enabled HOT 6
- Question: how to force mini-modeline to show a string for a duration of at least 2 seconds after a hotkey HOT 2
- (setq mini-modeline-display-gui-line t) is not honored if emacs is started in server mode HOT 3
- mini-modeline does not works correctly when using emacs daemon HOT 1
- minibuffer sometimes fails to show with emacs 28
- mini-modeline-display-gui-line for terminal?
- mini-modeline-echo-duration is not respected
- make-indirect-buffer not possible when mini-modeline-display-gui-line is enabled HOT 1
- How to display message between modeline-l and modeline-r HOT 1
- Text positioning issues on Emacs 29
- flicker when typing on the second line after org heading on Emacs 29 HOT 1
- y-or-no-p prompt not visible occasionally HOT 1
- minbuffer window not resized when used with vertico-mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-mini-modeline.