chiark / gitweb /
dot/emacs: Some Perforce tweaks.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 3 Dec 2009 13:25:57 +0000 (13:25 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 3 Dec 2009 13:25:57 +0000 (13:25 +0000)
  * Load Perforce support if it's available and we don't mind taking
    some time over it.

  * Persuade `shell' mode to notice `Enter password:' as soliciting a
    password.

dot/emacs

index a2b6eceffb1dfefef4ce63b7b82ac468dfc86fde..482e5611a84dd4248a8f4cf032aa86e8bc946d10 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
@@ -59,6 +59,8 @@
      (not mdw-fast-startup)
      (load "quilt"))
 
+(trap (or mdw-fast-startup (require 'p4)))
+
 (trap (or mdw-fast-startup (require 'tex-site)))
 
 (trap (or mdw-fast-startup (semantic-load-enable-minimum-features)))
 
 (setq shell-prompt-pattern "^[^]#$%>»}\n]*[]#$%>»}] *")
 (setq comint-password-prompt-regexp
-      (concat "\\(\\([Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
-             "[Pp]assword\\|pass phrase\\):\\s *\\'"))
+      (concat "\\(\\([Ee]nter \\|[Oo]ld \\|[Nn]ew \\|[a-zA-Z0-9_]*'s \\|^\\)"
+             "[Pp]assword\\|pass phrase\\):"))
 
 ;; Notice passwords, and make C-a work right.