From: Eli Zaretskii <eliz@gnu.org>
To: Paul W. Rankin <hello@paulwrankin.com>
Cc: emacs-devel@gnu.org
Subject: Re: Making vertical-border char defcustom?
Date: Sun, 19 Jan 2020 17:35:34 +0200 [thread overview]
Message-ID: <8336cbzcft.fsf@gnu.org> (raw)
In-Reply-To: <2E19AE9F-891D-42D9-9BD4-9B355804C189@paulwrankin.com> (message from Paul W. Rankin on Mon, 20 Jan 2020 00:13:27 +1000)
> From: Paul W. Rankin <hello@paulwrankin.com>
> Date: Mon, 20 Jan 2020 00:13:27 +1000
>
> (defun prettify-vertical-border (&optional dummy)
> (ignore dummy)
> (set-display-table-slot
> (or buffer-display-table standard-display-table)
> 'vertical-border ?│))
>
> (when (not window-system)
> (add-hook 'window-configuration-change-hook
> 'prettify-vertical-border)
> (add-hook 'change-major-mode-hook
> 'prettify-vertical-border))
>
> However the problem with this approach is that some major/minor-modes
> set their own overriding display-table... I think help-mode or
> special-mode...
I don't understand the difficulty. AFAIU, all you need is augment
your prettify-vertical-border with a call to window-display-table, and
then no overriding could get in your way. Or am I missing something?
next prev parent reply other threads:[~2020-01-19 15:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-19 14:13 Making vertical-border char defcustom? Paul W. Rankin
2020-01-19 15:35 ` Eli Zaretskii [this message]
2020-01-19 23:49 ` Paul W. Rankin
2020-01-20 18:08 ` Eli Zaretskii
2020-01-21 6:25 ` Paul W. Rankin
2020-01-21 15:30 ` Eli Zaretskii
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=8336cbzcft.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=hello@paulwrankin.com \
/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.