[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c43e1cf 08/24: Add `lv-delete-window' function
From: |
Oleh Krehel |
Subject: |
[elpa] master c43e1cf 08/24: Add `lv-delete-window' function |
Date: |
Fri, 01 May 2015 14:27:12 +0000 |
branch: master
commit c43e1cfcefc03b8ca8f5529a3e3b76e5244031dc
Author: Jonas Bernoulli <address@hidden>
Commit: Oleh Krehel <address@hidden>
Add `lv-delete-window' function
* lv.el (lv-delete-window): New defun.
* hydra.el (hydra-keyboard-quit): Use it.
---
hydra.el | 5 +----
lv.el | 7 +++++++
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/hydra.el b/hydra.el
index bd5640c..dcfb7bc 100644
--- a/hydra.el
+++ b/hydra.el
@@ -388,10 +388,7 @@ Return DEFAULT if PROP is not in H."
(cancel-timer hydra-timeout-timer)
(cancel-timer hydra-message-timer)
(if hydra-lv
- (when (window-live-p lv-wnd)
- (let ((buf (window-buffer lv-wnd)))
- (delete-window lv-wnd)
- (kill-buffer buf)))
+ (lv-delete-window)
(message ""))
nil)
diff --git a/lv.el b/lv.el
index ee5a739..69e8497 100644
--- a/lv.el
+++ b/lv.el
@@ -73,6 +73,13 @@
(goto-char (point-min))
(select-window ori)))
+(defun lv-delete-window ()
+ "Delete LV window and kill its buffer."
+ (when (window-live-p lv-wnd)
+ (let ((buf (window-buffer lv-wnd)))
+ (delete-window lv-wnd)
+ (kill-buffer buf))))
+
(provide 'lv)
;;; lv.el ends here
- [elpa] master updated (d183352 -> fddedd2), Oleh Krehel, 2015/05/01
- [elpa] master 8ded725 01/24: hydra.el (hydra--input-method-function): Move before first use, Oleh Krehel, 2015/05/01
- [elpa] master 8be0bff 02/24: hydra-examples.el: Add a defvar, Oleh Krehel, 2015/05/01
- [elpa] master 192c5b0 03/24: Allow heads to conditionally exit, Oleh Krehel, 2015/05/01
- [elpa] master ad8def1 04/24: Match e.g. "C-d C-o" in docstring, Oleh Krehel, 2015/05/01
- [elpa] master f472834 05/24: hydra.el (hydra--format): Be non-greedy with width spec, Oleh Krehel, 2015/05/01
- [elpa] master 0b1b966 06/24: hydra.el (hydra-face-teal): Fixup doc, Oleh Krehel, 2015/05/01
- [elpa] master 1601991 07/24: Fix the regex once more and add test, Oleh Krehel, 2015/05/01
- [elpa] master c43e1cf 08/24: Add `lv-delete-window' function,
Oleh Krehel <=
- [elpa] master b9d0687 09/24: Update `outline-regexp' and `indent-tabs-mode' file locals, Oleh Krehel, 2015/05/01
- [elpa] master 01248b1 10/24: Use one less ; for local vars, Oleh Krehel, 2015/05/01
- [elpa] master 00d2c0c 11/24: Add lv-force-update, Oleh Krehel, 2015/05/01
- [elpa] master 824f105 12/24: Optionally separate lv window and echo area using a thin line, Oleh Krehel, 2015/05/01
- [elpa] master dd02b16 13/24: .dir-locals.el: Add, Oleh Krehel, 2015/05/01
- [elpa] master bf48e63 14/24: lv.el (lv-force-update): Be nil by default, Oleh Krehel, 2015/05/01
- [elpa] master 0ae560a 15/24: lv.el (lv-message): Use `lv-use-separator', Oleh Krehel, 2015/05/01
- [elpa] master 270c38b 16/24: Add a work-around for pop-to-buffer / dedicated bug, Oleh Krehel, 2015/05/01
- [elpa] master 8db62bf 17/24: Make *LV* window fixed size, Oleh Krehel, 2015/05/01
- [elpa] master 6524a2c 19/24: hydra.el (hydra-fontify-head-default): Fixup, Oleh Krehel, 2015/05/01