diff options
| author | Stefan Monnier | 2009-08-30 14:21:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-08-30 14:21:34 +0000 |
| commit | 844f778432f10657809d45d8381ccfd6daf39e04 (patch) | |
| tree | fe41502a78d55f88fd98a30a0deb7960cd51bf91 | |
| parent | 5ca4661e539741df7da2aed3701e1a4f38c2192d (diff) | |
| download | emacs-844f778432f10657809d45d8381ccfd6daf39e04.tar.gz emacs-844f778432f10657809d45d8381ccfd6daf39e04.zip | |
(internal-ange-ftp-mode): Use define-derived-mode.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 11 |
2 files changed, 4 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4ae65f7feed..23e238b88b8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2009-08-30 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-08-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * net/ange-ftp.el (internal-ange-ftp-mode): Use define-derived-mode. | ||
| 4 | |||
| 3 | * emacs-lisp/easy-mmode.el (define-minor-mode): Don't use symbol-value | 5 | * emacs-lisp/easy-mmode.el (define-minor-mode): Don't use symbol-value |
| 4 | with constant argument. | 6 | with constant argument. |
| 5 | 7 | ||
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 8499a896db6..94525b540b8 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -1968,16 +1968,10 @@ on the gateway machine to do the FTP instead." | |||
| 1968 | (accept-process-output proc) ;wait for ftp startup message | 1968 | (accept-process-output proc) ;wait for ftp startup message |
| 1969 | proc)) | 1969 | proc)) |
| 1970 | 1970 | ||
| 1971 | (put 'internal-ange-ftp-mode 'mode-class 'special) | 1971 | (define-derived-mode internal-ange-ftp-mode comint-mode "Internal Ange-ftp" |
| 1972 | |||
| 1973 | (defun internal-ange-ftp-mode () | ||
| 1974 | "Major mode for interacting with the FTP process. | 1972 | "Major mode for interacting with the FTP process. |
| 1975 | 1973 | ||
| 1976 | \\{comint-mode-map}" | 1974 | \\{comint-mode-map}" |
| 1977 | (interactive) | ||
| 1978 | (delay-mode-hooks (comint-mode)) | ||
| 1979 | (setq major-mode 'internal-ange-ftp-mode) | ||
| 1980 | (setq mode-name "Internal Ange-ftp") | ||
| 1981 | (make-local-variable 'ange-ftp-process-string) | 1975 | (make-local-variable 'ange-ftp-process-string) |
| 1982 | (setq ange-ftp-process-string "") | 1976 | (setq ange-ftp-process-string "") |
| 1983 | (make-local-variable 'ange-ftp-process-busy) | 1977 | (make-local-variable 'ange-ftp-process-busy) |
| @@ -2001,8 +1995,7 @@ on the gateway machine to do the FTP instead." | |||
| 2001 | ;; ange-ftp has its own ways of handling passwords. | 1995 | ;; ange-ftp has its own ways of handling passwords. |
| 2002 | (setq comint-password-prompt-regexp "\\`a\\`") | 1996 | (setq comint-password-prompt-regexp "\\`a\\`") |
| 2003 | (make-local-variable 'paragraph-start) | 1997 | (make-local-variable 'paragraph-start) |
| 2004 | (setq paragraph-start comint-prompt-regexp) | 1998 | (setq paragraph-start comint-prompt-regexp)) |
| 2005 | (run-mode-hooks 'internal-ange-ftp-mode-hook)) | ||
| 2006 | 1999 | ||
| 2007 | (defcustom ange-ftp-raw-login nil | 2000 | (defcustom ange-ftp-raw-login nil |
| 2008 | "Use raw FTP commands for login, if account password is not nil. | 2001 | "Use raw FTP commands for login, if account password is not nil. |