Function: idlwave-shell-bp-get
idlwave-shell-bp-get is a byte-compiled function defined in
idlw-shell.el.gz.
Signature
(idlwave-shell-bp-get BP &optional ITEM)
Documentation
Get a value for a breakpoint.
BP has the form of elements in idlwave-shell-bp-alist.
Optional second arg ITEM is the particular value to retrieve.
ITEM can be file, line, index, module, count, cmd,
condition, disabled, type, or data. data returns a list
of count, cmd and condition. Defaults to index.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/idlw-shell.el.gz
(defun idlwave-shell-bp-get (bp &optional item)
"Get a value for a breakpoint.
BP has the form of elements in `idlwave-shell-bp-alist'.
Optional second arg ITEM is the particular value to retrieve.
ITEM can be `file', `line', `index', `module', `count', `cmd',
`condition', `disabled', `type', or `data'. `data' returns a list
of `count', `cmd' and `condition'. Defaults to `index'."
(cond
;; Frame
((eq item 'line) (nth 1 (car bp)))
((eq item 'file) (nth 0 (car bp)))
;; idlwave-shell breakpoint data
((eq item 'data) (cdr (cdr bp)))
((eq item 'count) (nth 0 (cdr (cdr bp))))
((eq item 'cmd) (nth 1 (cdr (cdr bp))))
((eq item 'condition) (nth 2 (cdr (cdr bp))))
((eq item 'disabled) (nth 3 (cdr (cdr bp))))
;; IDL breakpoint info
((eq item 'module)
(let ((module (nth 1 (car (cdr bp)))))
(if (listp module) (car module) module)))
((eq item 'type)
(let ((module (nth 1 (car (cdr bp)))))
(if (listp module) (nth 1 module))))
;; index - default
(t (nth 0 (car (cdr bp))))))