summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f245821)
Some small "whoops" fixes.
The listing recency change is necessary just in case the hash table used
for culling multishell-list happens to grow beyond the default
allocation during the culling.
;; Copyright (C) 2016 Free Software Foundation, Inc. and Ken Manheimer
;; Author: Ken Manheimer <ken.manheimer@gmail.com>
;; Copyright (C) 2016 Free Software Foundation, Inc. and Ken Manheimer
;; Author: Ken Manheimer <ken.manheimer@gmail.com>
;; Created: 2016 -- first public availability
;; Keywords: processes
;; URL: https://github.com/kenmanheimer/EmacsMultishell
;; Created: 2016 -- first public availability
;; Keywords: processes
;; URL: https://github.com/kenmanheimer/EmacsMultishell
For duplicates, we prefer the ones that have paths."
(let ((tally (make-hash-table :test #'equal))
For duplicates, we prefer the ones that have paths."
(let ((tally (make-hash-table :test #'equal))
+ got name name-order-reversed already)
(mapcar #'(lambda (entry)
(setq name (multishell-name-from-entry entry)
already (gethash name tally nil))
(mapcar #'(lambda (entry)
(setq name (multishell-name-from-entry entry)
already (gethash name tally nil))
+ (when (not already)
+ (push name name-order-reversed))
(when (or (not already) (< (length already) (length entry)))
;; Add new or replace shorter prior entry for name:
(puthash name entry tally)))
entries)
(when (or (not already) (< (length already) (length entry)))
;; Add new or replace shorter prior entry for name:
(puthash name entry tally)))
entries)
- (maphash #'(lambda (key value) (push value got)) tally)
+ (dolist (name name-order-reversed)
+ (push (gethash name tally) got))
;; Copyright (C) 1999-2016 Free Software Foundation, Inc.
;; Author: Ken Manheimer <ken.manheimer@gmail.com>
;; Copyright (C) 1999-2016 Free Software Foundation, Inc.
;; Author: Ken Manheimer <ken.manheimer@gmail.com>
;; Created: 1999 -- first public availability
;; Keywords: processes
;; URL: https://github.com/kenmanheimer/EmacsMultishell
;; Created: 1999 -- first public availability
;; Keywords: processes
;; URL: https://github.com/kenmanheimer/EmacsMultishell
+;; * 2016-02-11 1.1.5 Ken Manheimer:
+;; - Rectify multishell list sorting to preserve recentness
+;; - Increment the actual multishell-version setting, neglected for 1.1.4.
;; * 2016-02-11 1.1.4 Ken Manheimer:
;; - hookup multishell-list as completion help buffer.
;; Mouse and keyboard selections from help listing properly exits
;; * 2016-02-11 1.1.4 Ken Manheimer:
;; - hookup multishell-list as completion help buffer.
;; Mouse and keyboard selections from help listing properly exits
(require 'savehist)
(require 'multishell-list)
(require 'savehist)
(require 'multishell-list)
-(defvar multishell-version "1.1.3")
+(defvar multishell-version "1.1.5")
(defun multishell-version (&optional here)
"Return string describing the loaded multishell version."
(interactive "P")
(defun multishell-version (&optional here)
"Return string describing the loaded multishell version."
(interactive "P")