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
f2389a0b
Kaydet (Commit)
f2389a0b
authored
Nis 08, 1996
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
(py-indent-right, py-outdent-left): fixed placement of point after
adjustments.
üst
43ecf8ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
python-mode.el
Misc/python-mode.el
+22
-16
No files found.
Misc/python-mode.el
Dosyayı görüntüle @
f2389a0b
...
...
@@ -507,13 +507,15 @@ current line."
(
if
m
(
list
(
min
p
m
)
(
max
p
m
)
arg
)
(
list
p
m
arg
))))
(
let
((
pos
(
-
(
point-max
)
(
point
)))
(
end
(
save-excursion
(
goto-char
(
or
end
(
1+
start
)))
(
and
(
not
(
bolp
))
(
forward-line
1
))
(
set-marker
(
make-marker
)
(
point
))))
col
want
indent
)
(
let*
((
dir
(
=
(
point
)
start
))
(
pos
(
if
dir
(
point
)
(
-
(
point-max
)
(
point
))))
(
end
(
save-excursion
(
goto-char
(
or
end
(
1+
start
)))
(
and
(
not
(
bolp
))
(
forward-line
1
))
(
set-marker
(
make-marker
)
(
point
))))
col
want
indent
)
(
goto-char
start
)
(
beginning-of-line
)
(
unwind-protect
...
...
@@ -528,7 +530,8 @@ current line."
(
indent-to
(
+
col
want
))))
(
forward-line
1
))
(
set-marker
end
nil
))
(
goto-char
(
-
(
point-max
)
pos
))
(
goto-char
(
if
dir
pos
(
-
(
point-max
)
pos
)))
(
py-keep-region-active
)))
(
defun
py-outdent-left
(
start
end
arg
)
...
...
@@ -543,13 +546,15 @@ the current line."
(
if
m
(
list
(
min
p
m
)
(
max
p
m
)
arg
)
(
list
p
m
arg
))))
(
let
((
pos
(
-
(
point-max
)
(
point
)))
(
end
(
save-excursion
(
goto-char
(
or
end
(
1+
start
)))
(
and
(
not
(
bolp
))
(
forward-line
1
))
(
set-marker
(
make-marker
)
(
point
))))
col
want
)
(
let*
((
dir
(
=
(
point
)
start
))
(
pos
(
if
dir
(
point
)
(
-
(
point-max
)
(
point
))))
(
end
(
save-excursion
(
goto-char
(
or
end
(
1+
start
)))
(
and
(
not
(
bolp
))
(
forward-line
1
))
(
set-marker
(
make-marker
)
(
point
))))
col
want
)
(
goto-char
start
)
(
beginning-of-line
)
(
unwind-protect
...
...
@@ -563,7 +568,8 @@ the current line."
(
indent-to
(
-
col
want
))))
(
forward-line
1
))
(
set-marker
end
nil
))
(
goto-char
(
-
(
point-max
)
pos
))
(
goto-char
(
if
dir
pos
(
-
(
point-max
)
pos
)))
(
py-keep-region-active
)))
...
...
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