Post AwjTC2njwXM5hiKnoW by tusharhero@mathstodon.xyz
 (DIR) More posts by tusharhero@mathstodon.xyz
 (DIR) Post #Awj63F60Z4gIHciHp2 by divyaranjan@mathstodon.xyz
       2025-08-01T12:54:23Z
       
       0 likes, 2 repeats
       
       I've been busy trying to find a way to draw on-the-fly on top of a PPM image in #Emacs. We need this to implement text selection for The #Emacs Reader.I tried all pure-Elisp methods from overlays to posframes, but in the end decided to go for raw pixel manipulation in PPM through a C dynamic module.The result is a smooth coloring book in Emacs!Code:https://codeberg.org/divyaranjan/snippets/src/branch/master/elisp-native-modules/ppm-overlay
       
 (DIR) Post #AwjTC2njwXM5hiKnoW by tusharhero@mathstodon.xyz
       2025-08-01T17:13:44Z
       
       0 likes, 1 repeats
       
       Even more progress made by @divyaranjan (he asked me to share it).#emacs
       
 (DIR) Post #B1aACBZ5KbAWKkm4bQ by divyaranjan@mathstodon.xyz
       2025-12-24T18:48:57Z
       
       0 likes, 1 repeats
       
       So finally some good progress on this, I found a workaround to avoid Emacs eating gigabyte of memory after a couple of drags.It involved using a tmp file as a buffer for editing the PPM, but it introduces no noticeable latency and improves performance in zoomed images.Here's the new snippet in action:Code:https://codeberg.org/divyaranjan/snippets/src/branch/master/elisp-native-modules/ppm-overlay/ppm-overlay-temp.elRead more about the whole debacle here:https://codeberg.org/divyaranjan/emacs-reader/pulls/126#issuecomment-9191474
       
 (DIR) Post #B1b67pzpNMJ9cfukIS by tusharhero@mathstodon.xyz
       2025-12-25T05:38:04Z
       
       0 likes, 0 repeats
       
       @divyaranjan You forgot to add #emacs
       
 (DIR) Post #B1coK20t72KvVdzk5g by divyaranjan@mathstodon.xyz
       2025-12-26T01:27:59Z
       
       0 likes, 0 repeats
       
       And finally integrated it to the PR. Most likely will be merged soon for the upcoming major release (which will go to ELPA).Towards an efficient and lightweight document reader inside #Emacs!
       
 (DIR) Post #B1coZAcvN06aZF0MbY by divyaranjan@mathstodon.xyz
       2025-12-26T01:30:45Z
       
       0 likes, 0 repeats
       
       Proof that we are still lightweight :)
       
 (DIR) Post #B1d1NPDMbdzJjulluC by xameer@mathstodon.xyz
       2025-12-26T03:54:16Z
       
       0 likes, 0 repeats
       
       @divyaranjan what's a the package
       
 (DIR) Post #B1hzD79BhH7Sgta4Ya by dmolina@eu.mastodon.green
       2025-12-28T13:23:29Z
       
       0 likes, 0 repeats
       
       @divyaranjan it is great! I installed only to test it a little, I am looking for using it more when it is elpa.