unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Pogonyshev <pogonyshev@gmail.com>
To: Gregory Heytings <gregory@heytings.org>
Cc: 57684@debbugs.gnu.org
Subject: bug#57684: locked narrowing breaks existing code without an apparent way to repair
Date: Thu, 8 Sep 2022 22:30:45 +0200	[thread overview]
Message-ID: <CAG7BpaoZ859OhBx6ZcpVAgWVjFqug+CDG0ZRP6wi0A08N7h5qg@mail.gmail.com> (raw)
In-Reply-To: <2e25ca87e3c6ebb795d7@heytings.org>

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]

Good to hear. I think in all cases it should be left to the coder to
temporarily lift restrictions, even if those are "locked", maybe
with strong warnings in documentation. Speed should always
come a second priority to functionality. Besides, Logview (one
example of what would suffer if widening is impossible) is very
fast.

As an example of why widening might be needed: fontification
may depend on preceding text in the buffer. Maybe standard
Emacs fontification code handles that separately, but e.g.
Logview (almost) completely replaces the standard code here
with a home-grown solution aimed specifically at log files. And
actually this was done exactly for speed.

Anyway, I hope this is finished soon.

Paul

On Thu, 8 Sept 2022 at 21:57, Gregory Heytings <gregory@heytings.org> wrote:

>
> >
> > "Locked narrowing" added in Emacs 29 cannot be (temporarily) canceled by
> > code called inside.
> >
>
> This issue is being worked on, see the (not yet finished)
> feature/improved-locked-narrowing branch.
>

[-- Attachment #2: Type: text/html, Size: 1529 bytes --]

  reply	other threads:[~2022-09-08 20:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-08 19:37 bug#57684: locked narrowing breaks existing code without an apparent way to repair Paul Pogonyshev
2022-09-08 19:57 ` Gregory Heytings
2022-09-08 20:30   ` Paul Pogonyshev [this message]
2022-09-09  1:46     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-09 16:16   ` Lars Ingebrigtsen
2022-09-09 16:20     ` Gregory Heytings
2022-09-13 20:54       ` Paul Pogonyshev
2022-09-13 21:06         ` Gregory Heytings
2022-09-13 21:13           ` Paul Pogonyshev
2022-09-13 21:35             ` Gregory Heytings
2022-09-14  2:34         ` Eli Zaretskii
2022-09-14  9:45           ` Paul Pogonyshev
2022-09-14 11:57             ` Eli Zaretskii
2022-09-16  3:38               ` Richard Stallman
2022-09-16  6:04                 ` Eli Zaretskii
2022-09-17  3:40                   ` Richard Stallman
2022-09-17  6:33                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAG7BpaoZ859OhBx6ZcpVAgWVjFqug+CDG0ZRP6wi0A08N7h5qg@mail.gmail.com \
    --to=pogonyshev@gmail.com \
    --cc=57684@debbugs.gnu.org \
    --cc=gregory@heytings.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).