Comments (15)
Write to cairo_surface_t some times, and copy the result to window.
It is gtk-way.
In this issue:
at "Write to cairo_surface_t some times", all the message buffer changes go to cairo_surface_t, and after that
at "copy the result to window", the cairo_surface_t goes to the window.
Because straight.el is very busy while rebuilding.
I'll look for a workaround.
from emacs.
@declanqian my machine locked you and I thought this comment did not actually get posted.
I had a dirty build environment and wasn't actually building emacs as expected.
The patch is still a good idea. But does not address this particular problem.
from emacs.
Just compiled emacs-mirror@5b97b98 without --with-pgtk
, minibuffer behaviors the same as 27.2. Pretty sure it's a pgtk issue.
from emacs.
I had been stepping through the redisplay code in the little time I get to work on emacs now, I noticed that I missed the change in 9ae94eb where the gui_update_window_begin|end functions were added and the platform specific ones were removed.
This meant we executed that code twice as it the pgtk specific work was identical.
It seems to have made some difference as straight-rebuild-all
now appears to update the minibuffer.
@masm11, the attached patch should apply to the feature/pgtk branch on savannah.
0001-src-pgtkterm.c-remove-duplicated-code.patch.txt
from emacs.
Just tested the patch. It's still the same though.
Also forget to mention that C-g
is not working when executing
straight-rebuild-all
while it immediately stops when using 27.2
from emacs.
@fejfighter Thanks. Committed and pushed.
from emacs.
This is a weird bug.
If I put (straight-rebuild-all)
in the scratch buffer and call C-j
or C-x C-e
it will update the minibuffer. but if I call the same function through M-x
it will not update
Seemingly it's an issue with high load interactive function calls
and I confirmed that I had a clean, correctly compiled 'pgtk-emacs
from emacs.
(let ((i 0))
(while (< i 100000)
(message "i %i" i)
(setq i (1+ i))
(sit-for 1)))
This code counts up, but it stops counting up after pressing any key.
That may be related.
from emacs.
If I define:
(global-set-key "\C-w" 'straight-rebuild-all)
and use it, start_hourglass is called.
While straight-rebuild-all is executing, atimer event is called
periodically. When that, drawing is processed.
If I execute it with M-x straight-rebuild-all,
start_hourglass is called but cancel_hourglass is also called.
So atimer event is not called.
from emacs.
Using a smaller, modified version of the counting snippet above I get a minimal log as attached, at some pint (around 3) i hit a key and the PGTK_TRACE log is much shorter for each message
call
from emacs.
I tried to fix in 8a649cb.
It fixed this issue but generated frame-positioning issue, so I reverted it.
from emacs.
@declanqian
Could you build emacs-mirror@master and confirm whether the issue reproduces yet?
from emacs.
Nice, the issue does not reproduce any more.
Can you kindly point out the commit which fixed this issue? @masm11
Also, I think this issue can be closed now.
from emacs.
@declanqian Thanks for the confirmation.
Can you kindly point out the commit which fixed this issue?
I'm not sure, but maybe b327788 by Po Lu.
from emacs.
I'm not sure, but maybe b327788 by Po Lu.
Thanks for adding this link.
from emacs.
Related Issues (20)
- Sometimes segmentation fault when using selectrum-mode HOT 2
- Failed to compile when enable PGTK_DEBUG HOT 3
- Emacs daemon crash after several Sway reloads HOT 8
- Super key problem HOT 2
- org-roam-mode+marginalia-mode hangs `C-h v` HOT 3
- Empty new frame after disabled menu/scroll/tool bar HOT 5
- "top" and "left" frame parameters HOT 1
- Shift-space not registering HOT 7
- Cannot scroll with xterm-mouse-mode HOT 1
- Segfault in pgtk_mouse_position HOT 2
- child frame focus issue HOT 4
- C-= does not register HOT 2
- compilation error due to empty last case in switch HOT 1
- Support for copy image from clipboard HOT 4
- emacs cannot paste unicode characters correctly HOT 21
- Is pgtk fork suppose to support macOS? HOT 23
- Scrollbars do not have hover/pressed colors HOT 3
- Touchscreen input support? HOT 7
- Clipboard not working with other apps when launched with systemd after reboot HOT 6
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.