GNU bug report logs - #57212
29.0.50; [PATCH] Citizen's arrest of end-of-defun-moves-to-eol

Previous Next

Package: emacs;

Reported by: dick.r.chiang <at> gmail.com

Date: Sun, 14 Aug 2022 18:25:01 UTC

Severity: normal

Tags: notabug, patch

Found in version 29.0.50

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: dick.r.chiang <at> gmail.com
Cc: 57212 <at> debbugs.gnu.org
Subject: bug#57212: 29.0.50; [PATCH] Citizen's arrest of end-of-defun-moves-to-eol
Date: Mon, 15 Aug 2022 09:06:29 +0200
dick.r.chiang <at> gmail.com writes:

> -(defvar end-of-defun-moves-to-eol t
> -  "Whether `end-of-defun' moves to eol before doing anything else.
> -Set this to nil if this movement adversely affects the buffer's
> -major mode's decisions about context.")

I'm not much in favour of this variable either, but it fixes a real
problem (that end-of-defun is basically misdesigned -- we move point
before end-of-defun-function, which is just way too DWIM and doesn't
allow you to make end-of-defun-function behave).

A complete redesign would have been better, but I think we're not going
to do that, so I'm closing this bug report.




This bug report was last modified 2 years and 278 days ago.

Previous Next


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