~habnabit/+junk/python-mode

« back to all changes in this revision

Viewing changes to python-mode.el

  • Committer: Andreas Roehler
  • Date: 2010-04-17 10:21:46 UTC
  • mto: This revision was merged to the branch mainline in revision 357.
  • Revision ID: andreas.roehler@online.de-20100417102146-jq535i9a6d9o4pwq
rename py-goto-block-up py-beginning-of-block

> >py-goto-block-up (&optional nomark)
> >  "Move up to start of current block.
> >Go to the statement that starts the smallest enclosing block; roughly
> >speaking, this will be the closest preceding statement that ends with a
> >colon and is indented less than the statement you started on....
> >"
> >
> >IMHO it should rather be named into something like
> >`py-goto-beginning-of-block'
> >
> >while `py-goto-block-up' indicates a higher level.

Sure, I think this renaming makes sense.  FWIW, I rarely use this command.  ;) 

-Barry

Show diffs side-by-side

added added

removed removed

Lines of Context:
2653
2653
      (if (> count 0) (goto-char start)))
2654
2654
    count))
2655
2655
 
2656
 
(defun py-goto-block-up (&optional nomark)
2657
 
  "Move up to start of current block.
 
2656
(defalias 'py-goto-block-up 'py-beginning-of-block)
 
2657
(defun py-beginning-of-block (&optional nomark)
 
2658
  "Move to start of current block.
2658
2659
Go to the statement that starts the smallest enclosing block; roughly
2659
2660
speaking, this will be the closest preceding statement that ends with a
2660
2661
colon and is indented less than the statement you started on.  If