Peter Szilagyi avatar Peter Szilagyi committed 2885da1

Added another password prompt from ereisner.

Comments (0)

Files changed (2)

 changes
 =======
+- Added another Kerberos password prompt syntax.  Please continue to
+  let us know when jane-elisp doesn't recognize your password prompts.
 - Work around an apparent bug in Emacs Lisp (read-event via) sit-for
   in the presence of multiple X displays.
 - Compile many .el files to .elc files.  We had been running from

elisp/jane/jane-micro-features.el

   (ansi-color-for-comint-mode-on)
   (Jane.set-custom-defaults
    `(comint-password-prompt-regexp
-
      ;; We had tried the following ca. 2012, but it produced a lot of
      ;; false positives.  We had to rediscover some knowledge below,
      ;; retaining the (mostly general Unix) knowledge encapsulated in
      ;;
      ;;'(comint-password-prompt-regexp "password\\|passphrase\\|Encryption")
      ,(concat "\\(" comint-password-prompt-regexp
-              "\\|^Enter the \\w+ password: " ; friend commander
+              ;; Mimic the standard value [ca. GNU Emacs 24.2.1] and
+              ;; use \\' to anchor the match at the end in addition to
+              ;; using ^ to anchor the beginning.  This should make
+              ;; for efficient matching and few false positives.
+              "\\|^Enter the \\w+ password:\\s *\\'" ; friend commander
+              "\\|^Kerberos password for \\(\\w\\|[@.]\\)+:\\s *\\'"
               "\\)"))
    '(comint-buffer-maximum-size 10000)
    '(comint-move-point-for-output t)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.