unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: PJ Weisberg <pj@irregularexpressions.net>
To: Richard H Lee <ricardohenrylee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Extended ascii characters in emacs lisp
Date: Fri, 20 Apr 2012 16:25:08 -0700	[thread overview]
Message-ID: <CAJsNXTn_au=y_wPgMBDtKCKjC-9+nfYA2z7ypVb2CL+9jQGGHA@mail.gmail.com> (raw)
In-Reply-To: <4F91D6FE.50406@gmail.com>

On Fri, Apr 20, 2012 at 2:37 PM, Richard H Lee
<ricardohenrylee@gmail.com> wrote:
> Hi (again),
>
> I'm using fill-column-indicator.el to set a column margin at column 80 in
> emacs. Currently it uses the pipe "|" symbol as the margin character.
>
> I would like to change it one of the extended ascii characters, e.g. the
> solid block / long vertical pipe. I can set it to standard ascii characters
> using:
>
> (setq fci-rule-character ?\101)
>
> e.g. this will set the character to "A". But if I go over 127 into
> extended-ascii, I get:
>
> Invalid read syntax: ?

Actually, it can go up to 511 (a.k.a. "?\777").

See:
http://www.gnu.org/software/emacs/manual/html_node/elisp/General-Escape-Syntax.html

> What is the emacs lisp syntax for extended ascii characters?

Standard way according to the above link is to use the unicode code
point, i.e. "?\u2503".  You might want to just use a character
literal, "?┃", if you don't mind having a ┃ in your source file.

-PJ

Gehm's Corollary to Clark's Law: Any technology distinguishable from
magic is insufficiently advanced.



  parent reply	other threads:[~2012-04-20 23:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-20 21:37 Extended ascii characters in emacs lisp Richard H Lee
2012-04-20 23:06 ` Gregory Benjamin
2012-04-20 23:25 ` PJ Weisberg [this message]
2012-04-21 11:49   ` Richard H Lee
     [not found]   ` <mailman.372.1335008989.751.help-gnu-emacs@gnu.org>
2012-04-24 13:31     ` Jason Rumney

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='CAJsNXTn_au=y_wPgMBDtKCKjC-9+nfYA2z7ypVb2CL+9jQGGHA@mail.gmail.com' \
    --to=pj@irregularexpressions.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ricardohenrylee@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.
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).