From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: trentbuck@gmail.com (Trent W. Buck) Newsgroups: gmane.emacs.devel Subject: Re: Where is the vertical-border char set? Date: Thu, 01 May 2014 10:32:07 +1000 Message-ID: <87tx9al4oo.fsf@gmail.com> References: <87bnvjfdyv.fsf@gmail.com> <83tx9alwxy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1398904367 12080 80.91.229.3 (1 May 2014 00:32:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 00:32:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 01 02:32:40 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WfevY-0007Oh-4V for ged-emacs-devel@m.gmane.org; Thu, 01 May 2014 02:32:40 +0200 Original-Received: from localhost ([::1]:59910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfevX-0000m1-No for ged-emacs-devel@m.gmane.org; Wed, 30 Apr 2014 20:32:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfevP-0000lt-LK for emacs-devel@gnu.org; Wed, 30 Apr 2014 20:32:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfevJ-0002uv-OI for emacs-devel@gnu.org; Wed, 30 Apr 2014 20:32:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfevJ-0002uk-IS for emacs-devel@gnu.org; Wed, 30 Apr 2014 20:32:25 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WfevG-00071O-0h for emacs-devel@gnu.org; Thu, 01 May 2014 02:32:22 +0200 Original-Received: from 203.7.155.103 ([203.7.155.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2014 02:32:22 +0200 Original-Received: from trentbuck by 203.7.155.103 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 May 2014 02:32:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 203.7.155.103 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171663 Archived-At: Eli Zaretskii writes: >> 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. It works; it just feels inelegant compared to %-. >> 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. Ah, thanks -- I found disp-table but from reading it I thought it was only used for M-x list charset chars RET, and (make-display-table) didn't use a "|" as its default vertical-border, which fooled me. > Yes, something like > > (set-display-table-slot (setq standard-display-table (make-display-table)) > 'vertical-border ?│) This works for me: (set-display-table-slot standard-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.) Understood; thus the "Stupidly" at the start of my email. Anywhere modern enough that I have Emacs and dotfiles installed, bloody well ought to be UTF-8 throughout, so I'm not to worried. If it annoys me I'll just turn it off again. It already looks funny in DejaVu Sans Mono at certain :pixelsize's, because the hinter makes the "ends" of each char a bit fatter, so you end up with a fuzzy pulse. Oh well.