cmd_tools 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cmd_tools/command/emacs_launch.rb +4 -2
- data/lib/cmd_tools/version.rb +1 -1
- metadata +5 -5
@@ -10,12 +10,12 @@ module ::CmdTools::Command::EmacsLaunch
|
|
10
10
|
# - :emacs: emacs
|
11
11
|
# + :emacs: /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
|
12
12
|
def self.run(mode, *files)
|
13
|
-
system "#{::CmdTools::Config.emacs} --daemon" unless
|
13
|
+
system "#{::CmdTools::Config.emacs} --daemon" unless daemon_running?
|
14
14
|
|
15
15
|
files = files.flatten.join(' ')
|
16
16
|
case mode
|
17
17
|
when :gui
|
18
|
-
if
|
18
|
+
if number_of_frames() <= 1 # emacs daemon has one (invisible) frame.
|
19
19
|
exec "emacsclient -c -n #{files}"
|
20
20
|
else
|
21
21
|
exec "emacsclient -n #{files}"
|
@@ -27,6 +27,8 @@ module ::CmdTools::Command::EmacsLaunch
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
private
|
31
|
+
|
30
32
|
# Stop emacs daemon.
|
31
33
|
def self.stop
|
32
34
|
exec "emacsclient -e '(kill-emacs)'"
|
data/lib/cmd_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmd_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby_patch
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153619080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0.3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153619080
|
25
25
|
description: ! 'Command line tools. Please type
|
26
26
|
|
27
27
|
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.15
|
87
87
|
signing_key:
|
88
88
|
specification_version: 3
|
89
89
|
summary: Command line tools.
|