Kaydet (Commit) 4da6bd51 authored tarafından Barry Warsaw's avatar Barry Warsaw

(py-mark-def-or-class): Added an exchange-point-and-mark and a

py-keep-region-active so that the marked def/class gets the
zmacs-region or transient-mark region highlighted.  Also point should
be left at the end of the marked region.

(py-mode-map): Moved py-mark-def-or-class to M-C-h to conform to Emacs
major mode standards.
üst e467bfbf
...@@ -462,7 +462,7 @@ Currently-active file is at the head of the list.") ...@@ -462,7 +462,7 @@ Currently-active file is at the head of the list.")
(define-key py-mode-map [delete] 'py-electric-delete) (define-key py-mode-map [delete] 'py-electric-delete)
(define-key py-mode-map [backspace] 'py-electric-backspace)) (define-key py-mode-map [backspace] 'py-electric-backspace))
;; marking interesting locations ;; marking interesting locations
(define-key py-mode-map "\C-c\C-m" 'py-mark-def-or-class) (define-key py-mode-map "\e\C-h" 'py-mark-def-or-class)
(define-key py-mode-map "\C-c\C-k" 'py-mark-block) (define-key py-mode-map "\C-c\C-k" 'py-mark-block)
;; Miscellaneous ;; Miscellaneous
(define-key py-mode-map "\C-c:" 'py-guess-indent-offset) (define-key py-mode-map "\C-c:" 'py-guess-indent-offset)
...@@ -2049,7 +2049,9 @@ pleasant." ...@@ -2049,7 +2049,9 @@ pleasant."
(re-search-backward "^[ \t]*[^ \t#]" nil 'move) (re-search-backward "^[ \t]*[^ \t#]" nil 'move)
(forward-line 1)) (forward-line 1))
;; no comment, so go back ;; no comment, so go back
(goto-char start)))))))) (goto-char start)))))))
(exchange-point-and-mark)
(py-keep-region-active))
;; ripped from cc-mode ;; ripped from cc-mode
(defun py-forward-into-nomenclature (&optional arg) (defun py-forward-into-nomenclature (&optional arg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment