help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the value of ^@ as character in elisp


From: Pascal Bourguignon
Subject: Re: What is the value of ^@ as character in elisp
Date: Wed, 04 Jul 2007 02:53:49 +0200
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1.50 (gnu/linux)

Slavomir Kaslev <slavomir.kaslev@gmail.com> writes:

> Hello,
>
> I am new to emacs lisp and I am writing several functions to make
> emacs communicate with Autodesk Maya.
>
> I can't figure a way to get the value of ^@ as character in elisp. For
> the moment I just copied the character in my .el source:

In emacs lisp, characters are integers, like in C.

^@ is 0.

So to get the value of ^@, you can just write 0. For example:

(insert "Hello>" 0 "<world!")
; inserts:
Hello><world!

(string 0) --> ""


> (defcustom etom-prompt-regexp "^^@$"
>   "Regexp which matches the Maya's prompt."
>   :type 'regexp
>   :group 'etom)

The Maya prompt is a null character???


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]