all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: igor denisov <saufesma@gmail.com>, 21510@debbugs.gnu.org
Subject: bug#21510: output
Date: Fri, 18 Sep 2015 07:41:04 -0700 (PDT)	[thread overview]
Message-ID: <55f43349-8bdc-4303-bd1e-aba3c8b62706@default> (raw)
In-Reply-To: <CAE0=M6o=-akE6bMFfys21CVOXHUt15e0-9PwXHCZBOoCskxFqQ@mail.gmail.com>

> (defvar PPSCmc (car list-of-ppsc))
> PPSCmc
> output is quite strange
> 8 (#o10, #x8, ?\C-h)
> why?

Didn't bother to read the rest of your message, so apologies
if my guess is wrong.  My guess is that you are wondering
why a number (in this case 8) is shown that way.

If so, that's how Emacs shows a character interactively:
in decimal (8), octal (#o10), hexadecimal (#x8), and as a
character (?\C-h).  (In Emacs Lisp, a character is an
integer.)

So:

(setq foo ?\C-h) ; 8
M-: foo RET ; evaluate foo and print the value
8 (#o10, #x8, ?\C-h)

Same thing for (setq foo 8).





  reply	other threads:[~2015-09-18 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18  5:58 bug#21510: output igor denisov
2015-09-18 14:41 ` Drew Adams [this message]
2015-09-19  8:19   ` igor denisov
2015-09-19 14:18     ` Drew Adams

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=55f43349-8bdc-4303-bd1e-aba3c8b62706@default \
    --to=drew.adams@oracle.com \
    --cc=21510@debbugs.gnu.org \
    --cc=saufesma@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 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.