GNU bug report logs - #24427
25.1.50; end-of-defun jumps too far

Previous Next

Package: emacs;

Reported by: Marcin Borkowski <mbork <at> mbork.pl>

Date: Tue, 13 Sep 2016 12:54:02 UTC

Severity: normal

Tags: fixed, patch

Found in version 25.1.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 24427 <at> debbugs.gnu.org, Robert Cochran <robert-emacs <at> cochranmail.com>, Marcin Borkowski <mbork <at> mbork.pl>
Subject: bug#24427: 25.1.50; end-of-defun jumps too far
Date: Tue, 11 Aug 2020 16:03:20 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> Not entirely sure if this is correct, but the patch below seems to fix
> it for me, without breaking any of the previously mentioned scenarios.
> I find the fact that end-of-defun goes to the line following the closing
> paren a bit dubious, though I guess since it's been that way so long, we
> can hardly change it now.

[...]

> * lisp/emacs-lisp/lisp.el (end-of-defun): Only skip to next line when
> after end of defun when ARG is 1 or less.
> * test/lisp/emacs-lisp/lisp-tests.el (end-of-defun-twice): New test.

There was no followup on this.  I tested the patch, and it seems to work
for me.  (There's no test failures in "make check" either.)

So I just went ahead and pushed the fix to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 287 days ago.

Previous Next


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