From c0b9d7a5b07720958f92dca5ff06b036ba258944 Mon Sep 17 00:00:00 2001 From: hubisan Date: Sun, 28 Jul 2024 09:54:34 +0200 Subject: [PATCH] woerterbuch-display-in-side-window is a callable function --- woerterbuch.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woerterbuch.el b/woerterbuch.el index c89367b..cf8e155 100644 --- a/woerterbuch.el +++ b/woerterbuch.el @@ -67,7 +67,7 @@ (defcustom woerterbuch-org-buffer-display-function #'pop-to-buffer "Function used to the display the org buffer with the definitions or synonyms. The function takes buffer as argument. -The function `woerterbuch--display-in-side-window' may be used to show the org +The function `woerterbuch-display-in-side-window' may be used to show the org buffer in a side window. Use with `apply-partially' to set the side." :type 'function) @@ -218,7 +218,7 @@ Returns a cons cell with the car being the word and cdr the bounds." (insert-file-contents path) (buffer-string))) -(defun woerterbuch--display-in-side-window (side width buffer) +(defun woerterbuch-display-in-side-window (side width buffer) "Display BUFFER in side window on SIDE specified and select it. Specify WIDTH and HEIGHT or set em to nil to not change it manually." (let* ((alist (list (cons 'side side)))