GNU ELPA - posframe


Pop a posframe (just a frame) at point
posframe-0.4.3.el, 2019-Mar-13, 42.2kB
Feng Shu <>
Home page
Browse ELPA's repository
CGit or Gitweb

To install this package, run in Emacs:

M-x package-install RET posframe RET

Full description

* Posframe README                                :README:
** What is posframe
Posframe can pop a posframe at point, this *posframe* is a
child-frame with its root window's buffer.

The main advantages are:
1. It is fast enough for daily usage :-)
2. It works well with CJK language.

NOTE: For MacOS users, posframe need Emacs (version >= 26.0.91)


** Installation

(require 'posframe)

** Usage

*** Create a posframe

**** Simple way
(when (posframe-workable-p)
  (posframe-show " *my-posframe-buffer*"
                 :string "This is a test"
                 :position (point)))

**** Advanced way
(defvar my-posframe-buffer " *my-posframe-buffer*")

(with-current-buffer (get-buffer-create my-posframe-buffer)
  (insert "Hello world"))

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

**** Arguments

C-h f posframe-show

*** Hide a posframe
(posframe-hide " *my-posframe-buffer*")

*** Hide all posframes
M-x posframe-hide-all

*** Delete a posframe
1. Delete posframe and its buffer
   (posframe-delete " *my-posframe-buffer*")
2. Only delete posframe's frame
   (posframe-delete-frame " *my-posframe-buffer*")
*** Delete all posframes
M-x posframe-delete-all

Note: this command will delete all posframe buffers,
suggest not run this command if you are sharing a buffer
between posframe and other packages.

Old versions