all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How can I change a buffer-local glyphless char table?
@ 2018-06-06  2:27 Nick Helm
  2018-06-06 14:50 ` Eli Zaretskii
  2018-06-06 17:45 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Nick Helm @ 2018-06-06  2:27 UTC (permalink / raw)
  To: help-gnu-emacs

Occasionally, I find it useful to use
glyphless-char-display-control to visualise normally invisible
characters. I do this with something like:

  (update-glyphless-char-display 'glyphless-char-display-control
    '((c0-control     . empty-box)
      (c1-control     . empty-box)
      (format-control . empty-box)
      (no-font        . hex-code)))

and turn it off again with:

  (update-glyphless-char-display 'glyphless-char-display-control
    (eval (car (get 'glyphless-char-display-control
                    'standard-value))))

However this has a global effect. I would like it to only act on the
current buffer. I've tried creating a buffer-local char table with:

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

and repeating the call to update-glyphless-char-display, but it
affects both local and global values regardless.

If I make glyphless-char-display buffer-local and tweak its value
directly, it works fine.

Any ideas how I can do this more easily?



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-06 22:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.