[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e12ff84 125/272: counsel.el (counsel-list-processes-action
From: |
Oleh Krehel |
Subject: |
[elpa] master e12ff84 125/272: counsel.el (counsel-list-processes-action-switch): Improve |
Date: |
Mon, 25 Apr 2016 10:13:21 +0000 |
branch: master
commit e12ff84a09a0e796c171cbed036cb9a008f1241d
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-list-processes-action-switch): Improve
Fixes #398
---
counsel.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/counsel.el b/counsel.el
index 258ecbf..083413a 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1559,9 +1559,11 @@ PREFIX is used to create the key."
(delete x ivy--all-candidates))))
(defun counsel-list-processes-action-switch (x)
- (if (get-buffer x)
- (switch-to-buffer x)
- (message "Process %s doesn't have a buffer" x)))
+ (let* ((proc (get-process x))
+ (buf (and proc (process-buffer proc))))
+ (if buf
+ (switch-to-buffer x)
+ (message "Process %s doesn't have a buffer" x))))
;;;###autoload
(defun counsel-list-processes ()
- [elpa] master 142306e 069/272: counsel.el (counsel-git-stash): New command, (continued)
- [elpa] master 142306e 069/272: counsel.el (counsel-git-stash): New command, Oleh Krehel, 2016/04/25
- [elpa] master 7869996 102/272: swiper.el: Remove obsolete faces, Oleh Krehel, 2016/04/25
- [elpa] master ded0923 088/272: Customize ivy-occur per command with ivy-set-occur, Oleh Krehel, 2016/04/25
- [elpa] master 0744f57 139/272: counsel.el (counsel-git-grep-occur): Fix greedy-nongreedy bug, Oleh Krehel, 2016/04/25
- [elpa] master 57b6651 118/272: ivy.el: Fix defcustom :type for several variables, Oleh Krehel, 2016/04/25
- [elpa] master 6fbab50 128/272: swiper.el (swiper-all): Now auto-updates position, Oleh Krehel, 2016/04/25
- [elpa] master 26c8246 131/272: counsel.el (counsel-recoll): add unwind, Oleh Krehel, 2016/04/25
- [elpa] master 87da3a2 132/272: counsel.el (counsel-async-split-string-re): New defvar, Oleh Krehel, 2016/04/25
- [elpa] master 9ffa9c7 121/272: ivy.el (ivy--regex): Don't consider \\(?...\) a group, Oleh Krehel, 2016/04/25
- [elpa] master 71bb1c0 144/272: ivy.el (ivy-alt-done): Simplify, Oleh Krehel, 2016/04/25
- [elpa] master e12ff84 125/272: counsel.el (counsel-list-processes-action-switch): Improve,
Oleh Krehel <=
- [elpa] master 1737ced 064/272: ivy.el (ivy-inhibit-action): New variable, Oleh Krehel, 2016/04/25
- [elpa] master 05a7b61 070/272: ivy.el (ivy--reset-state): Support a list of symbols as collection, Oleh Krehel, 2016/04/25
- [elpa] master 65ec32c 080/272: README.md: mention the manual more prominently, Oleh Krehel, 2016/04/25
- [elpa] master 4af5c2e 115/272: Add `counsel-locate-cmd-mdfind`, Oleh Krehel, 2016/04/25
- [elpa] master 022e658 090/272: When in prog-mode, "M-n" should wrap input with "\b", Oleh Krehel, 2016/04/25
- [elpa] master 9db8308 103/272: counsel.el: Organize the file with outlines, Oleh Krehel, 2016/04/25
- [elpa] master 1c04fb8 126/272: Add ivy-fixed-height-minibuffer, Oleh Krehel, 2016/04/25
- [elpa] master 7a0b243 130/272: Give ivy-read-read-action enough minibuffer space, Oleh Krehel, 2016/04/25
- [elpa] master 708ca11 141/272: ivy.el: Fix a few face declarations, Oleh Krehel, 2016/04/25
- [elpa] master f647bca 136/272: Simplify the ivy-format-function interface, Oleh Krehel, 2016/04/25