Re: emacs crashes with eval-region and marker

2005-04-08 Thread Lute Kamstra
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

Re: emacs crashes with eval-region and marker

2005-04-08 Thread Stefan Monnier
+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

Re: emacs crashes with eval-region and marker

2005-04-08 Thread Lute Kamstra
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

Re: emacs crashes with eval-region and marker

2005-04-08 Thread Kim F. Storm
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

Re: emacs crashes with eval-region and marker

2005-04-08 Thread Kim F. Storm
[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

Re: emacs crashes with eval-region and marker

2005-04-08 Thread Richard Stallman
Fprint uses PRINTPREPARE which will try to set point at the marker position: if (MARKERP (printcharfun)) \ { \ ... SET_PT_BOTH