Mercurial > emacs
comparison lisp/term.el @ 92493:402ee2cfca27
* bindings.el (mode-line-remote): Add mouse-face. Improve tooltip.
(standard-mode-line-position): Add mouse-face.
* progmodes/compile.el (compilation-menu-map):
(compilation-mode-map):
* progmodes/grep.el (grep-mode-map): Add :help.
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Define and
initialize in one step. Add :help. Use :enable to activate menu
items. Show the key binding for edebug-defun.
(lisp-interaction-mode-map): Add a menu.
* term.el (term-mode-map): Define and initialize in one step.
* ediff-init.el (ediff-color-display-p): Simplify.
(Xor): Remove unused function.
(ediff-with-syntax-table): Simplify for emacs.
* ediff-hook.el (menu-bar-ediff-menu): Don't depend on the
menu-bar being loaded, it always is.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Wed, 05 Mar 2008 04:09:24 +0000 |
parents | 606f2d163a64 |
children | 44fab469d68d |
comparison
equal
deleted
inserted
replaced
92492:dbef59debced | 92493:402ee2cfca27 |
---|---|
619 `process-kill-without-query'). In contrast, `term-mode-hook' is only | 619 `process-kill-without-query'). In contrast, `term-mode-hook' is only |
620 executed once when the buffer is created." | 620 executed once when the buffer is created." |
621 :type 'hook | 621 :type 'hook |
622 :group 'term) | 622 :group 'term) |
623 | 623 |
624 (defvar term-mode-map nil) | 624 (defvar term-mode-map |
625 (let ((map (make-sparse-keymap))) | |
626 (define-key map "\ep" 'term-previous-input) | |
627 (define-key map "\en" 'term-next-input) | |
628 (define-key map "\er" 'term-previous-matching-input) | |
629 (define-key map "\es" 'term-next-matching-input) | |
630 (unless (featurep 'xemacs) | |
631 (define-key map [?\A-\M-r] | |
632 'term-previous-matching-input-from-input) | |
633 (define-key map [?\A-\M-s] 'term-next-matching-input-from-input)) | |
634 (define-key map "\e\C-l" 'term-show-output) | |
635 (define-key map "\C-m" 'term-send-input) | |
636 (define-key map "\C-d" 'term-delchar-or-maybe-eof) | |
637 (define-key map "\C-c\C-a" 'term-bol) | |
638 (define-key map "\C-c\C-u" 'term-kill-input) | |
639 (define-key map "\C-c\C-w" 'backward-kill-word) | |
640 (define-key map "\C-c\C-c" 'term-interrupt-subjob) | |
641 (define-key map "\C-c\C-z" 'term-stop-subjob) | |
642 (define-key map "\C-c\C-\\" 'term-quit-subjob) | |
643 (define-key map "\C-c\C-m" 'term-copy-old-input) | |
644 (define-key map "\C-c\C-o" 'term-kill-output) | |
645 (define-key map "\C-c\C-r" 'term-show-output) | |
646 (define-key map "\C-c\C-e" 'term-show-maximum-output) | |
647 (define-key map "\C-c\C-l" 'term-dynamic-list-input-ring) | |
648 (define-key map "\C-c\C-n" 'term-next-prompt) | |
649 (define-key map "\C-c\C-p" 'term-previous-prompt) | |
650 (define-key map "\C-c\C-d" 'term-send-eof) | |
651 (define-key map "\C-c\C-k" 'term-char-mode) | |
652 (define-key map "\C-c\C-j" 'term-line-mode) | |
653 (define-key map "\C-c\C-q" 'term-pager-toggle) | |
654 | |
655 ;; ;; completion: | |
656 ;; (define-key map [menu-bar completion] | |
657 ;; (cons "Complete" (make-sparse-keymap "Complete"))) | |
658 ;; (define-key map [menu-bar completion complete-expand] | |
659 ;; '("Expand File Name" . term-replace-by-expanded-filename)) | |
660 ;; (define-key map [menu-bar completion complete-listing] | |
661 ;; '("File Completion Listing" . term-dynamic-list-filename-completions)) | |
662 ;; (define-key map [menu-bar completion complete-file] | |
663 ;; '("Complete File Name" . term-dynamic-complete-filename)) | |
664 ;; (define-key map [menu-bar completion complete] | |
665 ;; '("Complete Before Point" . term-dynamic-complete)) | |
666 ;; ;; Put them in the menu bar: | |
667 ;; (setq menu-bar-final-items (append '(terminal completion inout signals) | |
668 ;; menu-bar-final-items)) | |
669 map)) | |
670 | |
625 (defvar term-raw-map nil | 671 (defvar term-raw-map nil |
626 "Keyboard map for sending characters directly to the inferior process.") | 672 "Keyboard map for sending characters directly to the inferior process.") |
627 (defvar term-escape-char nil | 673 (defvar term-escape-char nil |
628 "Escape character for char sub-mode of term mode. | 674 "Escape character for char sub-mode of term mode. |
629 Do not change it directly; use `term-set-escape-char' instead.") | 675 Do not change it directly; use `term-set-escape-char' instead.") |
722 '("Terminal" | 768 '("Terminal" |
723 [ "Character mode" term-char-mode (term-in-line-mode)] | 769 [ "Character mode" term-char-mode (term-in-line-mode)] |
724 [ "Line mode" term-line-mode (term-in-char-mode)] | 770 [ "Line mode" term-line-mode (term-in-char-mode)] |
725 [ "Enable paging" term-pager-toggle (not term-pager-count)] | 771 [ "Enable paging" term-pager-toggle (not term-pager-count)] |
726 [ "Disable paging" term-pager-toggle term-pager-count]))) | 772 [ "Disable paging" term-pager-toggle term-pager-count]))) |
727 | |
728 (unless term-mode-map | |
729 (setq term-mode-map (make-sparse-keymap)) | |
730 (define-key term-mode-map "\ep" 'term-previous-input) | |
731 (define-key term-mode-map "\en" 'term-next-input) | |
732 (define-key term-mode-map "\er" 'term-previous-matching-input) | |
733 (define-key term-mode-map "\es" 'term-next-matching-input) | |
734 (unless (featurep 'xemacs) | |
735 (define-key term-mode-map [?\A-\M-r] | |
736 'term-previous-matching-input-from-input) | |
737 (define-key term-mode-map [?\A-\M-s] 'term-next-matching-input-from-input)) | |
738 (define-key term-mode-map "\e\C-l" 'term-show-output) | |
739 (define-key term-mode-map "\C-m" 'term-send-input) | |
740 (define-key term-mode-map "\C-d" 'term-delchar-or-maybe-eof) | |
741 (define-key term-mode-map "\C-c\C-a" 'term-bol) | |
742 (define-key term-mode-map "\C-c\C-u" 'term-kill-input) | |
743 (define-key term-mode-map "\C-c\C-w" 'backward-kill-word) | |
744 (define-key term-mode-map "\C-c\C-c" 'term-interrupt-subjob) | |
745 (define-key term-mode-map "\C-c\C-z" 'term-stop-subjob) | |
746 (define-key term-mode-map "\C-c\C-\\" 'term-quit-subjob) | |
747 (define-key term-mode-map "\C-c\C-m" 'term-copy-old-input) | |
748 (define-key term-mode-map "\C-c\C-o" 'term-kill-output) | |
749 (define-key term-mode-map "\C-c\C-r" 'term-show-output) | |
750 (define-key term-mode-map "\C-c\C-e" 'term-show-maximum-output) | |
751 (define-key term-mode-map "\C-c\C-l" 'term-dynamic-list-input-ring) | |
752 (define-key term-mode-map "\C-c\C-n" 'term-next-prompt) | |
753 (define-key term-mode-map "\C-c\C-p" 'term-previous-prompt) | |
754 (define-key term-mode-map "\C-c\C-d" 'term-send-eof) | |
755 (define-key term-mode-map "\C-c\C-k" 'term-char-mode) | |
756 (define-key term-mode-map "\C-c\C-j" 'term-line-mode) | |
757 (define-key term-mode-map "\C-c\C-q" 'term-pager-toggle) | |
758 | |
759 ; ;; completion: | |
760 ; (define-key term-mode-map [menu-bar completion] | |
761 ; (cons "Complete" (make-sparse-keymap "Complete"))) | |
762 ; (define-key term-mode-map [menu-bar completion complete-expand] | |
763 ; '("Expand File Name" . term-replace-by-expanded-filename)) | |
764 ; (define-key term-mode-map [menu-bar completion complete-listing] | |
765 ; '("File Completion Listing" . term-dynamic-list-filename-completions)) | |
766 ; (define-key term-mode-map [menu-bar completion complete-file] | |
767 ; '("Complete File Name" . term-dynamic-complete-filename)) | |
768 ; (define-key term-mode-map [menu-bar completion complete] | |
769 ; '("Complete Before Point" . term-dynamic-complete)) | |
770 ; ;; Put them in the menu bar: | |
771 ; (setq menu-bar-final-items (append '(terminal completion inout signals) | |
772 ; menu-bar-final-items)) | |
773 ) | |
774 | 773 |
775 ;; Menu bars: | 774 ;; Menu bars: |
776 (unless (featurep 'xemacs) | 775 (unless (featurep 'xemacs) |
777 ;; terminal: | 776 ;; terminal: |
778 (let (newmap) | 777 (let (newmap) |