comparison lisp/progmodes/python.el @ 90200:f9a65d7ebd29

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-68 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 459-473) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 86-87) - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 07 Jul 2005 12:43:14 +0000
parents bb71c6cf2009 18a818a2ee7c
children a3716f7538f2
comparison
equal deleted inserted replaced
90199:bb71c6cf2009 90200:f9a65d7ebd29
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details. 20 ;; GNU General Public License for more details.
21 21
22 ;; You should have received a copy of the GNU General Public License 22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to 23 ;; along with GNU Emacs; see the file COPYING. If not, write to
24 ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 24 ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 ;; Boston, MA 02111-1307, USA. 25 ;; Boston, MA 02110-1301, USA.
26 26
27 ;;; Commentary: 27 ;;; Commentary:
28 28
29 ;; Major mode for editing Python, with support for inferior processes. 29 ;; Major mode for editing Python, with support for inferior processes.
30 30
68 (require 'compile) 68 (require 'compile)
69 (autoload 'info-lookup-maybe-add-help "info-look")) 69 (autoload 'info-lookup-maybe-add-help "info-look"))
70 (autoload 'compilation-start "compile") 70 (autoload 'compilation-start "compile")
71 71
72 (defgroup python nil 72 (defgroup python nil
73 "Silly walks in the Python language" 73 "Silly walks in the Python language."
74 :group 'languages 74 :group 'languages
75 :version "22.1" 75 :version "22.1"
76 :link '(emacs-commentary-link "python")) 76 :link '(emacs-commentary-link "python"))
77 77
78 ;;;###autoload 78 ;;;###autoload
1065 (add-hook 'comint-preoutput-filter-functions #'python-preoutput-filter 1065 (add-hook 'comint-preoutput-filter-functions #'python-preoutput-filter
1066 nil t) 1066 nil t)
1067 ;; Still required by `comint-redirect-send-command', for instance 1067 ;; Still required by `comint-redirect-send-command', for instance
1068 ;; (and we need to match things like `>>> ... >>> '): 1068 ;; (and we need to match things like `>>> ... >>> '):
1069 (set (make-local-variable 'comint-prompt-regexp) 1069 (set (make-local-variable 'comint-prompt-regexp)
1070 (rx (and line-start (1+ (and (repeat 3 (any ">.")) ?\ ))))) 1070 (rx (and line-start (1+ (and (repeat 3 (any ">.")) ?\s)))))
1071 (set (make-local-variable 'compilation-error-regexp-alist) 1071 (set (make-local-variable 'compilation-error-regexp-alist)
1072 python-compilation-regexp-alist) 1072 python-compilation-regexp-alist)
1073 (compilation-shell-minor-mode 1)) 1073 (compilation-shell-minor-mode 1))
1074 1074
1075 (defcustom inferior-python-filter-regexp "\\`\\s-*\\S-?\\S-?\\s-*\\'" 1075 (defcustom inferior-python-filter-regexp "\\`\\s-*\\S-?\\S-?\\s-*\\'"