unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: trentbuck@gmail.com (Trent W. Buck)
Cc: emacs-devel@gnu.org
Subject: Re: Where is the vertical-border char set?
Date: Wed, 30 Apr 2014 17:21:45 +0300	[thread overview]
Message-ID: <83tx9alwxy.fsf@gnu.org> (raw)
In-Reply-To: <87bnvjfdyv.fsf@gmail.com>

> From: trentbuck@gmail.com (Trent W. Buck)
> Date: Wed, 30 Apr 2014 17:55:52 +1000
> 
> Stupidly, I started doing this today:
> 
>     (setq mode-line-end-spaces (make-string 1024 ?─))
> 
> It makes the modeline look prettier (except when it doesn't).
> The 1024 is arbitrary, it replaces %- (infinite MINUS HYPHEN).
> I can't see how to ask for infinity of an arbitrary codepoint.

What's wrong with 1024?  If that might be too few, enlarge it.

> I want to do the same thing for the vertical-border character,

I hope by "do the same thing" you do NOT mean to have 1024 characters
as the border, but rather replace "|" with some non-ASCII character.

> Where do I set that?

It hides in one of the extra slots of the display table.  See the node
"Display Tables" in the ELisp manual.

> CAN I set that?

Yes, something like

  (set-display-table-slot (setq standard-display-table (make-display-table))
                          'vertical-border ?│)

But beware: the character you use must be encodable by your
terminal-coding-system, otherwise you will get a question mark "?"
instead of your fancy character.

(Personally, I question the utility of doing what you want, but that's
me.)




  reply	other threads:[~2014-04-30 14:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-30  7:55 Where is the vertical-border char set? Trent W. Buck
2014-04-30 14:21 ` Eli Zaretskii [this message]
2014-05-01  0:32   ` Trent W. Buck
2014-05-01  2:48     ` Eli Zaretskii
2014-05-02  2:42     ` Trent W. Buck
2014-05-02  7:24       ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83tx9alwxy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=trentbuck@gmail.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).