diff options
| -rw-r--r-- | lisp/ChangeLog | 31 | ||||
| -rw-r--r-- | lisp/dired-aux.el | 2 | ||||
| -rw-r--r-- | lisp/dired.el | 2 | ||||
| -rw-r--r-- | lisp/ediff-mult.el | 2 | ||||
| -rw-r--r-- | lisp/ediff-util.el | 2 | ||||
| -rw-r--r-- | lisp/forms.el | 2 | ||||
| -rw-r--r-- | lisp/ido.el | 4 | ||||
| -rw-r--r-- | lisp/log-edit.el | 2 | ||||
| -rw-r--r-- | lisp/net/eudcb-ldap.el | 2 | ||||
| -rw-r--r-- | lisp/play/gomoku.el | 36 | ||||
| -rw-r--r-- | lisp/play/landmark.el | 26 | ||||
| -rw-r--r-- | lisp/play/mpuz.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/ebrowse.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/idlw-shell.el | 2 | ||||
| -rw-r--r-- | lisp/ses.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-index.el | 2 | ||||
| -rw-r--r-- | lisp/vc.el | 2 |
17 files changed, 78 insertions, 49 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 54b224c232d..60d1609481f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,36 @@ | |||
| 1 | 2005-09-25 Romain Francoise <romain@orebokech.com> | ||
| 2 | |||
| 3 | * dired-aux.el (dired-copy-file-recursive): | ||
| 4 | * dired.el (dired-delete-file): | ||
| 5 | * ediff-mult.el (ediff-dir-diff-copy-file): | ||
| 6 | * ediff-util.el (ediff-test-save-region): | ||
| 7 | * forms.el (forms-mode): | ||
| 8 | * ido.el (ido-file-internal, ido-delete-file-at-head): | ||
| 9 | * log-edit.el (log-edit-done): | ||
| 10 | * ses.el (ses-yank-resize): | ||
| 11 | * play/gomoku.el (gomoku-human-plays, gomoku) | ||
| 12 | (gomoku-human-resigns, gomoku-prompt-for-other-game) | ||
| 13 | (gomoku-offer-a-draw): | ||
| 14 | * play/landmark.el (lm-human-resigns, lm): | ||
| 15 | * net/eudcb-ldap.el (eudc-ldap-check-base): | ||
| 16 | * play/mpuz.el (mpuz-offer-abort, mpuz-try-letter, mpuz-close-game): | ||
| 17 | * progmodes/ebrowse.el (ebrowse-find-pattern): | ||
| 18 | * progmodes/idlw-shell.el (idlwave-shell-set-bp-check): | ||
| 19 | * textmodes/reftex-index.el (reftex-index-initialize-phrases-buffer): | ||
| 20 | End `yes-or-no-p' and `y-or-n-p' prompts with question mark and | ||
| 21 | space. | ||
| 22 | |||
| 23 | * vc.el (vc-delete-file): | ||
| 24 | * play/gomoku.el (gomoku-terminate-game, gomoku) | ||
| 25 | (gomoku-prompt-for-move, gomoku-human-takes-back): | ||
| 26 | * play/landmark.el (lm-human-takes-back, lm-prompt-for-move) | ||
| 27 | (lm-start-robot, lm-human-plays): Remove extraneous spaces in | ||
| 28 | messages. | ||
| 29 | |||
| 1 | 2005-09-24 Dan Nicolaescu <dann@ics.uci.edu> | 30 | 2005-09-24 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 31 | ||
| 3 | * term/rxvt.el (rxvt-register-default-colors): Add support for 255 | 32 | * term/rxvt.el (rxvt-register-default-colors): Add support for 255 |
| 4 | color rxvt terminals by using the code xterm.el used to use before | 33 | color rxvt terminals by using the code xterm.el used to use before |
| 5 | 2005-04-09 in order to match the colors used by rxvt. | 34 | 2005-04-09 in order to match the colors used by rxvt. |
| 6 | 35 | ||
| 7 | 2005-09-24 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) | 36 | 2005-09-24 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change) |
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 561c7cc7f6f..f946199bbd6 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -1147,7 +1147,7 @@ Special value `always' suppresses confirmation." | |||
| 1147 | (if (and recursive | 1147 | (if (and recursive |
| 1148 | (eq t (car attrs)) | 1148 | (eq t (car attrs)) |
| 1149 | (or (eq recursive 'always) | 1149 | (or (eq recursive 'always) |
| 1150 | (yes-or-no-p (format "Recursive copies of %s " from)))) | 1150 | (yes-or-no-p (format "Recursive copies of %s? " from)))) |
| 1151 | ;; This is a directory. | 1151 | ;; This is a directory. |
| 1152 | (let ((files (directory-files from nil dired-re-no-dot))) | 1152 | (let ((files (directory-files from nil dired-re-no-dot))) |
| 1153 | (if (eq recursive 'top) (setq recursive 'always)) ; Don't ask any more. | 1153 | (if (eq recursive 'top) (setq recursive 'always)) ; Don't ask any more. |
diff --git a/lisp/dired.el b/lisp/dired.el index e06e808e1ae..3934fe4e433 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2379,7 +2379,7 @@ Anything else, ask for each sub-directory." | |||
| 2379 | (setq files | 2379 | (setq files |
| 2380 | (directory-files file t dired-re-no-dot)) ; Not empty. | 2380 | (directory-files file t dired-re-no-dot)) ; Not empty. |
| 2381 | (or (eq recursive 'always) | 2381 | (or (eq recursive 'always) |
| 2382 | (yes-or-no-p (format "Recursive delete of %s " | 2382 | (yes-or-no-p (format "Recursive delete of %s? " |
| 2383 | (dired-make-relative file))))) | 2383 | (dired-make-relative file))))) |
| 2384 | (if (eq recursive 'top) (setq recursive 'always)) ; Don't ask again. | 2384 | (if (eq recursive 'top) (setq recursive 'always)) ; Don't ask again. |
| 2385 | (while files ; Recursively delete (possibly asking). | 2385 | (while files ; Recursively delete (possibly asking). |
diff --git a/lisp/ediff-mult.el b/lisp/ediff-mult.el index 2c192c133e2..436c1817edf 100644 --- a/lisp/ediff-mult.el +++ b/lisp/ediff-mult.el | |||
| @@ -1314,7 +1314,7 @@ Useful commands: | |||
| 1314 | (if otherfile | 1314 | (if otherfile |
| 1315 | (or (file-exists-p otherfile) | 1315 | (or (file-exists-p otherfile) |
| 1316 | (if (y-or-n-p | 1316 | (if (y-or-n-p |
| 1317 | (format "Copy %s to %s ? " file-abs otherfile)) | 1317 | (format "Copy %s to %s? " file-abs otherfile)) |
| 1318 | (let* ((file-diff-record (assoc file-tail dir-diff-list)) | 1318 | (let* ((file-diff-record (assoc file-tail dir-diff-list)) |
| 1319 | (new-mem-code | 1319 | (new-mem-code |
| 1320 | (* (cdr file-diff-record) file-mem-code))) | 1320 | (* (cdr file-diff-record) file-mem-code))) |
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el index 20a9869ac47..9ab24ce5f64 100644 --- a/lisp/ediff-util.el +++ b/lisp/ediff-util.el | |||
| @@ -2111,7 +2111,7 @@ ARG is a prefix argument. If nil, copy the current difference region." | |||
| 2111 | (if this-buf-n-th-diff-saved | 2111 | (if this-buf-n-th-diff-saved |
| 2112 | (if (yes-or-no-p | 2112 | (if (yes-or-no-p |
| 2113 | (format | 2113 | (format |
| 2114 | "You've previously copied diff region %d to buffer %S. Confirm " | 2114 | "You've previously copied diff region %d to buffer %S. Confirm? " |
| 2115 | (1+ n) buf-type)) | 2115 | (1+ n) buf-type)) |
| 2116 | t | 2116 | t |
| 2117 | (error "Quit")) | 2117 | (error "Quit")) |
diff --git a/lisp/forms.el b/lisp/forms.el index 419a6fa3778..e7282ee0ea5 100644 --- a/lisp/forms.el +++ b/lisp/forms.el | |||
| @@ -519,7 +519,7 @@ Commands: Equivalent keys in read-only mode: | |||
| 519 | (if (or (eq enable-local-eval t) | 519 | (if (or (eq enable-local-eval t) |
| 520 | (yes-or-no-p | 520 | (yes-or-no-p |
| 521 | (concat "Evaluate lisp code in buffer " | 521 | (concat "Evaluate lisp code in buffer " |
| 522 | (buffer-name) " to display forms "))) | 522 | (buffer-name) " to display forms? "))) |
| 523 | (eval-buffer) | 523 | (eval-buffer) |
| 524 | (error "`enable-local-eval' inhibits buffer evaluation")) | 524 | (error "`enable-local-eval' inhibits buffer evaluation")) |
| 525 | 525 | ||
diff --git a/lisp/ido.el b/lisp/ido.el index 7c9d269417a..2d62f6c74ef 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -2138,7 +2138,7 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 2138 | (ido-record-command method dirname) | 2138 | (ido-record-command method dirname) |
| 2139 | (ido-record-work-directory) | 2139 | (ido-record-work-directory) |
| 2140 | (funcall method dirname)) | 2140 | (funcall method dirname)) |
| 2141 | ((y-or-n-p (format "Directory %s does not exist. Create it " filename)) | 2141 | ((y-or-n-p (format "Directory %s does not exist. Create it? " filename)) |
| 2142 | (ido-record-command method dirname) | 2142 | (ido-record-command method dirname) |
| 2143 | (ido-record-work-directory dirname) | 2143 | (ido-record-work-directory dirname) |
| 2144 | (make-directory-internal dirname) | 2144 | (make-directory-internal dirname) |
| @@ -3529,7 +3529,7 @@ for first matching file." | |||
| 3529 | (file-exists-p file) | 3529 | (file-exists-p file) |
| 3530 | (not (file-directory-p file)) | 3530 | (not (file-directory-p file)) |
| 3531 | (file-writable-p ido-current-directory) | 3531 | (file-writable-p ido-current-directory) |
| 3532 | (yes-or-no-p (concat "Delete " file " "))) | 3532 | (yes-or-no-p (concat "Delete " file "? "))) |
| 3533 | (delete-file file) | 3533 | (delete-file file) |
| 3534 | ;; Check if file still exists. | 3534 | ;; Check if file still exists. |
| 3535 | (if (file-exists-p file) | 3535 | (if (file-exists-p file) |
diff --git a/lisp/log-edit.el b/lisp/log-edit.el index 4e179ef8bad..54249eb52e3 100644 --- a/lisp/log-edit.el +++ b/lisp/log-edit.el | |||
| @@ -383,7 +383,7 @@ If you want to abort the commit, simply delete the buffer." | |||
| 383 | (equal (log-edit-files) log-edit-initial-files))) | 383 | (equal (log-edit-files) log-edit-initial-files))) |
| 384 | (progn | 384 | (progn |
| 385 | (log-edit-show-files) | 385 | (log-edit-show-files) |
| 386 | (not (y-or-n-p "Really commit ? ")))) | 386 | (not (y-or-n-p "Really commit? ")))) |
| 387 | (progn (when (not win) (log-edit-hide-buf)) | 387 | (progn (when (not win) (log-edit-hide-buf)) |
| 388 | (message "Oh, well! Later maybe?")) | 388 | (message "Oh, well! Later maybe?")) |
| 389 | (run-hooks 'log-edit-done-hook) | 389 | (run-hooks 'log-edit-done-hook) |
diff --git a/lisp/net/eudcb-ldap.el b/lisp/net/eudcb-ldap.el index e28a044ba55..93f7c24d077 100644 --- a/lisp/net/eudcb-ldap.el +++ b/lisp/net/eudcb-ldap.el | |||
| @@ -194,7 +194,7 @@ attribute names are returned. Default to `person'" | |||
| 194 | "Check if the current LDAP server has a configured search base." | 194 | "Check if the current LDAP server has a configured search base." |
| 195 | (unless (or (eudc-ldap-get-host-parameter eudc-server 'base) | 195 | (unless (or (eudc-ldap-get-host-parameter eudc-server 'base) |
| 196 | ldap-default-base | 196 | ldap-default-base |
| 197 | (null (y-or-n-p "No search base defined. Configure it now ?"))) | 197 | (null (y-or-n-p "No search base defined. Configure it now? "))) |
| 198 | ;; If the server is not in ldap-host-parameters-alist we add it for the | 198 | ;; If the server is not in ldap-host-parameters-alist we add it for the |
| 199 | ;; user | 199 | ;; user |
| 200 | (if (null (assoc eudc-server ldap-host-parameters-alist)) | 200 | (if (null (assoc eudc-server ldap-host-parameters-alist)) |
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el index e9f7a07abe9..c7089ddd7f7 100644 --- a/lisp/play/gomoku.el +++ b/lisp/play/gomoku.el | |||
| @@ -671,11 +671,11 @@ that DVAL has been added on SQUARE." | |||
| 671 | (cond ((< gomoku-number-of-moves 20) | 671 | (cond ((< gomoku-number-of-moves 20) |
| 672 | "This was a REALLY QUICK win.") | 672 | "This was a REALLY QUICK win.") |
| 673 | (gomoku-human-refused-draw | 673 | (gomoku-human-refused-draw |
| 674 | "I won... Too bad you refused my offer of a draw !") | 674 | "I won... Too bad you refused my offer of a draw!") |
| 675 | (gomoku-human-took-back | 675 | (gomoku-human-took-back |
| 676 | "I won... Taking moves back will not help you !") | 676 | "I won... Taking moves back will not help you!") |
| 677 | ((not gomoku-emacs-played-first) | 677 | ((not gomoku-emacs-played-first) |
| 678 | "I won... Playing first did not help you much !") | 678 | "I won... Playing first did not help you much!") |
| 679 | ((and (zerop gomoku-number-of-human-wins) | 679 | ((and (zerop gomoku-number-of-human-wins) |
| 680 | (zerop gomoku-number-of-draws) | 680 | (zerop gomoku-number-of-draws) |
| 681 | (> gomoku-number-of-emacs-wins 1)) | 681 | (> gomoku-number-of-emacs-wins 1)) |
| @@ -688,7 +688,7 @@ that DVAL has been added on SQUARE." | |||
| 688 | (gomoku-human-took-back | 688 | (gomoku-human-took-back |
| 689 | " I, for one, never take my moves back...") | 689 | " I, for one, never take my moves back...") |
| 690 | (gomoku-emacs-played-first | 690 | (gomoku-emacs-played-first |
| 691 | ".. so what ?") | 691 | ".. so what?") |
| 692 | (" Now, let me play first just once.")))) | 692 | (" Now, let me play first just once.")))) |
| 693 | ((eq result 'human-resigned) | 693 | ((eq result 'human-resigned) |
| 694 | (setq gomoku-number-of-emacs-wins (1+ gomoku-number-of-emacs-wins)) | 694 | (setq gomoku-number-of-emacs-wins (1+ gomoku-number-of-emacs-wins)) |
| @@ -758,7 +758,7 @@ Use \\[describe-mode] for more info." | |||
| 758 | (setq gomoku-emacs-is-computing nil) | 758 | (setq gomoku-emacs-is-computing nil) |
| 759 | (gomoku-terminate-game 'crash-game) | 759 | (gomoku-terminate-game 'crash-game) |
| 760 | (sit-for 4) | 760 | (sit-for 4) |
| 761 | (or (y-or-n-p "Another game ") (error "Chicken !"))) | 761 | (or (y-or-n-p "Another game? ") (error "Chicken!"))) |
| 762 | (switch-to-buffer gomoku-buffer-name) | 762 | (switch-to-buffer gomoku-buffer-name) |
| 763 | (gomoku-mode)) | 763 | (gomoku-mode)) |
| 764 | (cond | 764 | (cond |
| @@ -779,14 +779,14 @@ Use \\[describe-mode] for more info." | |||
| 779 | (if (and (> m max-height) | 779 | (if (and (> m max-height) |
| 780 | (not (eq m gomoku-saved-board-height)) | 780 | (not (eq m gomoku-saved-board-height)) |
| 781 | ;; Use EQ because SAVED-BOARD-HEIGHT may be nil | 781 | ;; Use EQ because SAVED-BOARD-HEIGHT may be nil |
| 782 | (not (y-or-n-p (format "Do you really want %d rows " m)))) | 782 | (not (y-or-n-p (format "Do you really want %d rows? " m)))) |
| 783 | (setq m max-height))) | 783 | (setq m max-height))) |
| 784 | (message "One moment, please...") | 784 | (message "One moment, please...") |
| 785 | (gomoku-start-game n m) | 785 | (gomoku-start-game n m) |
| 786 | (if (y-or-n-p "Do you allow me to play first ") | 786 | (if (y-or-n-p "Do you allow me to play first? ") |
| 787 | (gomoku-emacs-plays) | 787 | (gomoku-emacs-plays) |
| 788 | (gomoku-prompt-for-move))) | 788 | (gomoku-prompt-for-move))) |
| 789 | ((y-or-n-p "Shall we continue our game ") | 789 | ((y-or-n-p "Shall we continue our game? ") |
| 790 | (gomoku-prompt-for-move)) | 790 | (gomoku-prompt-for-move)) |
| 791 | (t | 791 | (t |
| 792 | (gomoku-human-resigns)))) | 792 | (gomoku-human-resigns)))) |
| @@ -875,9 +875,9 @@ If the game is finished, this command requests for another game." | |||
| 875 | (let (square score) | 875 | (let (square score) |
| 876 | (setq square (gomoku-point-square)) | 876 | (setq square (gomoku-point-square)) |
| 877 | (cond ((null square) | 877 | (cond ((null square) |
| 878 | (error "Your point is not on a square. Retry !")) | 878 | (error "Your point is not on a square. Retry!")) |
| 879 | ((not (zerop (aref gomoku-board square))) | 879 | ((not (zerop (aref gomoku-board square))) |
| 880 | (error "Your point is not on a free square. Retry !")) | 880 | (error "Your point is not on a free square. Retry!")) |
| 881 | (t | 881 | (t |
| 882 | (setq score (aref gomoku-score-table square)) | 882 | (setq score (aref gomoku-score-table square)) |
| 883 | (gomoku-play-move square 1) | 883 | (gomoku-play-move square 1) |
| @@ -902,7 +902,7 @@ If the game is finished, this command requests for another game." | |||
| 902 | (sit-for 4) | 902 | (sit-for 4) |
| 903 | (gomoku-prompt-for-other-game)) | 903 | (gomoku-prompt-for-other-game)) |
| 904 | ((zerop gomoku-number-of-human-moves) | 904 | ((zerop gomoku-number-of-human-moves) |
| 905 | (message "You have not played yet... Your move ?")) | 905 | (message "You have not played yet... Your move?")) |
| 906 | (t | 906 | (t |
| 907 | (message "One moment, please...") | 907 | (message "One moment, please...") |
| 908 | ;; It is possible for the user to let Emacs play several consecutive | 908 | ;; It is possible for the user to let Emacs play several consecutive |
| @@ -923,9 +923,9 @@ If the game is finished, this command requests for another game." | |||
| 923 | (gomoku-crash-game)) | 923 | (gomoku-crash-game)) |
| 924 | ((not gomoku-game-in-progress) | 924 | ((not gomoku-game-in-progress) |
| 925 | (message "There is no game in progress")) | 925 | (message "There is no game in progress")) |
| 926 | ((y-or-n-p "You mean, you resign ") | 926 | ((y-or-n-p "You mean, you resign? ") |
| 927 | (gomoku-terminate-game 'human-resigned)) | 927 | (gomoku-terminate-game 'human-resigned)) |
| 928 | ((y-or-n-p "You mean, we continue ") | 928 | ((y-or-n-p "You mean, we continue? ") |
| 929 | (gomoku-prompt-for-move)) | 929 | (gomoku-prompt-for-move)) |
| 930 | (t | 930 | (t |
| 931 | (gomoku-terminate-game 'human-resigned)))) ; OK. Accept it | 931 | (gomoku-terminate-game 'human-resigned)))) ; OK. Accept it |
| @@ -937,21 +937,21 @@ If the game is finished, this command requests for another game." | |||
| 937 | (defun gomoku-prompt-for-move () | 937 | (defun gomoku-prompt-for-move () |
| 938 | "Display a message asking for Human's move." | 938 | "Display a message asking for Human's move." |
| 939 | (message (if (zerop gomoku-number-of-human-moves) | 939 | (message (if (zerop gomoku-number-of-human-moves) |
| 940 | "Your move ? (move to a free square and hit X, RET ...)" | 940 | "Your move? (move to a free square and hit X, RET ...)" |
| 941 | "Your move ?")) | 941 | "Your move?")) |
| 942 | ;; This may seem silly, but if one omits the following line (or a similar | 942 | ;; This may seem silly, but if one omits the following line (or a similar |
| 943 | ;; one), the cursor may very well go to some place where POINT is not. | 943 | ;; one), the cursor may very well go to some place where POINT is not. |
| 944 | (save-excursion (set-buffer (other-buffer)))) | 944 | (save-excursion (set-buffer (other-buffer)))) |
| 945 | 945 | ||
| 946 | (defun gomoku-prompt-for-other-game () | 946 | (defun gomoku-prompt-for-other-game () |
| 947 | "Ask for another game, and start it." | 947 | "Ask for another game, and start it." |
| 948 | (if (y-or-n-p "Another game ") | 948 | (if (y-or-n-p "Another game? ") |
| 949 | (gomoku gomoku-board-width gomoku-board-height) | 949 | (gomoku gomoku-board-width gomoku-board-height) |
| 950 | (error "Chicken !"))) | 950 | (error "Chicken!"))) |
| 951 | 951 | ||
| 952 | (defun gomoku-offer-a-draw () | 952 | (defun gomoku-offer-a-draw () |
| 953 | "Offer a draw and return t if Human accepted it." | 953 | "Offer a draw and return t if Human accepted it." |
| 954 | (or (y-or-n-p "I offer you a draw. Do you accept it ") | 954 | (or (y-or-n-p "I offer you a draw. Do you accept it? ") |
| 955 | (not (setq gomoku-human-refused-draw t)))) | 955 | (not (setq gomoku-human-refused-draw t)))) |
| 956 | 956 | ||
| 957 | ;;; | 957 | ;;; |
diff --git a/lisp/play/landmark.el b/lisp/play/landmark.el index 67c6c0d3021..48b614ea111 100644 --- a/lisp/play/landmark.el +++ b/lisp/play/landmark.el | |||
| @@ -763,9 +763,9 @@ If the game is finished, this command requests for another game." | |||
| 763 | (let (square score) | 763 | (let (square score) |
| 764 | (setq square (lm-point-square)) | 764 | (setq square (lm-point-square)) |
| 765 | (cond ((null square) | 765 | (cond ((null square) |
| 766 | (error "Your point is not on a square. Retry !")) | 766 | (error "Your point is not on a square. Retry!")) |
| 767 | ((not (zerop (aref lm-board square))) | 767 | ((not (zerop (aref lm-board square))) |
| 768 | (error "Your point is not on a free square. Retry !")) | 768 | (error "Your point is not on a free square. Retry!")) |
| 769 | (t | 769 | (t |
| 770 | (setq score (aref lm-score-table square)) | 770 | (setq score (aref lm-score-table square)) |
| 771 | (lm-play-move square 1) | 771 | (lm-play-move square 1) |
| @@ -790,7 +790,7 @@ If the game is finished, this command requests for another game." | |||
| 790 | (sit-for 4) | 790 | (sit-for 4) |
| 791 | (lm-prompt-for-other-game)) | 791 | (lm-prompt-for-other-game)) |
| 792 | ((zerop lm-number-of-human-moves) | 792 | ((zerop lm-number-of-human-moves) |
| 793 | (message "You have not played yet... Your move ?")) | 793 | (message "You have not played yet... Your move?")) |
| 794 | (t | 794 | (t |
| 795 | (message "One moment, please...") | 795 | (message "One moment, please...") |
| 796 | ;; It is possible for the user to let Emacs play several consecutive | 796 | ;; It is possible for the user to let Emacs play several consecutive |
| @@ -811,9 +811,9 @@ If the game is finished, this command requests for another game." | |||
| 811 | (lm-crash-game)) | 811 | (lm-crash-game)) |
| 812 | ((not lm-game-in-progress) | 812 | ((not lm-game-in-progress) |
| 813 | (message "There is no game in progress")) | 813 | (message "There is no game in progress")) |
| 814 | ((y-or-n-p "You mean, you resign ") | 814 | ((y-or-n-p "You mean, you resign? ") |
| 815 | (lm-terminate-game 'human-resigned)) | 815 | (lm-terminate-game 'human-resigned)) |
| 816 | ((y-or-n-p "You mean, we continue ") | 816 | ((y-or-n-p "You mean, we continue? ") |
| 817 | (lm-prompt-for-move)) | 817 | (lm-prompt-for-move)) |
| 818 | (t | 818 | (t |
| 819 | (lm-terminate-game 'human-resigned)))) ; OK. Accept it | 819 | (lm-terminate-game 'human-resigned)))) ; OK. Accept it |
| @@ -823,23 +823,23 @@ If the game is finished, this command requests for another game." | |||
| 823 | (defun lm-prompt-for-move () | 823 | (defun lm-prompt-for-move () |
| 824 | "Display a message asking for Human's move." | 824 | "Display a message asking for Human's move." |
| 825 | (message (if (zerop lm-number-of-human-moves) | 825 | (message (if (zerop lm-number-of-human-moves) |
| 826 | "Your move ? (move to a free square and hit X, RET ...)" | 826 | "Your move? (move to a free square and hit X, RET ...)" |
| 827 | "Your move ?")) | 827 | "Your move?")) |
| 828 | ;; This may seem silly, but if one omits the following line (or a similar | 828 | ;; This may seem silly, but if one omits the following line (or a similar |
| 829 | ;; one), the cursor may very well go to some place where POINT is not. | 829 | ;; one), the cursor may very well go to some place where POINT is not. |
| 830 | (save-excursion (set-buffer (other-buffer)))) | 830 | (save-excursion (set-buffer (other-buffer)))) |
| 831 | 831 | ||
| 832 | (defun lm-prompt-for-other-game () | 832 | (defun lm-prompt-for-other-game () |
| 833 | "Ask for another game, and start it." | 833 | "Ask for another game, and start it." |
| 834 | (if (y-or-n-p "Another game ") | 834 | (if (y-or-n-p "Another game? ") |
| 835 | (if (y-or-n-p "Retain learned weights ") | 835 | (if (y-or-n-p "Retain learned weights ") |
| 836 | (lm 2) | 836 | (lm 2) |
| 837 | (lm 1)) | 837 | (lm 1)) |
| 838 | (message "Chicken !"))) | 838 | (message "Chicken!"))) |
| 839 | 839 | ||
| 840 | (defun lm-offer-a-draw () | 840 | (defun lm-offer-a-draw () |
| 841 | "Offer a draw and return t if Human accepted it." | 841 | "Offer a draw and return t if Human accepted it." |
| 842 | (or (y-or-n-p "I offer you a draw. Do you accept it ") | 842 | (or (y-or-n-p "I offer you a draw. Do you accept it? ") |
| 843 | (not (setq lm-human-refused-draw t)))) | 843 | (not (setq lm-human-refused-draw t)))) |
| 844 | 844 | ||
| 845 | 845 | ||
| @@ -1523,9 +1523,9 @@ If the game is finished, this command requests for another game." | |||
| 1523 | (let (square score) | 1523 | (let (square score) |
| 1524 | (setq square (lm-point-square)) | 1524 | (setq square (lm-point-square)) |
| 1525 | (cond ((null square) | 1525 | (cond ((null square) |
| 1526 | (error "Your point is not on a square. Retry !")) | 1526 | (error "Your point is not on a square. Retry!")) |
| 1527 | ((not (zerop (aref lm-board square))) | 1527 | ((not (zerop (aref lm-board square))) |
| 1528 | (error "Your point is not on a free square. Retry !")) | 1528 | (error "Your point is not on a free square. Retry!")) |
| 1529 | (t | 1529 | (t |
| 1530 | (progn | 1530 | (progn |
| 1531 | (lm-plot-square square 1) | 1531 | (lm-plot-square square 1) |
| @@ -1678,7 +1678,7 @@ Use \\[describe-mode] for more info." | |||
| 1678 | (if (and (> lm-m max-height) | 1678 | (if (and (> lm-m max-height) |
| 1679 | (not (eq lm-m lm-saved-board-height)) | 1679 | (not (eq lm-m lm-saved-board-height)) |
| 1680 | ;; Use EQ because SAVED-BOARD-HEIGHT may be nil | 1680 | ;; Use EQ because SAVED-BOARD-HEIGHT may be nil |
| 1681 | (not (y-or-n-p (format "Do you really want %d rows " lm-m)))) | 1681 | (not (y-or-n-p (format "Do you really want %d rows? " lm-m)))) |
| 1682 | (setq lm-m max-height))) | 1682 | (setq lm-m max-height))) |
| 1683 | (if lm-one-moment-please | 1683 | (if lm-one-moment-please |
| 1684 | (message "One moment, please...")) | 1684 | (message "One moment, please...")) |
diff --git a/lisp/play/mpuz.el b/lisp/play/mpuz.el index 948ae126ffa..6f2c9200928 100644 --- a/lisp/play/mpuz.el +++ b/lisp/play/mpuz.el | |||
| @@ -400,7 +400,7 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 400 | (defun mpuz-offer-abort () | 400 | (defun mpuz-offer-abort () |
| 401 | "Ask if user wants to abort current puzzle." | 401 | "Ask if user wants to abort current puzzle." |
| 402 | (interactive) | 402 | (interactive) |
| 403 | (if (y-or-n-p "Abort game ") | 403 | (if (y-or-n-p "Abort game? ") |
| 404 | (let ((buf (mpuz-get-buffer))) | 404 | (let ((buf (mpuz-get-buffer))) |
| 405 | (message "Mult Puzzle aborted.") | 405 | (message "Mult Puzzle aborted.") |
| 406 | (setq mpuz-in-progress nil | 406 | (setq mpuz-in-progress nil |
| @@ -444,7 +444,7 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 444 | (mpuz-ding t)) | 444 | (mpuz-ding t)) |
| 445 | (t | 445 | (t |
| 446 | (mpuz-try-proposal letter-char digit-char)))) | 446 | (mpuz-try-proposal letter-char digit-char)))) |
| 447 | (if (y-or-n-p "Start a new game ") | 447 | (if (y-or-n-p "Start a new game? ") |
| 448 | (mpuz-start-new-game) | 448 | (mpuz-start-new-game) |
| 449 | (message "OK. I won't.")))) | 449 | (message "OK. I won't.")))) |
| 450 | 450 | ||
| @@ -489,7 +489,7 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 489 | (t "not serious."))))) | 489 | (t "not serious."))))) |
| 490 | (message message) | 490 | (message message) |
| 491 | (sit-for 4) | 491 | (sit-for 4) |
| 492 | (if (y-or-n-p (concat message " Start a new game ")) | 492 | (if (y-or-n-p (concat message " Start a new game? ")) |
| 493 | (mpuz-start-new-game) | 493 | (mpuz-start-new-game) |
| 494 | (message "Good Bye!")))) | 494 | (message "Good Bye!")))) |
| 495 | 495 | ||
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el index 49d0207882c..47e9a12f235 100644 --- a/lisp/progmodes/ebrowse.el +++ b/lisp/progmodes/ebrowse.el | |||
| @@ -1798,7 +1798,7 @@ INFO is a list (TREE-HEADER TREE-OR-MEMBER MEMBER-LIST)." | |||
| 1798 | ;; START will be 0. | 1798 | ;; START will be 0. |
| 1799 | (when (and (boundp 'ebrowse-debug) | 1799 | (when (and (boundp 'ebrowse-debug) |
| 1800 | (symbol-value 'ebrowse-debug)) | 1800 | (symbol-value 'ebrowse-debug)) |
| 1801 | (y-or-n-p (format "start = %d" start)) | 1801 | (y-or-n-p (format "start = %d? " start)) |
| 1802 | (y-or-n-p pattern)) | 1802 | (y-or-n-p pattern)) |
| 1803 | (setf found | 1803 | (setf found |
| 1804 | (loop do (goto-char (max (point-min) (- start offset))) | 1804 | (loop do (goto-char (max (point-min) (- start offset))) |
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el index 7dc12226722..4b646a72f3b 100644 --- a/lisp/progmodes/idlw-shell.el +++ b/lisp/progmodes/idlw-shell.el | |||
| @@ -2462,7 +2462,7 @@ the problem with not being able to set the breakpoint." | |||
| 2462 | (beep) | 2462 | (beep) |
| 2463 | (y-or-n-p | 2463 | (y-or-n-p |
| 2464 | (concat "Okay to recompile file " | 2464 | (concat "Okay to recompile file " |
| 2465 | (idlwave-shell-bp-get bp 'file) " "))) | 2465 | (idlwave-shell-bp-get bp 'file) "? "))) |
| 2466 | ;; Recompile | 2466 | ;; Recompile |
| 2467 | (progn | 2467 | (progn |
| 2468 | ;; Clean up before retrying | 2468 | ;; Clean up before retrying |
diff --git a/lisp/ses.el b/lisp/ses.el index 75562edddb9..4c959c015a7 100644 --- a/lisp/ses.el +++ b/lisp/ses.el | |||
| @@ -2560,7 +2560,7 @@ spot, or error signal if user requests cancel." | |||
| 2560 | colbool (> needcols 0)) | 2560 | colbool (> needcols 0)) |
| 2561 | (when (or rowbool colbool) | 2561 | (when (or rowbool colbool) |
| 2562 | ;;Need to insert. Get confirm | 2562 | ;;Need to insert. Get confirm |
| 2563 | (or (y-or-n-p (format "Yank will insert %s%s%s. Continue " | 2563 | (or (y-or-n-p (format "Yank will insert %s%s%s. Continue? " |
| 2564 | (if rowbool (format "%d rows" needrows) "") | 2564 | (if rowbool (format "%d rows" needrows) "") |
| 2565 | (if (and rowbool colbool) " and " "") | 2565 | (if (and rowbool colbool) " and " "") |
| 2566 | (if colbool (format "%d columns" needcols) ""))) | 2566 | (if colbool (format "%d columns" needcols) ""))) |
diff --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el index c987ed830b8..65025645c0d 100644 --- a/lisp/textmodes/reftex-index.el +++ b/lisp/textmodes/reftex-index.el | |||
| @@ -1239,7 +1239,7 @@ If the buffer is non-empty, delete the old header first." | |||
| 1239 | (beginning-of-line 2)) | 1239 | (beginning-of-line 2)) |
| 1240 | (cond ((fboundp 'zmacs-activate-region) (zmacs-activate-region)) | 1240 | (cond ((fboundp 'zmacs-activate-region) (zmacs-activate-region)) |
| 1241 | ((boundp 'make-active) (setq mark-active t))) | 1241 | ((boundp 'make-active) (setq mark-active t))) |
| 1242 | (if (yes-or-no-p "Delete and rebuilt header ") | 1242 | (if (yes-or-no-p "Delete and rebuild header? ") |
| 1243 | (delete-region (point-min) (point)))) | 1243 | (delete-region (point-min) (point)))) |
| 1244 | 1244 | ||
| 1245 | ;; Insert the mode line | 1245 | ;; Insert the mode line |
diff --git a/lisp/vc.el b/lisp/vc.el index a1b446ab368..f7afbedc354 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -2727,7 +2727,7 @@ backend to NEW-BACKEND, and unregister FILE from the current backend. | |||
| 2727 | (error "Deleting files under %s is not supported in VC" backend)) | 2727 | (error "Deleting files under %s is not supported in VC" backend)) |
| 2728 | (if (and buf (buffer-modified-p buf)) | 2728 | (if (and buf (buffer-modified-p buf)) |
| 2729 | (error "Please save files before deleting them")) | 2729 | (error "Please save files before deleting them")) |
| 2730 | (unless (y-or-n-p (format "Really want to delete %s ? " | 2730 | (unless (y-or-n-p (format "Really want to delete %s? " |
| 2731 | (file-name-nondirectory file))) | 2731 | (file-name-nondirectory file))) |
| 2732 | (error "Abort!")) | 2732 | (error "Abort!")) |
| 2733 | (unless (or (file-directory-p file) (null make-backup-files)) | 2733 | (unless (or (file-directory-p file) (null make-backup-files)) |