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

coding system for html files (unibyte mode)

2005-04-08 Thread Roland Winkler
Symptoms: cat foo.htm EOF html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /html EOF When I start emacs --no-init-file foo.htm, I can edit and save the file as expected. On the other hand, when I start emacs --unibyte --no-init-file foo.htm, then edit the file

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: ISO 8859-13/iso-latin-7 encoding incorrect

2005-04-08 Thread Kenichi Handa
In article [EMAIL PROTECTED], Peter Dyballa [EMAIL PROTECTED] writes: Hello! Few characters are not correctly coded: Thank you for finding those error. I've just fixed the code of code-pages.el. Although you didn't list it, 0241 = A1 = U+201D was also incorrectly decoded. --- Ken'ichi HANDA

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