Function: gdb-mark-line
gdb-mark-line is a macro defined in gdb-mi.el.gz.
Signature
(gdb-mark-line LINE VARIABLE)
Documentation
Set VARIABLE marker to point at beginning of LINE.
If current window has no fringes, inverse colors on LINE.
Return position where LINE begins.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/gdb-mi.el.gz
(defmacro gdb-mark-line (line variable)
"Set VARIABLE marker to point at beginning of LINE.
If current window has no fringes, inverse colors on LINE.
Return position where LINE begins."
`(save-excursion
(let* ((posns (gdb-line-posns ,line))
(start-posn (car posns))
(end-posn (cdr posns)))
(set-marker ,variable (copy-marker start-posn))
(when (not (> (car (window-fringes)) 0))
(put-text-property start-posn end-posn
'font-lock-face '(:inverse-video t)))
start-posn)))