GNU bug report logs -
#20897
25.0.50; [python] sexp-movement are confusing
Previous Next
Reported by: Rasmus <rasmus <at> gmx.us>
Date: Thu, 25 Jun 2015 15:55:02 UTC
Severity: minor
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #32 received at 20897 <at> debbugs.gnu.org (full text, mbox):
Rasmus <rasmus <at> gmx.us> writes:
> Open test.py
>
> Insert something like this, ignoring point denoted by "{v,^} {1,...,5}".
>
> 4 5 6
> v v v
> def foo(x):
> """return x as one"""
>
> x = 1;
>
> return(x)
> ^ ^ ^
> 2 3 1
>
> Consider points 1,...,5. At point 2 forward-sexp will go to point 1, at
> point 3 backward-sexp will go to point 2. At point 1, sexp-backward will
> go to 4 rather than point 2 (as I would expect). Likewise, at point 4,
> forward sexp goes to point 1 rather than 5. At point five, everything is
> as I would expect, and {forward,backward}-sexp goes to 6 and 4.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Point movement at 2 has been fixed -- it now goes to 3 (in Emacs 29),
not 1.
As for the other points here -- that C-M-<right> at 4 shouldn't move to
1 -- I think that would be pretty surprising. That is, these commands
(try to) move by semantic unit, which is ambiguous in languages like
Python, so people have differing opinions. But as far as I can tell,
python-mode here works as designed, so I'm therefore closing this bug
report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 167 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.