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

Change (setf (point) ...) to (goto-char ...) #112

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

Conversation

polaris64
Copy link
Contributor

Emacs version 29.0.50 has deprecated the use of forms such as (setf (point) n). The warning emitted is: -

Warning (bytecomp): ‘point’ is an obsolete generalized variable; use ‘goto-char’ instead.

@alphapapa
Copy link
Owner

Frankly, I do not understand why that deprecation was made, and I do not like it. It's a useful paradigm, and I don't see any reason to throw it away.

Anyway, Emacs 29 is yet to be released. So while I appreciate your keeping up with things, I don't want to merge this yet. I'd like to find out why it was done and try to get the decision reversed.

@polaris64
Copy link
Contributor Author

OK that's absolutely fine. The main reason for this PR was to make you aware of the potential issue with Emacs 29 (in case you weren't aware already) and to provide a fix if it ends up needing to be applied.

@alphapapa
Copy link
Owner

FYI, I just posted a message to emacs-devel asking for these generalized variable setters to be un-obsoleted. (Not that I expect they will do so, but at least we can talk about it, I hope.)

And BTW, it's generally better to rebase your PRs than to merge master back into them. It makes for a much simpler commit history.

@polaris64
Copy link
Contributor Author

FYI, I just posted a message to emacs-devel asking for these generalized variable setters to be un-obsoleted. (Not that I expect they will do so, but at least we can talk about it, I hope.)

Thanks for letting me know, yes I just read the conversation so far this morning. I agree with you that the setf form is quite nice to use (makes it feel a bit more like Common Lisp) so it'll be interesting to see what they decide. I also didn't realise that marking something as "obsolete" was the first step in a discussion about whether something should be removed, I thought that had already been discussed and decided upon already!

And BTW, it's generally better to rebase your PRs than to merge master back into them. It makes for a much simpler commit history.

OK no problem, I'll rebase this PR onto the current master in a bit.

Emacs version 29.0.50 has deprecated the use of forms such
as `(setf (point) n)`. The warning emitted is: -

Warning (bytecomp): ‘point’ is an obsolete generalized variable; use
‘goto-char’ instead.
@alphapapa alphapapa added this to the 0.7 milestone Feb 24, 2023
@alphapapa alphapapa self-assigned this Feb 24, 2023
@alphapapa alphapapa removed this from the 0.7 milestone Apr 3, 2023
@alphapapa alphapapa force-pushed the master branch 2 times, most recently from 7d2e0f2 to c0b922b Compare May 14, 2023 04:24
@alphapapa alphapapa added this to the Future milestone Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants