Radon Rosborough

Results 593 comments of Radon Rosborough

Probably take the region, copy it to a temporary buffer, call `apheleia-format-buffer` as a subroutine, then in the callback copy the formatted text back and replace the region if it...

Ok, but how are you going to get point in the middle of an active region in the first place? By definition, point is at either the beginning or end...

This seems like a reasonable feature to want implemented. I'll leave it open, although I don't anticipate working on it anytime soon.

This feature can be implemented in the following way: the format-region command sets two markers, one for the beginning of the region and one for the end of the region....

Yep, I think that would be fantastic. See also https://github.com/lassik/emacs-format-all-the-code/issues/170, and specifically https://github.com/lassik/emacs-format-all-the-code/issues/170#issuecomment-1079740651, where I propose importing also the formatter definitions from format-all into the Apheleia format (or, really, into...

> doesn't seem like a core apheleia thing Well, it kind of is insofar as they're required for basic operation if they are used in the default `apheleia-formatters` alist. But,...

That also seems fine to me. The interface to external callers is just that they will load `apheleia.el` and expect functions to be available, so as long as we load...

This seems like a fine addition. I'd suggest implementing it as two different components which can then be combined together to form a complete solution: * the ability to limit...

I think that's perfectly reasonable---there is a failure condition, but it's the kind of thing that makes a lot of sense in hindsight (what else did you expect the software...

I agree with that assessment. Thanks for the suggestion!