emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/logview c06cdb2094 167/259: Document Logview vs. locked na


From: ELPA Syncer
Subject: [nongnu] elpa/logview c06cdb2094 167/259: Document Logview vs. locked narrowing in Emacs 29.
Date: Fri, 31 Jan 2025 07:02:08 -0500 (EST)

branch: elpa/logview
commit c06cdb2094ecfc844a3e826796453305418dcfa4
Author: Paul Pogonyshev <pogonyshev@gmail.com>
Commit: Paul Pogonyshev <pogonyshev@gmail.com>

    Document Logview vs. locked narrowing in Emacs 29.
---
 README.adoc | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/README.adoc b/README.adoc
index 728aba022e..46764d4b12 100644
--- a/README.adoc
+++ b/README.adoc
@@ -514,3 +514,36 @@ changed in each individual buffer.
 * Append log file tail to the buffer: `x`
 * Revert the buffer preserving active filters: `X`
 * Universal prefix commands are bound without modifiers: `u`, `-`, `0`..`9`
+
+
+== Locked narrowing in Emacs 29
+
+Emacs 29 (in development) has introduced locked narrowing as a way to
+improve performance.  At the same time, it broke compatibility by
+making function `widen` not always do what packages would expect from
+it.  This caused Logview, in particular, fail unpredictably, up to
+causing a full freeze in Emacs (where even `C-g` does nothing) from
+its fontification code.
+
+Locked narrowing restrictions currently cannot be lifted.  It is
+extremely difficult to adapt Logview to `widen` not widening as it has
+always does.  Therefore, Logview currently tries to _disable long-line
+optimizations in its buffers_.  I don’t know if it will always succeed
+or not; if it does not, Logview will now fail hard before causing more
+problems.
+
+If you experience problems with Logview still not being able to
+disable long-line optimization and, therefore, not working at all, you
+can add the following to your Emacs initialization code:
+
+    (setf long-line-threshold nil)
+
+Note that this will disable long-line optimization *everywhere*,
+though.  It’s up to you to decide whether that is more important than
+having Logview or not; as said, this is an emergency setting only,
+_probably_ Logview should work regardless.
+
+I have tried arguing with Emacs developers about this, but that is
+pointless, as I have found on this and several other occasions.  The
+only positive thing I got from it is that locked narrowing will become
+liftable in fontification code at least.  Somewhen.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]