jingtaozf / literate-smalltalk

A literate programming tool to write Smalltalk code in org mode.
Apache License 2.0
6 stars 3 forks source link

Where does (pm-set-buffer) come from? #1

Closed Dima-369 closed 2 years ago

Dima-369 commented 2 years ago

Hey, I am trying this out and wondered about the definition of (pm-set-buffer) as I do not have it on Emacs 29.

Can you provide the definition in literate-smalltalk.org?

Some functions like (literate-smalltalk-completion-candidates) rely on it and I can't use them.

Dima-369 commented 2 years ago

I suppose it is something like this?

(defun pm-set-buffer (point)
    (switch-to-buffer (marker-buffer org-src--beg-marker))
    (goto-char point))
jingtaozf commented 2 years ago

It is a function in package polymode: https://github.com/polymode/polymode/blob/master/polymode-core.el#L1146

Dima-369 commented 2 years ago

Ah, I see. Thanks. I had trouble installing poly-org and so far everything worked pretty well without it.