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
a6a714eb
Kaydet (Commit)
a6a714eb
authored
Mar 15, 1995
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
(py-electric-colon): don't indent, only outdent.
üst
1a6c82f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
python-mode.el
Misc/python-mode.el
+6
-4
No files found.
Misc/python-mode.el
Dosyayı görüntüle @
a6a714eb
...
...
@@ -436,10 +436,12 @@ argument is provided, that many colons are inserted non-electrically."
(
py-compute-indentation
)))
)
(
setq
outdent
py-indent-offset
))
;; electric colon won't re-indent lines that start in column
;; zero. you'd have to use TAB for that. TBD: Is there a
;; better way to determine this???
(
if
(
zerop
(
current-indentation
))
nil
;; electric colon won't re-indent lines that start to the left
;; of the current computed indentation, under the assumption
;; that these are already outdented properly. Use TAB, C-c C-l
;; or C-c C-r to adjust. TBD: Is there a better way to
;; determine this???
(
if
(
<
(
current-indentation
)
indent
)
nil
(
goto-char
here
)
(
beginning-of-line
)
(
delete-horizontal-space
)
...
...
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