diff options
| author | Paul Eggert | 2011-08-25 15:38:52 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-25 15:38:52 -0700 |
| commit | ef25feb44365ed60211bc0b965e421b58b3dc075 (patch) | |
| tree | bdbccc2fb35e07bd89920ee001b096c2b0d484f4 | |
| parent | a974cdce9b9121158e623a3fab6ad731ff5d48ec (diff) | |
| parent | 3e8cd5ce9547c4482aca2a46a30a6d1a19e137c4 (diff) | |
| download | emacs-ef25feb44365ed60211bc0b965e421b58b3dc075.tar.gz emacs-ef25feb44365ed60211bc0b965e421b58b3dc075.zip | |
Merge from trunk.
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/battery.el | 17 | ||||
| -rw-r--r-- | lisp/isearch.el | 22 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 2 |
4 files changed, 51 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 064e745d1f5..b922e21681f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2011-08-25 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to | ||
| 4 | `search-whitespace-regexp' (bug#9364). | ||
| 5 | |||
| 6 | 2011-08-25 Juri Linkov <juri@jurta.org> | ||
| 7 | |||
| 8 | * isearch.el (isearch-edit-string): Let-bind `search-ring' and | ||
| 9 | `regexp-search-ring' to their global values to protect from | ||
| 10 | updating by `read-from-minibuffer' (bug#9185). | ||
| 11 | |||
| 12 | 2011-08-25 Juri Linkov <juri@jurta.org> | ||
| 13 | |||
| 14 | * textmodes/ispell.el (ispell-command-loop): Add newline | ||
| 15 | at the end of the "Use option `i'..." line. | ||
| 16 | |||
| 17 | 2011-08-25 Juri Linkov <juri@jurta.org> | ||
| 18 | |||
| 19 | * battery.el (display-battery-mode): If `battery-status-function' | ||
| 20 | or `battery-mode-line-format' is nil, display the message and set | ||
| 21 | `display-battery-mode' to nil (bug#9363). | ||
| 22 | |||
| 1 | 2011-08-25 Eli Zaretskii <eliz@gnu.org> | 23 | 2011-08-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 24 | ||
| 3 | * buff-menu.el (Buffer-menu-buffer+size): Remove calls to | 25 | * buff-menu.el (Buffer-menu-buffer+size): Remove calls to |
diff --git a/lisp/battery.el b/lisp/battery.el index e0bba96b655..f5c01fbef58 100644 --- a/lisp/battery.el +++ b/lisp/battery.el | |||
| @@ -173,13 +173,16 @@ seconds." | |||
| 173 | (setq battery-mode-line-string "") | 173 | (setq battery-mode-line-string "") |
| 174 | (or global-mode-string (setq global-mode-string '(""))) | 174 | (or global-mode-string (setq global-mode-string '(""))) |
| 175 | (and battery-update-timer (cancel-timer battery-update-timer)) | 175 | (and battery-update-timer (cancel-timer battery-update-timer)) |
| 176 | (if (not display-battery-mode) | 176 | (if (and battery-status-function battery-mode-line-format) |
| 177 | (setq global-mode-string | 177 | (if (not display-battery-mode) |
| 178 | (delq 'battery-mode-line-string global-mode-string)) | 178 | (setq global-mode-string |
| 179 | (add-to-list 'global-mode-string 'battery-mode-line-string t) | 179 | (delq 'battery-mode-line-string global-mode-string)) |
| 180 | (setq battery-update-timer (run-at-time nil battery-update-interval | 180 | (add-to-list 'global-mode-string 'battery-mode-line-string t) |
| 181 | 'battery-update-handler)) | 181 | (setq battery-update-timer (run-at-time nil battery-update-interval |
| 182 | (battery-update))) | 182 | 'battery-update-handler)) |
| 183 | (battery-update)) | ||
| 184 | (message "Battery status not available") | ||
| 185 | (setq display-battery-mode nil))) | ||
| 183 | 186 | ||
| 184 | (defun battery-update-handler () | 187 | (defun battery-update-handler () |
| 185 | (battery-update) | 188 | (battery-update) |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 7fcc31f188f..8764952dbf5 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -1132,6 +1132,14 @@ If first char entered is \\[isearch-yank-word-or-char], then do word search inst | |||
| 1132 | ;; Save current configuration so we can restore it here. | 1132 | ;; Save current configuration so we can restore it here. |
| 1133 | (isearch-window-configuration (current-window-configuration)) | 1133 | (isearch-window-configuration (current-window-configuration)) |
| 1134 | 1134 | ||
| 1135 | ;; This could protect the index of the search rings, | ||
| 1136 | ;; but we can't reliably count the number of typed M-p | ||
| 1137 | ;; in `read-from-minibuffer' to adjust the index accordingly. | ||
| 1138 | ;; So when the following is commented out, `isearch-mode' | ||
| 1139 | ;; below resets the index to the predictable value nil. | ||
| 1140 | ;; (search-ring-yank-pointer search-ring-yank-pointer) | ||
| 1141 | ;; (regexp-search-ring-yank-pointer regexp-search-ring-yank-pointer) | ||
| 1142 | |||
| 1135 | ;; Temporarily restore `minibuffer-message-timeout'. | 1143 | ;; Temporarily restore `minibuffer-message-timeout'. |
| 1136 | (minibuffer-message-timeout | 1144 | (minibuffer-message-timeout |
| 1137 | isearch-original-minibuffer-message-timeout) | 1145 | isearch-original-minibuffer-message-timeout) |
| @@ -1152,13 +1160,18 @@ If first char entered is \\[isearch-yank-word-or-char], then do word search inst | |||
| 1152 | 1160 | ||
| 1153 | (unwind-protect | 1161 | (unwind-protect |
| 1154 | (let* ((message-log-max nil) | 1162 | (let* ((message-log-max nil) |
| 1163 | ;; Protect global value of search rings from updating | ||
| 1164 | ;; by `read-from-minibuffer'. It should be updated only | ||
| 1165 | ;; by `isearch-update-ring' in `isearch-done', not here. | ||
| 1166 | (search-ring search-ring) | ||
| 1167 | (regexp-search-ring regexp-search-ring) | ||
| 1155 | ;; Binding minibuffer-history-symbol to nil is a work-around | 1168 | ;; Binding minibuffer-history-symbol to nil is a work-around |
| 1156 | ;; for some incompatibility with gmhist. | 1169 | ;; for some incompatibility with gmhist. |
| 1157 | (minibuffer-history-symbol)) | 1170 | (minibuffer-history-symbol)) |
| 1158 | (setq isearch-new-string | 1171 | (setq isearch-new-string |
| 1159 | (read-from-minibuffer | 1172 | (read-from-minibuffer |
| 1160 | (isearch-message-prefix nil nil isearch-nonincremental) | 1173 | (isearch-message-prefix nil nil isearch-nonincremental) |
| 1161 | (cons isearch-string (1+ (isearch-fail-pos))) | 1174 | (cons isearch-string (1+ (isearch-fail-pos))) |
| 1162 | minibuffer-local-isearch-map nil | 1175 | minibuffer-local-isearch-map nil |
| 1163 | (if isearch-regexp | 1176 | (if isearch-regexp |
| 1164 | (cons 'regexp-search-ring | 1177 | (cons 'regexp-search-ring |
| @@ -1432,9 +1445,10 @@ string. NLINES has the same meaning as in `occur'." | |||
| 1432 | (t (regexp-quote isearch-string))) | 1445 | (t (regexp-quote isearch-string))) |
| 1433 | (if current-prefix-arg (prefix-numeric-value current-prefix-arg)))) | 1446 | (if current-prefix-arg (prefix-numeric-value current-prefix-arg)))) |
| 1434 | (let ((case-fold-search isearch-case-fold-search) | 1447 | (let ((case-fold-search isearch-case-fold-search) |
| 1435 | ;; set `search-upper-case' to nil to not call | 1448 | ;; Set `search-upper-case' to nil to not call |
| 1436 | ;; `isearch-no-upper-case-p' in `occur-1' | 1449 | ;; `isearch-no-upper-case-p' in `occur-1'. |
| 1437 | (search-upper-case nil)) | 1450 | (search-upper-case nil) |
| 1451 | (search-spaces-regexp search-whitespace-regexp)) | ||
| 1438 | (occur regexp nlines))) | 1452 | (occur regexp nlines))) |
| 1439 | 1453 | ||
| 1440 | (declare-function hi-lock-read-face-name "hi-lock" ()) | 1454 | (declare-function hi-lock-read-face-name "hi-lock" ()) |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index c196218feec..5521cfd3de8 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1914,7 +1914,7 @@ Global `ispell-quit' set to start location to continue spell session." | |||
| 1914 | (setq line (1+ line)))) | 1914 | (setq line (1+ line)))) |
| 1915 | (insert (car guess) " ") | 1915 | (insert (car guess) " ") |
| 1916 | (setq guess (cdr guess))) | 1916 | (setq guess (cdr guess))) |
| 1917 | (insert "\nUse option `i' to accept this spelling and put it in your private dictionary.") | 1917 | (insert "\nUse option `i' to accept this spelling and put it in your private dictionary.\n") |
| 1918 | (setq line (+ line (if choices 3 2))))) | 1918 | (setq line (+ line (if choices 3 2))))) |
| 1919 | (while (and choices | 1919 | (while (and choices |
| 1920 | (< (if (> (+ 7 (current-column) (length (car choices)) | 1920 | (< (if (> (+ 7 (current-column) (length (car choices)) |