Lute Kamstra [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Kim F. Storm) writes:
[...]
That's the analysis -- I'm not sure how to fix the problem.
Shouldn't Fprint (and other functions that accept a marker as output
stream) just check if the marker is within the accessible part of the
+int marker_pos = -1;
This should be EMACS_INT, since Lisp_Object can be 64bit even if int is
only 32bit (and it should be in the MARKERP branch of PRINTPREPARE rather
than in PRINTDECLARE).
Stefan
PS: Yes, it's a very widespread problem, but if we ever want to be able to
Stefan Monnier [EMAIL PROTECTED] writes:
+int marker_pos = -1;
This should be EMACS_INT, since Lisp_Object can be 64bit even if int is
only 32bit
I just checked:
/* Return the char position of marker MARKER, as a C integer. */
int
marker_position (marker)
Lisp_Object
Lute Kamstra [EMAIL PROTECTED] writes:
[EMAIL PROTECTED] (Kim F. Storm) writes:
[...]
That's the analysis -- I'm not sure how to fix the problem.
Shouldn't Fprint (and other functions that accept a marker as output
stream) just check if the marker is within the accessible part of the
[EMAIL PROTECTED] (Mario Domgrgen) writes:
I start a clean emacs with emacs -q --no-init-file and evaluate
the following function:
(defun html-eval-scripts ()
(interactive)
(save-excursion
(goto-char (point-min))
(while (re-search-forward
Fprint uses PRINTPREPARE which will try to set point at the marker
position:
if (MARKERP (printcharfun))
\
{
\
...
SET_PT_BOTH