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

beginning-/end-of-defun should move out of the *top-level* construct #76

Open
dvdhansen opened this issue May 29, 2019 · 3 comments
Open

Comments

@dvdhansen
Copy link

The Emacs manual is quite clear about this:

These commands move point or set up the region based on top-level
major definitions, also called “defuns”.

(emacs) Moving by Defuns

In interactive programming jupyter-eval-defun (or whatever method
you use) should eval the current top-level construct. This may be a
function but could also be a type definition or whatever.
*-eval-defun relies on beginning-/end-of-defun.

@nverno
Copy link
Contributor

nverno commented May 29, 2019

This is often not the case, eg. python-mode. But, the beg/end-of-defun functions are buggy

@dvdhansen
Copy link
Author

dvdhansen commented May 29, 2019 via email

@nverno
Copy link
Contributor

nverno commented May 29, 2019

I agree with you about -*eval-defun. I don't think there is a general consensus on the beg/end-of-defun functions with respect to nested functions? I just ported python's implementation given the language similarities (although it is obviously buggy, I just haven't been using Julia for a while so haven't been inclined to fix it).

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

No branches or pull requests

2 participants