Mercurial > hg > xemacs-beta
diff lisp/minibuf.el @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | a4f53d9b3154 |
children | 6240c7796c7a |
line wrap: on
line diff
--- a/lisp/minibuf.el Mon Aug 13 11:01:58 2007 +0200 +++ b/lisp/minibuf.el Mon Aug 13 11:03:08 2007 +0200 @@ -41,7 +41,7 @@ ;;; Code: (defgroup minibuffer nil - "Controling the behavior of the minibuffer." + "Controling the behaviour of the minibuffer." :group 'environment) @@ -52,7 +52,7 @@ (defcustom minibuffer-history-uniquify t "*Non-nil means when adding an item to a minibuffer history, remove -previous occurrences of the same item from the history list first, +previous occurances of the same item from the history list first, rather than just consing the new element onto the front of the list." :type 'boolean :group 'minibuffer) @@ -243,7 +243,6 @@ (delete-region (point-min) (point))) (insert ?~)) - (defvar read-file-name-map (let ((map (make-sparse-keymap 'read-file-name-map))) (set-keymap-parents map (list minibuffer-local-completion-map)) @@ -448,14 +447,12 @@ (insert initial-contents) (setq current-minibuffer-contents initial-contents current-minibuffer-point (point)))) - (use-local-map (help-keymap-with-help-key - (or keymap minibuffer-local-map) - minibuffer-help-form)) + (use-local-map (or keymap minibuffer-local-map)) (let ((mouse-grabbed-buffer (and minibuffer-smart-completion-tracking-behavior (current-buffer))) (current-prefix-arg current-prefix-arg) -;; (help-form minibuffer-help-form) + (help-form minibuffer-help-form) (minibuffer-history-variable (cond ((not _history_) 'minibuffer-history) ((consp _history_) @@ -1387,17 +1384,6 @@ Third arg HISTORY, if non-nil, specifies a history list." (eval (read-expression prompt initial-contents history))) -;;;#### Screw this crock!! -;(defun read-no-blanks-input (prompt &optional initial-contents) -; "Read a string from the terminal, not allowing blanks. -;Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS -;is a string to insert in the minibuffer before reading." -; (let ((minibuffer-completion-table nil)) -; (read-from-minibuffer prompt -; initial-contents -; minibuffer-local-ns-map -; nil))) - ;; The name `command-history' is already taken (defvar read-command-history '()) @@ -1466,7 +1452,6 @@ (read-from-minibuffer prompt (if num (prin1-to-string num)) nil t t)) ;no history - (input-error nil) (invalid-read-syntax nil) (end-of-file nil))) (or (funcall pred num) (beep))) @@ -1640,7 +1625,7 @@ This will prompt with a dialog box if appropriate, according to `should-use-dialog-box-p'. Value is not expanded---you must call `expand-file-name' yourself. -Value is subject to interpretation by `substitute-in-file-name' however. +Value is subject to interpreted by substitute-in-file-name however. Default name to DEFAULT if user enters a null string. (If DEFAULT is omitted, the visited file name is used, except that if INITIAL-CONTENTS is specified, that combined with DIR is