;;; em-term.el --- running visual commands
-;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+;; 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
;; Author: John Wiegley <johnw@gnu.org>
;; This file is part of GNU Emacs.
-;; GNU Emacs is free software; you can redistribute it and/or modify
+;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 3, or (at your option)
-;; any later version.
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-;; Boston, MA 02110-1301, USA.
+;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
(eval-when-compile (require 'eshell))
(require 'term)
-(defgroup eshell-term nil
+;;;###autoload
+(eshell-defgroup eshell-term nil
"This module causes visual commands (e.g., 'vi') to be executed by
the `term' package, which comes with Emacs. This package handles most
of the ANSI control codes, allowing curses-based applications to run
;;; User Variables:
(defcustom eshell-term-load-hook '(eshell-term-initialize)
- "*A list of functions to call when loading `eshell-term'."
+ "A list of functions to call when loading `eshell-term'."
:type 'hook
:group 'eshell-term)
"less" "more" ; M-x view-file
"lynx" "ncftp" ; w3.el, ange-ftp
"pine" "tin" "trn" "elm") ; GNUS!!
- "*A list of commands that present their output in a visual fashion."
+ "A list of commands that present their output in a visual fashion."
:type '(repeat string)
:group 'eshell-term)
(defcustom eshell-term-name "eterm"
- "*Name to use for the TERM variable when running visual commands.
+ "Name to use for the TERM variable when running visual commands.
See `term-term-name' in term.el for more information on how this is
used."
:type 'string
:group 'eshell-term)
(defcustom eshell-escape-control-x t
- "*If non-nil, allow <C-x> to be handled by Emacs key in visual buffers.
+ "If non-nil, allow <C-x> to be handled by Emacs key in visual buffers.
See the variable `eshell-visual-commands'. If this variable is set to
nil, <C-x> will send that control character to the invoked process."
:type 'boolean
; without any interpretation."
; (interactive)
; ;; Convert `return' to C-m, etc.
-; (if (and (symbolp last-input-char)
-; (get last-input-char 'ascii-character))
-; (setq last-input-char (get last-input-char 'ascii-character)))
-; (eshell-term-send-raw-string (make-string 1 last-input-char)))
+; (if (and (symbolp last-input-event)
+; (get last-input-event 'ascii-character))
+; (setq last-input-event (get last-input-event 'ascii-character)))
+; (eshell-term-send-raw-string (make-string 1 last-input-event)))
; (defun eshell-term-send-raw-meta ()
; (interactive)
-; (if (symbolp last-input-char)
+; (if (symbolp last-input-event)
; ;; Convert `return' to C-m, etc.
-; (let ((tmp (get last-input-char 'event-symbol-elements)))
+; (let ((tmp (get last-input-event 'event-symbol-elements)))
; (if tmp
-; (setq last-input-char (car tmp)))
-; (if (symbolp last-input-char)
+; (setq last-input-event (car tmp)))
+; (if (symbolp last-input-event)
; (progn
-; (setq tmp (get last-input-char 'ascii-character))
-; (if tmp (setq last-input-char tmp))))))
-; (eshell-term-send-raw-string (if (and (numberp last-input-char)
-; (> last-input-char 127)
-; (< last-input-char 256))
-; (make-string 1 last-input-char)
-; (format "\e%c" last-input-char))))
+; (setq tmp (get last-input-event 'ascii-character))
+; (if tmp (setq last-input-event tmp))))))
+; (eshell-term-send-raw-string (if (and (numberp last-input-event)
+; (> last-input-event 127)
+; (< last-input-event 256))
+; (make-string 1 last-input-event)
+; (format "\e%c" last-input-event))))
; (defun eshell-term-mouse-paste (click arg)
; "Insert the last stretch of killed text at the position clicked on."
; (if (boundp 'xemacs-logo)
; (eshell-term-send-raw-string
; (or (condition-case () (x-get-selection) (error ()))
-; (x-get-cutbuffer)
-; (error "No selection or cut buffer available")))
+; (error "No selection available")))
; ;; Give temporary modes such as isearch a chance to turn off.
; (run-hooks 'mouse-leave-buffer-hook)
; (setq this-command 'yank)
(provide 'em-term)
-;;; arch-tag: ab7c8fe4-3101-4257-925b-1354c6b2fe9d
+;; Local Variables:
+;; generated-autoload-file: "esh-groups.el"
+;; End:
+
;;; em-term.el ends here