diff lisp/utils/passwd.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents ec9a17fef872
children 4be1180a9e89
line wrap: on
line diff
--- a/lisp/utils/passwd.el	Mon Aug 13 09:00:04 2007 +0200
+++ b/lisp/utils/passwd.el	Mon Aug 13 09:02:59 2007 +0200
@@ -17,9 +17,12 @@
 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 ;; General Public License for more details.
 
+;;; Synched up with: Not in FSF.
+
 ;; You should have received a copy of the GNU General Public License
-;; along with XEmacs; see the file COPYING.  If not, write to the Free
-;; Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;; along with XEmacs; see the file COPYING.  If not, write to the 
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; Boston, MA 02111-1307, USA.
 
 ;;; Change Log:
 ;;
@@ -102,7 +105,7 @@
 the default choice (it is not, of course, displayed.)
 
 If running under X, the keyboard will be grabbed (with XGrabKeyboard())
-to reduce the possibility that eavesdropping is occuring.
+to reduce the possibility that evesdropping is occuring.
 
 When reading a password, all keys self-insert, except for:
 \\<read-passwd-map>
@@ -183,7 +186,9 @@
 	(passwd-ungrab-keyboard)
 	(passwd-insecure-display)
 	(passwd-kill-buffer input)
-	(message "")
+	(if (fboundp 'clear-message) ;XEmacs
+	    (clear-message)
+	  (message ""))
 	))))
 
 
@@ -367,7 +372,9 @@
   (let ((inhibit-quit t)
 	str)
     (while (or (null str) (keymapp (key-binding str)))
-      (message prompt)
+      (if (fboundp 'display-message)
+	  (display-message 'prompt prompt)
+	(message prompt))
       (setq str (concat str (char-to-string (read-char)))))
     (setq quit-flag nil)
     str))