[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I change a buffer-local glyphless char table?
From: |
Nick Helm |
Subject: |
Re: How can I change a buffer-local glyphless char table? |
Date: |
Thu, 07 Jun 2018 10:34:18 +1200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) |
On Thu, 07 Jun 2018 at 05:45:29 +1200, Stefan Monnier wrote:
>> (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.
Yes of course, I see now. Thanks.
>> Any ideas how I can do this more easily?
>
> You might try
>
> (set (make-local-variable 'glyphless-char-display)
> (copy-sequence glyphless-char-display))
Yes, this works well.
Thanks again.