trogdoro-el4r 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/data/emacs/site-lisp/el4r.el +32 -1
- metadata +2 -2
@@ -25,7 +25,7 @@
|
|
25
25
|
(put 'el4r-ruby-error
|
26
26
|
'error-conditions
|
27
27
|
'(error el4r-ruby-error))
|
28
|
-
(put 'el4r-ruby-error 'error-message "Error raised in Ruby.
|
28
|
+
(put 'el4r-ruby-error 'error-message "Error raised in Ruby. Type alt-l to reload or alt-e to show (on OSX try option instead of alt).")
|
29
29
|
|
30
30
|
(defvar el4r-ruby-program "ruby"
|
31
31
|
"The name of Ruby binary.")
|
@@ -461,4 +461,35 @@
|
|
461
461
|
(el4r-register-lambda func)
|
462
462
|
nil)
|
463
463
|
|
464
|
+
|
465
|
+
(defun el4r-kill-and-restart ()
|
466
|
+
(interactive)
|
467
|
+
"Load .emacs (reloading EmacsRuby)"
|
468
|
+
(switch-to-buffer "*el4r:process*")
|
469
|
+
(kill-buffer "*el4r:process*")
|
470
|
+
(load-file "~/.emacs")
|
471
|
+
)
|
472
|
+
|
473
|
+
(defun el4r-jump-to-error ()
|
474
|
+
(interactive)
|
475
|
+
"Go to EmacsRuby error"
|
476
|
+
(find-file el4r-log-path)
|
477
|
+
(revert-buffer t t t)
|
478
|
+
(setq truncate-lines t)
|
479
|
+
(end-of-buffer)
|
480
|
+
(ignore-errors
|
481
|
+
(re-search-backward "^ from ")
|
482
|
+
(re-search-backward "^\\S-")
|
483
|
+
(recenter 0)
|
484
|
+
)
|
485
|
+
)
|
486
|
+
|
487
|
+
|
488
|
+
; This function is called from the Xiki config
|
489
|
+
; It defines two keys, for dealing with el4r errors
|
490
|
+
(defun el4r-troubleshooting-keys ()
|
491
|
+
(global-set-key (kbd "M-l") 'el4r-kill-and-restart)
|
492
|
+
(global-set-key (kbd "M-e") 'el4r-jump-to-error)
|
493
|
+
)
|
494
|
+
|
464
495
|
(provide 'el4r)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trogdoro-el4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
segments:
|
6
6
|
hash:
|
7
7
|
platform: ruby
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-
|
15
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
16
16
|
dependencies: []
|
17
17
|
description: El4r enables you to write Emacs programs in Ruby(EmacsRuby) as well as
|
18
18
|
in EmacsLisp. It also enables you to unit-test Emacs programs automatically both
|