Skip to content

Emacs function for transposing Prolog terms? #2488

Closed Answered by triska
jjtolton asked this question in Q&A
Discussion options

You must be logged in to vote

We can write rather ad hoc Elisp functions that do this and work correctly most of the time, or at least much of the time, or maybe rather: some of the time, or maybe I should say: There is at least one type of situation where they work correctly. Please see below for a suggestion in this direction, for transposing goals in a way that sometimes works correctly.

This is an interesting challenge, and I think it would be good to really think about this: How can we truly solve this so that it always works correctly? For example, can the Scryer parser communicate useful information about term positions to Emacs? What is the minimum that needs to be conveyed so that a function can be written th…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jjtolton
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jjtolton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants