Hello
I cannot edebug the following function
(defun matlab-shell-render-html-anchor (str)
"Render html anchors inserted into the MATLAB shell buffer.
Argument STR is the text for the anchor."
(if (string-match matlab-anchor-end str)
(save-excursion
(while (re-search-backward matlab-anchor-beg nil t)
(let* ((anchor-beg-start (match-beginning 0))
(anchor-beg-finish (match-end 0))
(anchor-text (match-string 1))
(anchor-end-finish (search-forward matlab-anchor-end))
(anchor-end-start (match-beginning 0))
(o (matlab-make-overlay anchor-beg-finish anchor-end-start)))
(matlab-overlay-put o 'mouse-face 'highlight)
(matlab-overlay-put o 'face 'underline)
(matlab-overlay-put o 'matlab-url anchor-text)
(matlab-overlay-put o 'keymap matlab-shell-html-map)
(delete-region anchor-end-start anchor-end-finish)
(delete-region anchor-beg-start anchor-beg-finish)
))))
)
When I do the cursor (with arrow jumps directly to the if
line)
Like (defun matlab-shell-render-html-anchor (str)
"Render html anchors inserted into the MATLAB shell buffer.
Argument STR is the text for the anchor."
=>f (string-match matlab-anchor-end str)
(save-excursion
(while (re-search-backward matlab-anchor-beg nil t)
(let* ((anchor-beg-start (match-beginning 0))
(anchor-beg-finish (match-end 0))
(anchor-text (match-string 1))
(anchor-end-finish (search-forward matlab-anchor-end))
(anchor-end-start (match-beginning 0))
(o (matlab-make-overlay anchor-beg-finish anchor-end-start)))
(matlab-overlay-put o 'mouse-face 'highlight)
(matlab-overlay-put o 'face 'underline)
(matlab-overlay-put o 'matlab-url anchor-text)
(matlab-overlay-put o 'keymap matlab-shell-html-map)
(delete-region anchor-end-start anchor-end-finish)
(delete-region anchor-beg-start anchor-beg-finish)
))))
)
I don't understand this.
For other functions in the matlab pkg edebug behaves as
expected.
Uwe Brauer
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta