Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
71884b8d
Commit
71884b8d
authored
Nov 14, 2006
by
Stefan Monnier
Browse files
(inferior-python-mode-syntax-table): New var.
(inferior-python-mode): Use it.
parent
65694d64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/python.el
lisp/progmodes/python.el
+9
-1
No files found.
lisp/ChangeLog
View file @
71884b8d
2006-11-14 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/python.el (inferior-python-mode-syntax-table): New var.
(inferior-python-mode): Use it.
2006-11-14 Andreas Schwab <schwab@suse.de>
* term/xterm.el (terminal-init-xterm): Add more key bindings.
lisp/progmodes/python.el
View file @
71884b8d
...
...
@@ -1194,6 +1194,15 @@ local value.")
;; (define-key map "\C-c\C-f" 'python-describe-symbol)
map
))
(
defvar
inferior-python-mode-syntax-table
(
let
((
st
(
make-syntax-table
python-mode-syntax-table
)))
;; Don't get confused by apostrophes in the process's output (e.g. if
;; you execute "help(os)").
(
modify-syntax-entry
?\'
"."
st
)
;; Maybe we should do the same for double quotes?
;; (modify-syntax-entry ?\" "." st)
st
))
;; Fixme: This should inherit some stuff from `python-mode', but I'm
;; not sure how much: at least some keybindings, like C-c C-f;
;; syntax?; font-locking, e.g. for triple-quoted strings?
...
...
@@ -1216,7 +1225,6 @@ For running multiple processes in multiple buffers, see `run-python' and
\\{inferior-python-mode-map}"
:group
'python
(
set-syntax-table
python-mode-syntax-table
)
(
setq
mode-line-process
'
(
":%s"
))
(
set
(
make-local-variable
'comint-input-filter
)
'python-input-filter
)
(
add-hook
'comint-preoutput-filter-functions
#'
python-preoutput-filter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment