GNU bug report logs - #13973
thingatpt.el and end-of-sexp in python-mode

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Sat, 16 Mar 2013 07:53:02 UTC

Severity: minor

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 13973 <at> debbugs.gnu.org
Subject: bug#13973: Subject: 24.3; thingatpt.el, end-of-sexp
Date: Wed, 25 Aug 2021 12:38:55 +0200
[Message part 1 (text/plain, inline)]
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> Maybe put the Python code below at the top of some buffer and run the
> test delivered below:
>
> # Python
>
> def main():
>     """Some hint"""
>     if len(sys.argv) == 1:
>         usage()
>
> ;; Elisp
> (defun forward-sexp-text ()
>   (interactive)
>   (goto-char 30 )
>   (forward-sexp))

By that goto-char, do you mean the "S" character?  (It's where point
lands in the buffer included below.)  If so, `forward-sex'
(in Emacs 28) does the correct thing -- it moves to the end of "Some".

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no
[sexp.py (text/x-python, inline)]
# Python

def main():
    """Some hint"""
    if len(sys.argv) == 1:
        usage()

This bug report was last modified 3 years and 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.