mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-26
d382d2bfc5* etc/DEBUG (Getting control to the debugger): Fix grammar.687af4c8e8* lisp/vc/vc.el (vc-region-history): log-view-vc-fileset h...43e2aafae3Don't bind dframe events on load (Bug#29599)ab31bf3c5f* lisp/textmodes/picture.el (picture-mode-exit): Doc fix. ...ed44d92fa6* lisp/textmodes/picture.el (picture-open-line): Doc fix. ...b87a772612Fix description of 'emacs-internal'a5256da588Update PROBLEMS with selection-related issuesc59ecb005eNew customization variable for python-mode indentation (Bu...4e20c8f220Fix menu keyboard shortcuts on macOS (Bug#29595) # Conflicts: # etc/NEWS
This commit is contained in:
commit
646c8e56f8
9 changed files with 70 additions and 38 deletions
|
|
@ -752,6 +752,12 @@ It makes underscores and dots word constituent chars.")
|
|||
:type '(repeat symbol)
|
||||
:group 'python)
|
||||
|
||||
(defcustom python-indent-def-block-scale 2
|
||||
"Multiplier applied to indentation inside multi-line def blocks."
|
||||
:version "26.1"
|
||||
:type 'integer
|
||||
:safe 'natnump)
|
||||
|
||||
(defvar python-indent-current-level 0
|
||||
"Deprecated var available for compatibility.")
|
||||
|
||||
|
|
@ -1071,9 +1077,9 @@ possibilities can be narrowed to specific indentation points."
|
|||
(current-indentation)))
|
||||
opening-block-start-points))))
|
||||
(`(,(or :inside-paren-newline-start-from-block) . ,start)
|
||||
;; Add two indentation levels to make the suite stand out.
|
||||
(goto-char start)
|
||||
(+ (current-indentation) (* python-indent-offset 2))))))
|
||||
(+ (current-indentation)
|
||||
(* python-indent-offset python-indent-def-block-scale))))))
|
||||
|
||||
(defun python-indent--calculate-levels (indentation)
|
||||
"Calculate levels list given INDENTATION.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue