diff options
Diffstat (limited to 'lisp/progmodes/idlw-shell.el')
| -rw-r--r-- | lisp/progmodes/idlw-shell.el | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el index e804b9f8d50..04e6a28ee40 100644 --- a/lisp/progmodes/idlw-shell.el +++ b/lisp/progmodes/idlw-shell.el | |||
| @@ -510,40 +510,44 @@ t Glyph when possible, otherwise face (same effect as 'glyph)." | |||
| 510 | (defvar idlwave-shell-use-breakpoint-glyph t | 510 | (defvar idlwave-shell-use-breakpoint-glyph t |
| 511 | "Obsolete variable. See `idlwave-shell-mark-breakpoints.") | 511 | "Obsolete variable. See `idlwave-shell-mark-breakpoints.") |
| 512 | 512 | ||
| 513 | (defcustom idlwave-shell-breakpoint-face 'idlwave-shell-bp-face | 513 | (defcustom idlwave-shell-breakpoint-face 'idlwave-shell-bp |
| 514 | "*The face for breakpoint lines in the source code. | 514 | "*The face for breakpoint lines in the source code. |
| 515 | Allows you to choose the font, color and other properties for | 515 | Allows you to choose the font, color and other properties for |
| 516 | lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'." | 516 | lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'." |
| 517 | :group 'idlwave-shell-highlighting-and-faces | 517 | :group 'idlwave-shell-highlighting-and-faces |
| 518 | :type 'symbol) | 518 | :type 'symbol) |
| 519 | 519 | ||
| 520 | (if idlwave-shell-have-new-custom | 520 | (if (not idlwave-shell-have-new-custom) |
| 521 | ;; We have the new customize - use it to define a customizable face | 521 | ;; Just copy the underline face to be on the safe side. |
| 522 | (defface idlwave-shell-bp-face | 522 | (copy-face 'underline 'idlwave-shell-bp) |
| 523 | '((((class color)) (:foreground "Black" :background "Pink")) | 523 | ;; We have the new customize - use it to define a customizable face |
| 524 | (t (:underline t))) | 524 | (defface idlwave-shell-bp |
| 525 | "Face for highlighting lines with breakpoints." | 525 | '((((class color)) (:foreground "Black" :background "Pink")) |
| 526 | :group 'idlwave-shell-highlighting-and-faces) | 526 | (t (:underline t))) |
| 527 | ;; Just copy the underline face to be on the safe side. | 527 | "Face for highlighting lines with breakpoints." |
| 528 | (copy-face 'underline 'idlwave-shell-bp-face)) | 528 | :group 'idlwave-shell-highlighting-and-faces) |
| 529 | ;; backward-compatibility alias | ||
| 530 | (put 'idlwave-shell-bp-face 'face-alias 'idlwave-shell-bp)) | ||
| 529 | 531 | ||
| 530 | (defcustom idlwave-shell-disabled-breakpoint-face | 532 | (defcustom idlwave-shell-disabled-breakpoint-face |
| 531 | 'idlwave-shell-disabled-bp-face | 533 | 'idlwave-shell-disabled-bp |
| 532 | "*The face for disabled breakpoint lines in the source code. | 534 | "*The face for disabled breakpoint lines in the source code. |
| 533 | Allows you to choose the font, color and other properties for | 535 | Allows you to choose the font, color and other properties for |
| 534 | lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'." | 536 | lines which have a breakpoint. See also `idlwave-shell-mark-breakpoints'." |
| 535 | :group 'idlwave-shell-highlighting-and-faces | 537 | :group 'idlwave-shell-highlighting-and-faces |
| 536 | :type 'symbol) | 538 | :type 'symbol) |
| 537 | 539 | ||
| 538 | (if idlwave-shell-have-new-custom | 540 | (if (not idlwave-shell-have-new-custom) |
| 539 | ;; We have the new customize - use it to define a customizable face | 541 | ;; Just copy the underline face to be on the safe side. |
| 540 | (defface idlwave-shell-disabled-bp-face | 542 | (copy-face 'underline 'idlwave-shell-disabled-bp) |
| 541 | '((((class color)) (:foreground "Black" :background "gray")) | 543 | ;; We have the new customize - use it to define a customizable face |
| 542 | (t (:underline t))) | 544 | (defface idlwave-shell-disabled-bp |
| 543 | "Face for highlighting lines with breakpoints." | 545 | '((((class color)) (:foreground "Black" :background "gray")) |
| 544 | :group 'idlwave-shell-highlighting-and-faces) | 546 | (t (:underline t))) |
| 545 | ;; Just copy the underline face to be on the safe side. | 547 | "Face for highlighting lines with breakpoints." |
| 546 | (copy-face 'underline 'idlwave-shell-disabled-bp-face)) | 548 | :group 'idlwave-shell-highlighting-and-faces) |
| 549 | ;; backward-compatibility alias | ||
| 550 | (put 'idlwave-shell-disabled-bp-face 'face-alias 'idlwave-shell-disabled-bp)) | ||
| 547 | 551 | ||
| 548 | 552 | ||
| 549 | (defcustom idlwave-shell-expression-face 'secondary-selection | 553 | (defcustom idlwave-shell-expression-face 'secondary-selection |
| @@ -2734,7 +2738,7 @@ Runs to the last statement and then steps 1 statement. Use the .out command." | |||
| 2734 | (funcall orig-func cur-line orig-bp-line) | 2738 | (funcall orig-func cur-line orig-bp-line) |
| 2735 | (or (not bp-line) (funcall closer-func cur-line bp-line))) | 2739 | (or (not bp-line) (funcall closer-func cur-line bp-line))) |
| 2736 | (setq bp-line cur-line)))) | 2740 | (setq bp-line cur-line)))) |
| 2737 | (unless bp-line (error "No further breakpoints.")) | 2741 | (unless bp-line (error "No further breakpoints")) |
| 2738 | (goto-line bp-line))) | 2742 | (goto-line bp-line))) |
| 2739 | 2743 | ||
| 2740 | ;; Examine Commands ------------------------------------------------------ | 2744 | ;; Examine Commands ------------------------------------------------------ |