Hello Jerry,
Basically, I am reading a file with fgets or fgetc (tried both) and I am
putting a portion
of the file in an array to use the function buffer_insert_ascstring.
The file size is approximatively 3 Mb. I bind all this to a DEFUN to call
the lisp function interactively to insert some text while in the editor.
I get a ***crash*** and it says that an assertion at
line 3840 of lisp.h is failing; which is /* return value NOT Ascbyte because
the result
in general will have been translated into a foreign language.*/. The file
contains some
c code and explanations of it.
Is it possible that characters like double quotes, single quotes and newline
\n character is
not considered ascii text?
Many thanks,
Steeve.
P.S. I do not know how to do a bug report or if it is necessary in this case
considering that
it is probably a misunderstanding of the Xemacs source on my part. (I have
21.5.30)
On Mon, Jun 20, 2011 at 10:52 PM, Jerry James <james(a)xemacs.org> wrote:
Hi Steeve,
On Sun, Jun 19, 2011 at 10:23 PM, Steeve Beaulieu <mintunix(a)gmail.com>
wrote:
> I have a question:
>
> when using litteral string->
> buffer_insert_ascstring (current_buffer, "some message ..."); (No
problem)
> but how do I use a variable for the string like in->
> buffer_insert_ascstring (current_buffer, somevariable); (Does not work) ?
>
> Steeve
Hmmm, "does not work" could mean lots of different things. Can you
show us what you are trying to do, and what kind of error or problem
you are encountering?
--
Jerry James
http://www.jamezone.org/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta