Automated merge with file:///cygdrive/d/srv/hg-home/dot-emacs
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 02 Aug 2011 17:52:09 +0300
changeset 673 3f9a497c4ff7
parent 671 c8f7a49f06a9 (current diff)
parent 672 ec015b06e121 (diff)
child 674 f3ac6416ef21
Automated merge with file:///cygdrive/d/srv/hg-home/dot-emacs
.emacs-my
--- a/.emacs-my	Sun Jul 31 22:31:00 2011 +0300
+++ b/.emacs-my	Tue Aug 02 17:52:09 2011 +0300
@@ -1294,6 +1294,18 @@
        )
      ))
 
+(defvar my-comint-send-hist-list nil
+  "History list for `my-comint-send-string'."
+  )
+(defun my-comint-send-string (string)
+  "Send string to comint buffers. Useful for *compilation* read-only buffer."
+  (interactive
+   (list (read-input "Type string: " nil 'my-comint-send-hist-list))
+   )
+  (comint-send-string (get-buffer-process (current-buffer)) string)
+  )
+(define-key compilation-mode-map [C-return] 'my-comint-send-string)
+
 ;;; ----------------------------------------------------------------
 (message "TAGS, etags, ctags, GNU GLOBAL")