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

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

[elpa] master 423c41a 4/7: multishell - use eval-after-load when with-ev


From: ken manheimer
Subject: [elpa] master 423c41a 4/7: multishell - use eval-after-load when with-eval-after-load isn't around.
Date: Tue, 26 Jan 2016 16:58:18 +0000

branch: master
commit 423c41a333e2b7d6e0f4e6420b5b1dbeb72fbb0f
Author: Ken Manheimer <address@hidden>
Commit: Ken Manheimer <address@hidden>

    multishell - use eval-after-load when with-eval-after-load isn't around.
    
    With this, you can use multishell in Emacs 23. I saw a problem with
    a remote sudo shell, but remote or local sudo do work, separately.
---
 multishell.el |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/multishell.el b/multishell.el
index 09635f9..0798ee0 100644
--- a/multishell.el
+++ b/multishell.el
@@ -176,8 +176,11 @@ lisp, eg: (global-set-key \"\\M- \" 
'multishell-pop-to-shell)."
   :group 'multishell)
 
 ;; Implement the key customization whenever the package is loaded:
-(with-eval-after-load "multishell"
-  (multishell-implement-command-key-choice))
+(if (fboundp 'with-eval-after-load)
+    (with-eval-after-load "multishell"
+                         (multishell-implement-command-key-choice))
+  (eval-after-load "multishell"
+    (multishell-implement-command-key-choice)))
 
 (defcustom multishell-pop-to-frame nil
   "*If non-nil, jump to a frame already showing the shell, if another one is.



reply via email to

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