Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
014e0e29
Kaydet (Commit)
014e0e29
authored
Kas 17, 1998
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
(py-execute-region): Patch by Hunter Kelly so that execution uses the
correct Python shell (CPython or JPython).
üst
50cd3488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
python-mode.el
Misc/python-mode.el
+4
-4
No files found.
Misc/python-mode.el
Dosyayı görüntüle @
014e0e29
...
...
@@ -1040,8 +1040,8 @@ comint believe the user typed this string so that
(
defun
py-comint-output-filter-function
(
string
)
"Watch output for Python prompt and exec next file waiting in queue.
This function is appropriate for `comint-output-filter-functions'."
;; TBD: this should probably use split-string
(
when
(
and
(
or
(
string-equal
string
">>> "
)
;; NT XEmacs 21.0 kludge
(
and
(
>=
(
length
string
)
5
)
(
string-equal
(
substring
string
-5
)
"\n>>> "
)))
py-file-queue
)
...
...
@@ -1200,7 +1200,7 @@ is inserted at the end. See also the command `py-clear-queue'."
(
interactive
"r\nP"
)
(
or
(
<
start
end
)
(
error
"Region is empty"
))
(
let*
((
proc
(
get-process
"Python"
))
(
let*
((
proc
(
get-process
py-which-bufname
))
(
temp
(
if
(
memq
'broken-temp-names
py-emacs-features
)
(
let
((
sn
py-serial-number
)
...
...
@@ -1216,7 +1216,7 @@ is inserted at the end. See also the command `py-clear-queue'."
;; always run the code in its own asynchronous subprocess
(
async
(
let*
((
buf
(
generate-new-buffer-name
py-output-buffer
)))
(
start-process
"Python"
buf
py-python-command
"-u"
file
)
(
start-process
py-which-bufname
buf
py-which-shell
"-u"
file
)
(
pop-to-buffer
buf
)
(
py-postprocess-output-buffer
buf
)
))
...
...
@@ -1231,7 +1231,7 @@ is inserted at the end. See also the command `py-clear-queue'."
(
setq
py-exception-buffer
(
cons
file
(
current-buffer
))))
(
t
;; otherwise either run it synchronously in a subprocess
(
shell-command-on-region
start
end
py-
python-command
py-output-buffer
)
(
shell-command-on-region
start
end
py-
which-shell
py-output-buffer
)
;; shell-command-on-region kills the output buffer if it never
;; existed and there's no output from the command
(
if
(
not
(
get-buffer
py-output-buffer
))
...
...
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