Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement going to the beginning of a defun #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Hi-Angel
Copy link
Contributor

@Hi-Angel Hi-Angel commented Nov 5, 2024

This implements support for (beginning-of-defun). As a side note, the match is done inside a single line string because I tried implementing a regexp to make Emacs to restrain to a single line, and it turned out to be very hard. I didn't succeed at that for like ½-hour I spent on that part, and constraining the search artifically turned out not just much easier, but also significantly simplified the regexp.

@Hi-Angel
Copy link
Contributor Author

Hi-Angel commented Nov 5, 2024

What… older Emacses doesn't know anychar in rx. What's that supposed to be then… anything? It said to be an alias

@Hi-Angel
Copy link
Contributor Author

Hi-Angel commented Nov 5, 2024

Okay, anything did work

This implements support for `(beginning-of-defun)`. As a side note,
the match is done inside a single line string because I tried
implementing a regexp to make Emacs to restrain to a single line, and
it turned out to be very hard. I didn't succeed at that for like
½-hour I spent, and constraining the search artifically turned out not
just much easier, but also significantly simplified the regexp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant