Mercurial > emacs
comparison lisp/progmodes/idlw-shell.el @ 83353:532e0a9335a9
Merged in changes from CVS trunk. Plus added lisp/term tweaks.
Patches applied:
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--base-0
tag of miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-474
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-1
Add CVS metadata files.
* lorentey@elte.hu--2004/emacs--cvs-trunk--0--patch-2
Update from CVS.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-393
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sun, 04 Sep 2005 03:48:17 +0000 |
parents | 6c13700d1c13 fb2cad4cfb30 |
children | 2a679c81f552 |
comparison
equal
deleted
inserted
replaced
83352:b258b3492423 | 83353:532e0a9335a9 |
---|---|
1 ;; idlw-shell.el --- run IDL as an inferior process of Emacs. | 1 ;; idlw-shell.el --- run IDL as an inferior process of Emacs. |
2 ;; Copyright (c) 1999,2000,2001,2002,2003,2004,2005 Free Software Foundation | 2 ;; Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
3 ;; Free Software Foundation | |
3 | 4 |
4 ;; Authors: J.D. Smith <jdsmith@as.arizona.edu> | 5 ;; Authors: J.D. Smith <jdsmith@as.arizona.edu> |
5 ;; Carsten Dominik <dominik@astro.uva.nl> | 6 ;; Carsten Dominik <dominik@astro.uva.nl> |
6 ;; Chris Chase <chase@att.com> | 7 ;; Chris Chase <chase@att.com> |
7 ;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu> | 8 ;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu> |
530 ;; We have the new customize - use it to define a customizable face | 531 ;; We have the new customize - use it to define a customizable face |
531 (defface idlwave-shell-bp | 532 (defface idlwave-shell-bp |
532 '((((class color)) (:foreground "Black" :background "Pink")) | 533 '((((class color)) (:foreground "Black" :background "Pink")) |
533 (t (:underline t))) | 534 (t (:underline t))) |
534 "Face for highlighting lines with breakpoints." | 535 "Face for highlighting lines with breakpoints." |
535 :group 'idlwave-shell-highlighting-and-faces) | 536 :group 'idlwave-shell-highlighting-and-faces)) |
536 ;; backward-compatibility alias | |
537 (put 'idlwave-shell-bp-face 'face-alias 'idlwave-shell-bp)) | |
538 | 537 |
539 (defcustom idlwave-shell-disabled-breakpoint-face | 538 (defcustom idlwave-shell-disabled-breakpoint-face |
540 'idlwave-shell-disabled-bp | 539 'idlwave-shell-disabled-bp |
541 "*The face for disabled breakpoint lines in the source code. | 540 "*The face for disabled breakpoint lines in the source code. |
542 Allows you to choose the font, color and other properties for | 541 Allows you to choose the font, color and other properties for |
550 ;; We have the new customize - use it to define a customizable face | 549 ;; We have the new customize - use it to define a customizable face |
551 (defface idlwave-shell-disabled-bp | 550 (defface idlwave-shell-disabled-bp |
552 '((((class color)) (:foreground "Black" :background "gray")) | 551 '((((class color)) (:foreground "Black" :background "gray")) |
553 (t (:underline t))) | 552 (t (:underline t))) |
554 "Face for highlighting lines with breakpoints." | 553 "Face for highlighting lines with breakpoints." |
555 :group 'idlwave-shell-highlighting-and-faces) | 554 :group 'idlwave-shell-highlighting-and-faces)) |
556 ;; backward-compatibility alias | |
557 (put 'idlwave-shell-disabled-bp-face 'face-alias 'idlwave-shell-disabled-bp)) | |
558 | |
559 | 555 |
560 (defcustom idlwave-shell-expression-face 'secondary-selection | 556 (defcustom idlwave-shell-expression-face 'secondary-selection |
561 "*The face for `idlwave-shell-expression-overlay'. | 557 "*The face for `idlwave-shell-expression-overlay'. |
562 Allows you to choose the font, color and other properties for | 558 Allows you to choose the font, color and other properties for |
563 the expression printed by IDL." | 559 the expression printed by IDL." |
2758 ;;; on drag events, calling drag-n-drop code if detected. Ughhh... | 2754 ;;; on drag events, calling drag-n-drop code if detected. Ughhh... |
2759 (defun idlwave-default-mouse-track-event-is-with-button (event n) | 2755 (defun idlwave-default-mouse-track-event-is-with-button (event n) |
2760 t) | 2756 t) |
2761 | 2757 |
2762 (defun idlwave-xemacs-hack-mouse-track (event) | 2758 (defun idlwave-xemacs-hack-mouse-track (event) |
2763 (let ((oldfunc (symbol-function 'default-mouse-track-event-is-with-button))) | 2759 (if (featurep 'xemacs) |
2764 (unwind-protect | 2760 (let ((oldfunc (symbol-function 'default-mouse-track-event-is-with-button))) |
2765 (progn | 2761 (unwind-protect |
2766 (fset 'default-mouse-track-event-is-with-button | 2762 (progn |
2767 'idlwave-default-mouse-track-event-is-with-button) | 2763 (fset 'default-mouse-track-event-is-with-button |
2768 (mouse-track event)) | 2764 'idlwave-default-mouse-track-event-is-with-button) |
2769 (fset 'default-mouse-track-event-is-with-button oldfunc)))) | 2765 (mouse-track event)) |
2766 (fset 'default-mouse-track-event-is-with-button oldfunc))))) | |
2770 ;;; End terrible hack section | 2767 ;;; End terrible hack section |
2771 | 2768 |
2772 (defun idlwave-shell-mouse-print (event) | 2769 (defun idlwave-shell-mouse-print (event) |
2773 "Print value of variable at the mouse position, with `help'" | 2770 "Print value of variable at the mouse position, with `help'" |
2774 (interactive "e") | 2771 (interactive "e") |