Closed kevinboulain closed 5 years ago
Yep, that's strange. Clearly it's a bug since "value-as-variable" can only come from broken code. A quick search for "end" suggests that's it's lentic-update-contents' where the
endshould be
stop`.
That code only gets called rarely and is there to cope with when Emacs says it is going to do one thing and actually does another. At some point in my life I will fix Emacs.
I'll try testing tonight and see if I can get this working. Thanks for the report and the very clean reproduction.
Wow, I wasn't expecting this simple fix to resolve the issue I had with my complete configuration (the infinite stream of bells with Error in post-command-hook (global-hl-line-highlight): (args-out-of-range 5051)
and the need to kill the unresponsive Emacs).
Thanks!
Yeah, messing around with the post-command
and after-change
hooks in such a major way as lentic is pretty hairy. Amazed I managed to miss that bug for so long.
Hi there,
I tried this mode and it seems really nice but I encountered some errors that make it painful to use as they sometimes crash Emacs on standard shortcuts. There isn't much activity on this repository so I hope it's still maintained and that it only means it's stable :)
Follows how to reproduce an issue with a completely new Emacs configuration.
I'll use straight.el and use-package to install lentic, feel free to copy/paste the following steps as they shouldn't modify your environment and setup everything in
/tmp/trash
:Once the above is done, everything is in place to:
crash.org
with lenticSo let's proceed:
Once the initial setup is done, I validate the loading of
.dir-locals.el
with!
. Then, in thecrash.org
buffer that is now open IC-c , c
(which creates the lentic buffer) and I open the lentic buffer withC-c , t
which correctly displayscrash.el
(with;; hello world
).Finally I simply
M-c
to uppercase theh
ofhello world
(since I didn't even move the point it should be on the first line).I'll get the following error:
My Emacs version (both on Linux and macOS):
I didn't investigate much yet since this is only one side of the problem: with my complete Emacs configuration it makes Emacs go into an infinite loop (funnily emitting an infinite stream of bells :)) and I have to
SIGTERM
it (sometimes evenSIGKILL
) :( However it seems related toglobal-hl-line-mode
(theM-c
command make it crash inside this one it seems) but I couldn't reproduce it for now.Any idea before I fully investigate?
Thanks for the package!
Regards.