all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: a strange error with list-registers (and better-registers)
Date: Sat, 23 Jul 2022 09:57:57 -0400	[thread overview]
Message-ID: <jwvpmhw6ikw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87czdwfmaz.fsf@mat.ucm.es> (Uwe Brauer's message of "Sat, 23 Jul 2022 07:08:36 +0200")

Uwe Brauer [2022-07-23 07:08:36] wrote:
>>>> "SM" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
>    >> I see. What is not clear to me is why these text properties information
>    >> gets saved at first hand. I thought it might have to do with emacs
>    >> saving mechanism. I recall that saving registers did not cause any
>    >> problem, say in GNU emacs 26 (if I recall correctly).
>
>    > It doesn't depend on the version of Emacs, but on the values that happen
>    > to be carried in the text-properties of the text you happen to have in
>    > your registers.  Packages can put any kinds of values in any kinds of
>    > text-properties.
>
>
> Ok I see, it seems that the culprit would be gnus, because mostly if I
> save messages to registers, these call the problems.
>
> Is there a command like: delete all text-properties in buffer or region?

It sounds like you're asking for an immediate workaround.  This would be
more appropriate for gnu.emacs.help.

Here on emacs-devel, I'd rather focus on fixing the problem, which
requires fixing the code that saves the registers, maybe making it
filter out those properties which contain unprintable values.
But apparently, this code is not in Emacs (nor (Non)GNU ELPA)?


        Stefan




  reply	other threads:[~2022-07-23 13:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-20 15:01 a strange error with list-registers (and better-registers) Uwe Brauer
2022-07-20 19:19 ` Stefan Monnier
2022-07-20 22:40   ` Michael Heerdegen
2022-07-21  0:00     ` Stefan Monnier
2022-07-22 15:10     ` Uwe Brauer
2022-07-22 15:07   ` Uwe Brauer
2022-07-22 19:55     ` Stefan Monnier
2022-07-23  5:08       ` Uwe Brauer
2022-07-23 13:57         ` Stefan Monnier [this message]
2022-07-23 16:36           ` Uwe Brauer
2022-07-23  5:30       ` [remove all text properties in a region] (was: a strange error with list-registers (and better-registers)) Uwe Brauer
2022-07-23 14:00         ` [remove all text properties in a region] Stefan Monnier

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

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

  git send-email \
    --in-reply-to=jwvpmhw6ikw.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.