]> code.delx.au - gnu-emacs-elpa/commitdiff
multishell - reduce multishell-primary-name savehist extra fuss
authorKen Manheimer <ken.manheimer@gmail.com>
Tue, 26 Jan 2016 16:50:42 +0000 (11:50 -0500)
committerKen Manheimer <ken.manheimer@gmail.com>
Tue, 26 Jan 2016 16:50:42 +0000 (11:50 -0500)
I'm finding that preserving multishell-primary-name across sessions
isn't so desirable, and thinking that the idea about including the value
of savehist-additional-variables on savehist-additional-variables may
not be either effective or necessarily useful, so removing the note
about it.

multishell.el

index 8228ad0221ef06f49d0bd01adb8e4f8d7d91fa24..dc2030810e0e14c30229ef5e093662f6bd8ef411 100644 (file)
@@ -220,28 +220,13 @@ path) will be conveyed between emacs sessions."
 (defvar multishell-primary-name "*shell*"
   "Default shell name for un-modified multishell-pop-to-shell buffer target.
 
-This is adjusted by `multishell-pop-to-shell' when it is
-invoked (with doubled universal argument) to set the default.
-
-To track the current primary across emacs restarts, add the name
-of this variable to `savehist-additional-variables' by
-customizing the latter.")
-
-;;; Can't just add multishell-primary-name to savehist-additional-variables
-;;; - it'll be lost any time the user runs emacs without loading
-;;; multishell.  So instead, inform the user that they can customize
-;;; savehist-additional-variables.
-;;;
-;;; I suspect that including savehist-additional-variables *on*
-;;; savehist-additional-variables could avoid this problem, as long as it
-;;; doesn't conflict with user customizations. However, even if that works,
-;;; doing so from multishell would change a behavior (for the better, but)
-;;; beyond multishell's scope, making the change hard to track down.
-
-;; (when (not (member 'multishell-primary-name
-;;                    savehist-additional-variables))
-;;   (setq savehist-additional-variables
-;;         (cons 'multishell-primary-name savehist-additional-variables)))
+This is set by `multishell-pop-to-shell' as the current default,
+when invoked with doubled universal argument.
+
+If you want the designated primary that you have at the end of
+one emacs session to be resumed at the next, customize
+`savehist-additional-variables' to include the
+`multishell-primary-name'.")
 
 ;; Multiple entries happen because completion also adds name to history.
 (defun multishell-register-name-to-path (name path)