From: Nick Helm <nick@tenpoint.co.nz>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How can I change a buffer-local glyphless char table?
Date: Thu, 07 Jun 2018 10:34:18 +1200 [thread overview]
Message-ID: <m2po13ee8l.fsf@tenpoint.co.nz> (raw)
In-Reply-To: <jwv1sdjke03.fsf-monnier+gmane.emacs.help@gnu.org> (Stefan Monnier's message of "Wed, 06 Jun 2018 13:45:29 -0400")
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.
prev parent reply other threads:[~2018-06-06 22:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-06 2:27 How can I change a buffer-local glyphless char table? Nick Helm
2018-06-06 14:50 ` Eli Zaretskii
2018-06-06 22:13 ` Nick Helm
2018-06-06 17:45 ` Stefan Monnier
2018-06-06 22:34 ` Nick Helm [this message]
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=m2po13ee8l.fsf@tenpoint.co.nz \
--to=nick@tenpoint.co.nz \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.