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
ce60bc71
Kaydet (Commit)
ce60bc71
authored
Agu 01, 1996
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
(py-keep-region-active): Zap duplicate defun.
üst
6d9cc808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
python-mode.el
Misc/python-mode.el
+6
-11
No files found.
Misc/python-mode.el
Dosyayı görüntüle @
ce60bc71
...
...
@@ -493,12 +493,14 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
(
defun
py-keep-region-active
()
;; Do whatever is necessary to keep the region active in
;; XEmacs 19. This is unnecessary, but no-op in Emacs 19, so just
;; ignore byte-compiler warnings you might see.
;; do whatever is necessary to keep the region active in XEmacs.
;; Ignore byte-compiler warnings you might see. Also note that
;; FSF's Emacs 19 does it differently and doesn't its policy doesn't
;; require us to take explicit action.
(
and
(
boundp
'zmacs-region-stays
)
(
setq
zmacs-region-stays
t
)))
;; electric characters
(
defun
py-outdent-p
()
;; returns non-nil if the current line should outdent one level
...
...
@@ -826,7 +828,7 @@ the new line indented."
((
py-continuation-line-p
)
(
let
((
startpos
(
point
))
(
open-bracket-pos
(
py-nesting-level
))
endpos
searching
found
)
endpos
searching
found
state
)
(
if
open-bracket-pos
(
progn
;; align with first item in list; else a normal
...
...
@@ -2087,13 +2089,6 @@ local bindings to py-newline-and-indent."))
(
set-buffer
cbuf
))
(
sit-for
0
))
(
defun
py-keep-region-active
()
;; do whatever is necessary to keep the region active in XEmacs.
;; Ignore byte-compiler warnings you might see. Also note that
;; FSF's Emacs 19 does it differently and doesn't its policy doesn't
;; require us to take explicit action.
(
and
(
boundp
'zmacs-region-stays
)
(
setq
zmacs-region-stays
t
)))
(
defconst
py-version
"$Revision$"
...
...
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