diff options
| author | Paul Eggert | 2014-01-11 21:29:11 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-01-11 21:29:11 -0800 |
| commit | 4fa51741821ef5c0fc83c82bba7cd87807b13a2c (patch) | |
| tree | b68279f33328b56fd60d3a8b94f827feb2daa06f | |
| parent | 9b335362d0a968be76188b463512ee6b9c5ae901 (diff) | |
| download | emacs-4fa51741821ef5c0fc83c82bba7cd87807b13a2c.tar.gz emacs-4fa51741821ef5c0fc83c82bba7cd87807b13a2c.zip | |
Spelling fixes.
* lisp/emacs-lisp/generic.el (generic--normalize-comments):
Rename from generic--normalise-comments. All uses changed.
* lisp/play/bubbles.el (bubbles--neighborhood-score):
(bubbles--mark-direct-neighbors, bubbles--mark-neighborhood)
(bubbles--neighborhood-available)
(bubbles--update-neighborhood-score):
Rename from names with 'neighbourhood'. All uses changed.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/emacs-lisp/generic.el | 4 | ||||
| -rw-r--r-- | lisp/mouse-drag.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-list.el | 2 | ||||
| -rw-r--r-- | lisp/org/ox.el | 2 | ||||
| -rw-r--r-- | lisp/play/bubbles.el | 40 | ||||
| -rw-r--r-- | lisp/progmodes/sh-script.el | 2 |
7 files changed, 37 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 786162d3e0a..2e2814fe46b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2014-01-12 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Spelling fixes. | ||
| 4 | * emacs-lisp/generic.el (generic--normalize-comments): | ||
| 5 | Rename from generic--normalise-comments. All uses changed. | ||
| 6 | * play/bubbles.el (bubbles--neighborhood-score): | ||
| 7 | (bubbles--mark-direct-neighbors, bubbles--mark-neighborhood) | ||
| 8 | (bubbles--neighborhood-available) | ||
| 9 | (bubbles--update-neighborhood-score): | ||
| 10 | Rename from names with 'neighbourhood'. All uses changed. | ||
| 11 | |||
| 1 | 2014-01-12 Leo Liu <sdl.web@gmail.com> | 12 | 2014-01-12 Leo Liu <sdl.web@gmail.com> |
| 2 | 13 | ||
| 3 | Re-implement the feature of showing eldoc info after editing. | 14 | Re-implement the feature of showing eldoc info after editing. |
diff --git a/lisp/emacs-lisp/generic.el b/lisp/emacs-lisp/generic.el index 146219885da..02c30aad55f 100644 --- a/lisp/emacs-lisp/generic.el +++ b/lisp/emacs-lisp/generic.el | |||
| @@ -224,7 +224,7 @@ Some generic modes are defined in `generic-x.el'." | |||
| 224 | 224 | ||
| 225 | ;;; Comment Functionality | 225 | ;;; Comment Functionality |
| 226 | 226 | ||
| 227 | (defun generic--normalise-comments (comment-list) | 227 | (defun generic--normalize-comments (comment-list) |
| 228 | (let ((normalized '())) | 228 | (let ((normalized '())) |
| 229 | (dolist (start comment-list) | 229 | (dolist (start comment-list) |
| 230 | (let (end) | 230 | (let (end) |
| @@ -300,7 +300,7 @@ Some generic modes are defined in `generic-x.el'." | |||
| 300 | (defun generic-mode-set-comments (comment-list) | 300 | (defun generic-mode-set-comments (comment-list) |
| 301 | "Set up comment functionality for generic mode." | 301 | "Set up comment functionality for generic mode." |
| 302 | (let ((st (make-syntax-table)) | 302 | (let ((st (make-syntax-table)) |
| 303 | (comment-list (generic--normalise-comments comment-list))) | 303 | (comment-list (generic--normalize-comments comment-list))) |
| 304 | (generic-set-comment-syntax st comment-list) | 304 | (generic-set-comment-syntax st comment-list) |
| 305 | (generic-set-comment-vars comment-list) | 305 | (generic-set-comment-vars comment-list) |
| 306 | (set-syntax-table st))) | 306 | (set-syntax-table st))) |
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el index a0115f8ea66..082c9235ff9 100644 --- a/lisp/mouse-drag.el +++ b/lisp/mouse-drag.el | |||
| @@ -291,7 +291,7 @@ To test this function, evaluate: | |||
| 291 | (or (mouse-movement-p event) | 291 | (or (mouse-movement-p event) |
| 292 | (eq (car-safe event) 'switch-frame))) | 292 | (eq (car-safe event) 'switch-frame))) |
| 293 | ;; Scroll if see if we're on the edge. | 293 | ;; Scroll if see if we're on the edge. |
| 294 | ;; NEEDSWORK: should handle mouse-in-other window. | 294 | ;; FIXME: should handle mouse-in-other window. |
| 295 | (cond | 295 | (cond |
| 296 | ((not (eq start-window (posn-window end))) | 296 | ((not (eq start-window (posn-window end))) |
| 297 | t) ; wait for return to original window | 297 | t) ; wait for return to original window |
diff --git a/lisp/org/org-list.el b/lisp/org/org-list.el index 69ad4da60ca..d24dad28363 100644 --- a/lisp/org/org-list.el +++ b/lisp/org/org-list.el | |||
| @@ -1223,7 +1223,7 @@ some heuristics to guess the result." | |||
| 1223 | ;; When `org-blank-before-new-entry' says so, it is 1. | 1223 | ;; When `org-blank-before-new-entry' says so, it is 1. |
| 1224 | ((eq insert-blank-p t) 1) | 1224 | ((eq insert-blank-p t) 1) |
| 1225 | ;; `plain-list-item' is 'auto. Count blank lines separating | 1225 | ;; `plain-list-item' is 'auto. Count blank lines separating |
| 1226 | ;; neighbours items in list. | 1226 | ;; neighbors' items in list. |
| 1227 | (t (let ((next-p (org-list-get-next-item item struct prevs))) | 1227 | (t (let ((next-p (org-list-get-next-item item struct prevs))) |
| 1228 | (cond | 1228 | (cond |
| 1229 | ;; Is there a next item? | 1229 | ;; Is there a next item? |
diff --git a/lisp/org/ox.el b/lisp/org/ox.el index fcf6aab2069..0102523b5c7 100644 --- a/lisp/org/ox.el +++ b/lisp/org/ox.el | |||
| @@ -5093,7 +5093,7 @@ Return the new string." | |||
| 5093 | ;;;; Topology | 5093 | ;;;; Topology |
| 5094 | ;; | 5094 | ;; |
| 5095 | ;; Here are various functions to retrieve information about the | 5095 | ;; Here are various functions to retrieve information about the |
| 5096 | ;; neighbourhood of a given element or object. Neighbours of interest | 5096 | ;; neighborhood of a given element or object. Neighbors of interest |
| 5097 | ;; are direct parent (`org-export-get-parent'), parent headline | 5097 | ;; are direct parent (`org-export-get-parent'), parent headline |
| 5098 | ;; (`org-export-get-parent-headline'), first element containing an | 5098 | ;; (`org-export-get-parent-headline'), first element containing an |
| 5099 | ;; object, (`org-export-get-parent-element'), parent table | 5099 | ;; object, (`org-export-get-parent-element'), parent table |
diff --git a/lisp/play/bubbles.el b/lisp/play/bubbles.el index 8294d6398fe..e7f5725a0f0 100644 --- a/lisp/play/bubbles.el +++ b/lisp/play/bubbles.el | |||
| @@ -231,7 +231,7 @@ Available modes are `shift-default' and `shift-always'." | |||
| 231 | (defvar bubbles--score 0 | 231 | (defvar bubbles--score 0 |
| 232 | "Current Bubbles score.") | 232 | "Current Bubbles score.") |
| 233 | 233 | ||
| 234 | (defvar bubbles--neighbourhood-score 0 | 234 | (defvar bubbles--neighborhood-score 0 |
| 235 | "Score of active bubbles neighborhood.") | 235 | "Score of active bubbles neighborhood.") |
| 236 | 236 | ||
| 237 | (defvar bubbles--faces nil | 237 | (defvar bubbles--faces nil |
| @@ -925,7 +925,7 @@ static char * dot3d_xpm[] = { | |||
| 925 | (buffer-disable-undo) | 925 | (buffer-disable-undo) |
| 926 | (force-mode-line-update) | 926 | (force-mode-line-update) |
| 927 | (redisplay) | 927 | (redisplay) |
| 928 | (add-hook 'post-command-hook 'bubbles--mark-neighbourhood t t)) | 928 | (add-hook 'post-command-hook 'bubbles--mark-neighborhood t t)) |
| 929 | 929 | ||
| 930 | ;;;###autoload | 930 | ;;;###autoload |
| 931 | (defun bubbles () | 931 | (defun bubbles () |
| @@ -1087,7 +1087,7 @@ Set `bubbles--col-offset' and `bubbles--row-offset'." | |||
| 1087 | (char-after (point)) | 1087 | (char-after (point)) |
| 1088 | nil))) | 1088 | nil))) |
| 1089 | 1089 | ||
| 1090 | (defun bubbles--mark-direct-neighbours (row col char) | 1090 | (defun bubbles--mark-direct-neighbors (row col char) |
| 1091 | "Mark direct neighbors of bubble at ROW COL with same CHAR." | 1091 | "Mark direct neighbors of bubble at ROW COL with same CHAR." |
| 1092 | (save-excursion | 1092 | (save-excursion |
| 1093 | (let ((count 0)) | 1093 | (let ((count 0)) |
| @@ -1097,13 +1097,13 @@ Set `bubbles--col-offset' and `bubbles--row-offset'." | |||
| 1097 | (add-text-properties (point) (1+ (point)) | 1097 | (add-text-properties (point) (1+ (point)) |
| 1098 | '(active t face 'bubbles--highlight-face)) | 1098 | '(active t face 'bubbles--highlight-face)) |
| 1099 | (setq count (+ 1 | 1099 | (setq count (+ 1 |
| 1100 | (bubbles--mark-direct-neighbours row (1+ col) char) | 1100 | (bubbles--mark-direct-neighbors row (1+ col) char) |
| 1101 | (bubbles--mark-direct-neighbours row (1- col) char) | 1101 | (bubbles--mark-direct-neighbors row (1- col) char) |
| 1102 | (bubbles--mark-direct-neighbours (1+ row) col char) | 1102 | (bubbles--mark-direct-neighbors (1+ row) col char) |
| 1103 | (bubbles--mark-direct-neighbours (1- row) col char)))) | 1103 | (bubbles--mark-direct-neighbors (1- row) col char)))) |
| 1104 | count))) | 1104 | count))) |
| 1105 | 1105 | ||
| 1106 | (defun bubbles--mark-neighbourhood (&optional pos) | 1106 | (defun bubbles--mark-neighborhood (&optional pos) |
| 1107 | "Mark neighborhood of point. | 1107 | "Mark neighborhood of point. |
| 1108 | Use optional parameter POS instead of point if given." | 1108 | Use optional parameter POS instead of point if given." |
| 1109 | (when bubbles--playing | 1109 | (when bubbles--playing |
| @@ -1117,17 +1117,17 @@ Use optional parameter POS instead of point if given." | |||
| 1117 | '(face default active nil)) | 1117 | '(face default active nil)) |
| 1118 | (let ((count 0)) | 1118 | (let ((count 0)) |
| 1119 | (when (and row col (not (eq char (bubbles--empty-char)))) | 1119 | (when (and row col (not (eq char (bubbles--empty-char)))) |
| 1120 | (setq count (bubbles--mark-direct-neighbours row col char)) | 1120 | (setq count (bubbles--mark-direct-neighbors row col char)) |
| 1121 | (unless (> count 1) | 1121 | (unless (> count 1) |
| 1122 | (add-text-properties (point-min) (point-max) | 1122 | (add-text-properties (point-min) (point-max) |
| 1123 | '(face default active nil)) | 1123 | '(face default active nil)) |
| 1124 | (setq count 0))) | 1124 | (setq count 0))) |
| 1125 | (bubbles--update-neighbourhood-score count)) | 1125 | (bubbles--update-neighborhood-score count)) |
| 1126 | (put-text-property (point-min) (point-max) 'pointer 'arrow) | 1126 | (put-text-property (point-min) (point-max) 'pointer 'arrow) |
| 1127 | (bubbles--update-faces-or-images) | 1127 | (bubbles--update-faces-or-images) |
| 1128 | (sit-for 0))))) | 1128 | (sit-for 0))))) |
| 1129 | 1129 | ||
| 1130 | (defun bubbles--neighbourhood-available () | 1130 | (defun bubbles--neighborhood-available () |
| 1131 | "Return t if another valid neighborhood is available." | 1131 | "Return t if another valid neighborhood is available." |
| 1132 | (catch 'found | 1132 | (catch 'found |
| 1133 | (save-excursion | 1133 | (save-excursion |
| @@ -1153,20 +1153,20 @@ Use optional parameter POS instead of point if given." | |||
| 1153 | 1153 | ||
| 1154 | (defun bubbles--reset-score () | 1154 | (defun bubbles--reset-score () |
| 1155 | "Reset bubbles score." | 1155 | "Reset bubbles score." |
| 1156 | (setq bubbles--neighbourhood-score 0 | 1156 | (setq bubbles--neighborhood-score 0 |
| 1157 | bubbles--score 0) | 1157 | bubbles--score 0) |
| 1158 | (bubbles--update-score)) | 1158 | (bubbles--update-score)) |
| 1159 | 1159 | ||
| 1160 | (defun bubbles--update-score () | 1160 | (defun bubbles--update-score () |
| 1161 | "Calculate and display new bubbles score." | 1161 | "Calculate and display new bubbles score." |
| 1162 | (setq bubbles--score (+ bubbles--score bubbles--neighbourhood-score)) | 1162 | (setq bubbles--score (+ bubbles--score bubbles--neighborhood-score)) |
| 1163 | (bubbles--show-scores)) | 1163 | (bubbles--show-scores)) |
| 1164 | 1164 | ||
| 1165 | (defun bubbles--update-neighbourhood-score (size) | 1165 | (defun bubbles--update-neighborhood-score (size) |
| 1166 | "Calculate and display score of active neighborhood from its SIZE." | 1166 | "Calculate and display score of active neighborhood from its SIZE." |
| 1167 | (if (> size 1) | 1167 | (if (> size 1) |
| 1168 | (setq bubbles--neighbourhood-score (expt (- size 1) 2)) | 1168 | (setq bubbles--neighborhood-score (expt (- size 1) 2)) |
| 1169 | (setq bubbles--neighbourhood-score 0)) | 1169 | (setq bubbles--neighborhood-score 0)) |
| 1170 | (bubbles--show-scores)) | 1170 | (bubbles--show-scores)) |
| 1171 | 1171 | ||
| 1172 | (defun bubbles--show-scores () | 1172 | (defun bubbles--show-scores () |
| @@ -1177,7 +1177,7 @@ Use optional parameter POS instead of point if given." | |||
| 1177 | (let ((inhibit-read-only t) | 1177 | (let ((inhibit-read-only t) |
| 1178 | (pos (point))) | 1178 | (pos (point))) |
| 1179 | (delete-region (point) (point-max)) | 1179 | (delete-region (point) (point-max)) |
| 1180 | (insert (format "Selected: %4d\n" bubbles--neighbourhood-score)) | 1180 | (insert (format "Selected: %4d\n" bubbles--neighborhood-score)) |
| 1181 | (insert " ") | 1181 | (insert " ") |
| 1182 | (add-text-properties (1- (point)) (point) | 1182 | (add-text-properties (1- (point)) (point) |
| 1183 | (list 'intangible t 'display | 1183 | (list 'intangible t 'display |
| @@ -1216,10 +1216,10 @@ Use optional parameter POS instead of point if given." | |||
| 1216 | "Remove active bubbles region." | 1216 | "Remove active bubbles region." |
| 1217 | (interactive) | 1217 | (interactive) |
| 1218 | (when (and bubbles--playing | 1218 | (when (and bubbles--playing |
| 1219 | (> bubbles--neighbourhood-score 0)) | 1219 | (> bubbles--neighborhood-score 0)) |
| 1220 | (setq bubbles--save-data (list bubbles--score (buffer-string))) | 1220 | (setq bubbles--save-data (list bubbles--score (buffer-string))) |
| 1221 | (let ((inhibit-read-only t)) | 1221 | (let ((inhibit-read-only t)) |
| 1222 | ;; blank out current neighbourhood | 1222 | ;; blank out current neighborhood |
| 1223 | (let ((row (bubbles--row (point))) | 1223 | (let ((row (bubbles--row (point))) |
| 1224 | (col (bubbles--col (point)))) | 1224 | (col (bubbles--col (point)))) |
| 1225 | (goto-char (point-max)) | 1225 | (goto-char (point-max)) |
| @@ -1289,7 +1289,7 @@ Use optional parameter POS instead of point if given." | |||
| 1289 | (bubbles--update-faces-or-images) | 1289 | (bubbles--update-faces-or-images) |
| 1290 | (sit-for 0))) | 1290 | (sit-for 0))) |
| 1291 | (put-text-property (point-min) (point-max) 'removed nil) | 1291 | (put-text-property (point-min) (point-max) 'removed nil) |
| 1292 | (unless (bubbles--neighbourhood-available) | 1292 | (unless (bubbles--neighborhood-available) |
| 1293 | (bubbles--game-over))) | 1293 | (bubbles--game-over))) |
| 1294 | ;; undo | 1294 | ;; undo |
| 1295 | (setq buffer-undo-list '((apply bubbles-undo . nil))) | 1295 | (setq buffer-undo-list '((apply bubbles-undo . nil))) |
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 3ae9a21c3e4..daf8d299663 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -3504,7 +3504,7 @@ so that `occur-next' and `occur-prev' will work." | |||
| 3504 | 3504 | ||
| 3505 | ;; Originally this was sh-learn-region-indent (beg end) | 3505 | ;; Originally this was sh-learn-region-indent (beg end) |
| 3506 | ;; However, in practice this was awkward so I changed it to | 3506 | ;; However, in practice this was awkward so I changed it to |
| 3507 | ;; use the whole buffer. Use narrowing if needbe. | 3507 | ;; use the whole buffer. Use narrowing if need be. |
| 3508 | (defun sh-learn-buffer-indent (&optional arg) | 3508 | (defun sh-learn-buffer-indent (&optional arg) |
| 3509 | "Learn how to indent the buffer the way it currently is. | 3509 | "Learn how to indent the buffer the way it currently is. |
| 3510 | 3510 | ||