haskell / haskell/haskell-mode

beginning-of-defun-function and end-of-defun-function go too far

Open
#624 9 comments 0 reactions 0 assignees View on GitHub
well-defined-task
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

`beginning-of-defun-function` should put cursor in column 0 where the definition begins (currently it puts it at the end of line the line before).

`end-of-defun-function` should put cursor in column 0 after last line of the definition (currently it can go many empty lines below it).

Contributor guide

Open the contributing guide

Research direction

Locate the implementations of beginning-of-defun-function and end-of-defun-function, then inspect how each positions the cursor at definition boundaries. Confirm the behavior with definitions that have preceding or trailing empty lines; done means both functions stop in column 0 at the specified boundary without overshooting.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs, emacs-lisp
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.