emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 6e308f9 7/8: multishell - include active shell buffers nam


From: ken manheimer
Subject: [elpa] master 6e308f9 7/8: multishell - include active shell buffers names along with history entries.
Date: Fri, 29 Jan 2016 06:41:46 +0000

branch: master
commit 6e308f9f0ed7421baab802faa21dfef53196a39c
Author: Ken Manheimer <address@hidden>
Commit: Ken Manheimer <address@hidden>

    multishell - include active shell buffers names along with history entries.
    
    The effect is that existing shell buffers will complete as both the bare
    names and the name/path forms, while purely history entries will
    complete as just the name/path forms. The difference will provide a cue,
    a kind of lubrication for completing existing buffers.
---
 multishell.el |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/multishell.el b/multishell.el
index dc979f0..2f43752 100644
--- a/multishell.el
+++ b/multishell.el
@@ -519,10 +519,8 @@ Return the supplied name, if provided, else return nil."
                              (and (buffer-live-p buffer)
                                   (with-current-buffer buffer
                                     ;; Shell mode buffers.
-                                    (derived-mode-p 'shell-mode))
-                                  ;; Allow duplicates, as sign of buffers that
-                                  ;; currently exist vs historical entries.
-                                  ;;(not (multishell-history-entries name))
+                                    (and (derived-mode-p 'shell-mode)
+                                         (comint-check-proc (current-buffer))))
                                   name)))
                          (buffer-list)))
            multishell-history))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]