help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How can I change a buffer-local glyphless char table?


From: Stefan Monnier
Subject: Re: How can I change a buffer-local glyphless char table?
Date: Wed, 06 Jun 2018 13:45:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>   (make-local-variable 'glyphless-char-display)

This makes the variable buffer-local but its value is still the same
array object, so update-glyphless-char-display will still update the
same object shared by all buffers.

> Any ideas how I can do this more easily?

You might try

    (set (make-local-variable 'glyphless-char-display)
         (copy-sequence glyphless-char-display))


-- Stefan




reply via email to

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