tumashu/posframe

fail to initialize Org-mode in posframe

randomwangran opened this issue · 4 comments

Dear the maintainers of posframe:

Thank for writing this package, I use ivy-posframe everyday and
enjoy using it.

I am writing this issue because that I try to insert a standard
Org-mode link into posframe. I've searched the issue but could not
find anything related to it.

Following is a simple example.

(setq my-posframe-buffer " *my-posframe-buffer*")

(with-current-buffer (get-buffer-create my-posframe-buffer)
 (erase-buffer)
 (insert "* [[Org-mode link]]")
 (org-mode))

(when (posframe-workable-p)
 (posframe-show my-posframe-buffer
                :position (point)))

What I want to do is to insert a standard Org-mode link in posframe,
but it only shows the plain text on my side.

I was wondering that if this is achievable in posframe?

Thank you.

I have tested with your code, and work, maybe you can test with emacs -Q :-)

截图_2020-12-21_09-11-07

That's amazing! I will test it and report it later.

I've tested with emacs -q but it does not repeat your screen.

Emacs, OS info, and desktop info are shown in the following figure.

image

If the buffer name is not start with " * ", Org-mode can be initialized, as the discussion in emacs-china.org.

Thanks for your help.