GNU bug report logs - #30204
27.0.50; Changing major mode resets non-default invisibility spec

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Mon, 22 Jan 2018 09:52:02 UTC

Severity: minor

Tags: moreinfo

Found in version 27.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 30204 <at> debbugs.gnu.org, p.stephani2 <at> gmail.com, Richard Stallman <rms <at> gnu.org>
Subject: bug#30204: 27.0.50; Changing major mode resets non-default invisibility spec
Date: Sat, 09 Oct 2021 13:10:57 +0200
Robert Pluim <rpluim <at> gmail.com> writes:

> I see you did that with 'after-change-functions'. Would a
> 'pre-yank-hook' be a useful addition to Emacs? I often yank output
> from badly behaved programs, and having a buffer-local hook to replace
> non-breaking-spaces and the like before insertion would be useful.

There's `filter-buffer-substring' to do it from the other side...  But I
see now that I could just have set `yank-excluded-properties' to t in
this mode to get the same effect as the `after-change-functions'.  I'll
adjust.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 226 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.