Dave Pawson | 3 Jan 2006 09:46
Picon
Gravatar

Re: Re: Bug report and fix

On 03/01/06, jonhurst737 <untrusted <at> hursts.eclipse.co.uk> wrote:

>
> The bug is in line 10 of the nxml-backward-single-paragraph defun.
> This should be changed from:
>
> (search-backward "<" nxml-prolog-end t)
>
> to:
>
> (re-search-backward "[<&]" nxml-prolog-end t)

Thanks John.
Not line 10 of the defun in my listing though?
The modified line is marked ;;DP below.
  Works OK after the mod you supplied though.

Can you confirm this is the one?
Iine 2053 in nxml-mode.el

(defun nxml-backward-single-paragraph ()
  "Move backward over a single paragraph.
Return nil at start of buffer, t otherwise."
  (let* ((token-end (nxml-token-before))
	 (offset (- token-end (point)))
	 (last-tag-pos xmltok-start)
	 pos had-data last-data-pos)
    (goto-char token-end)
    (unless (setq pos (nxml-paragraph-start-pos nil offset))
      (setq had-data (nxml-token-contains-data-p nil offset))
      (goto-char xmltok-start)
      (while (and (not pos) (< (point-min) (point)))
;;DP	(cond ((search-backward "<" nxml-prolog-end t)
	(cond ((re-search-backward "[<&]" nxml-prolog-end t)
	       (nxml-move-outside-backwards)
	       (save-excursion
etc

regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> To unsubscribe from this group, send an email to:
    emacs-nxml-mode-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


Gmane