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
b0539937
Kaydet (Commit)
b0539937
authored
Ara 17, 1996
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
(py-delete-function): new variable
(py-delete-char): funcall py-delete-function.
üst
5c8bef18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
python-mode.el
Misc/python-mode.el
+7
-1
No files found.
Misc/python-mode.el
Dosyayı görüntüle @
b0539937
...
@@ -275,6 +275,9 @@ Currently-active file is at the head of the list.")
...
@@ -275,6 +275,9 @@ Currently-active file is at the head of the list.")
(
and
(
fboundp
'make-obsolete-variable
)
(
and
(
fboundp
'make-obsolete-variable
)
(
make-obsolete-variable
'py-mode-hook
'python-mode-hook
))
(
make-obsolete-variable
'py-mode-hook
'python-mode-hook
))
(
defvar
py-delete-function
'backward-delete-char-untabify
"*Function called by `py-delete-char' when deleting characters."
)
(
defvar
py-mode-map
()
(
defvar
py-mode-map
()
"Keymap used in `python-mode' buffers."
)
"Keymap used in `python-mode' buffers."
)
...
@@ -992,7 +995,10 @@ See the `\\[py-execute-region]' docs for an account of some subtleties."
...
@@ -992,7 +995,10 @@ See the `\\[py-execute-region]' docs for an account of some subtleties."
;; Functions for Python style indentation
;; Functions for Python style indentation
(
defun
py-delete-char
(
count
)
(
defun
py-delete-char
(
count
)
"Reduce indentation or delete character.
"Reduce indentation or delete character.
If point is at the leftmost column, deletes the preceding newline.
If point is at the leftmost column, deletes the preceding newline.
Deletion is performed by calling the function in `py-delete-function'
with a single argument (the number of characters to delete).
Else if point is at the leftmost non-blank character of a line that is
Else if point is at the leftmost non-blank character of a line that is
neither a continuation line nor a non-indenting comment line, or if
neither a continuation line nor a non-indenting comment line, or if
...
@@ -1011,7 +1017,7 @@ argument delets that many characters."
...
@@ -1011,7 +1017,7 @@ argument delets that many characters."
(
py-continuation-line-p
)
(
py-continuation-line-p
)
(
not
py-honor-comment-indentation
)
(
not
py-honor-comment-indentation
)
(
looking-at
"#[^ \t\n]"
))
; non-indenting #
(
looking-at
"#[^ \t\n]"
))
; non-indenting #
(
backward-delete-char-untabify
count
)
(
funcall
py-delete-function
count
)
;; else indent the same as the colon line that opened the block
;; else indent the same as the colon line that opened the block
;; force non-blank so py-goto-block-up doesn't ignore it
;; force non-blank so py-goto-block-up doesn't ignore it
...
...
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