Don't bind in noninteractive mode to prevent from printing warnings:
bind: warning: line editing not enabled
when used in "hg push ssh://..."
--- a/.bashrc Tue Jan 14 15:12:29 2014 +0200
+++ b/.bashrc Tue Jan 14 15:13:46 2014 +0200
@@ -142,8 +142,10 @@
set -o emacs
-bind '"\e/": dabbrev-expand'
-bind '"\ee": edit-and-execute-command'
+if [[ $- == *i* ]]; then
+ bind '"\e/": dabbrev-expand'
+ bind '"\ee": edit-and-execute-command'
+fi
################################################################
# Completion.