diff options
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/bibtex.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/table.el | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index 9d6d19e6e1e..b1232d4c0a0 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -2099,7 +2099,7 @@ If FLAG is nil, a message is echoed if point was incremented at least | |||
| 2099 | (let* ((size (- (point-max) (point-min))) | 2099 | (let* ((size (- (point-max) (point-min))) |
| 2100 | (perc (if (= size 0) | 2100 | (perc (if (= size 0) |
| 2101 | 100 | 2101 | 100 |
| 2102 | (/ (* 100 (- (point) (point-min))) size)))) | 2102 | (floor (* 100.0 (- (point) (point-min))) size)))) |
| 2103 | (when (>= perc (+ bibtex-progress-lastperc | 2103 | (when (>= perc (+ bibtex-progress-lastperc |
| 2104 | bibtex-progress-interval)) | 2104 | bibtex-progress-interval)) |
| 2105 | (setq bibtex-progress-lastperc perc) | 2105 | (setq bibtex-progress-lastperc perc) |
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index e0749180611..64aa3de146e 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -1350,7 +1350,7 @@ that may be included as part of a word (see `ispell-dictionary-alist')." | |||
| 1350 | (if (and flyspell-issue-message-flag (= count 100)) | 1350 | (if (and flyspell-issue-message-flag (= count 100)) |
| 1351 | (progn | 1351 | (progn |
| 1352 | (message "Spell Checking...%d%%" | 1352 | (message "Spell Checking...%d%%" |
| 1353 | (* 100 (/ (float (- (point) beg)) (- end beg)))) | 1353 | (floor (* 100.0 (- (point) beg)) (- end beg))) |
| 1354 | (setq count 0)) | 1354 | (setq count 0)) |
| 1355 | (setq count (+ 1 count))) | 1355 | (setq count (+ 1 count))) |
| 1356 | (flyspell-word) | 1356 | (flyspell-word) |
| @@ -1403,7 +1403,7 @@ The buffer to mark them in is `flyspell-large-region-buffer'." | |||
| 1403 | ;; be unnecessary too. -- rms. | 1403 | ;; be unnecessary too. -- rms. |
| 1404 | (if flyspell-issue-message-flag | 1404 | (if flyspell-issue-message-flag |
| 1405 | (message "Spell Checking...%d%% [%s]" | 1405 | (message "Spell Checking...%d%% [%s]" |
| 1406 | (* 100 (/ (float (point)) (point-max))) | 1406 | (floor (* 100.0 (point)) (point-max)) |
| 1407 | word)) | 1407 | word)) |
| 1408 | (with-current-buffer flyspell-large-region-buffer | 1408 | (with-current-buffer flyspell-large-region-buffer |
| 1409 | (goto-char buffer-scan-pos) | 1409 | (goto-char buffer-scan-pos) |
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index edc78e52efa..fa9f0fa638a 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -1893,7 +1893,9 @@ all the table specific features." | |||
| 1893 | (while (and (re-search-forward border3 (point-max) t) | 1893 | (while (and (re-search-forward border3 (point-max) t) |
| 1894 | (not (and (input-pending-p) | 1894 | (not (and (input-pending-p) |
| 1895 | table-abort-recognition-when-input-pending))) | 1895 | table-abort-recognition-when-input-pending))) |
| 1896 | (message "Recognizing tables...(%d%%)" (/ (* 100 (match-beginning 0)) (- (point-max) (point-min)))) | 1896 | (message "Recognizing tables...(%d%%)" |
| 1897 | (floor (* 100.0 (match-beginning 0)) | ||
| 1898 | (- (point-max) (point-min)))) | ||
| 1897 | (let ((beg (match-beginning 0)) | 1899 | (let ((beg (match-beginning 0)) |
| 1898 | end) | 1900 | end) |
| 1899 | (if (re-search-forward non-border (point-max) t) | 1901 | (if (re-search-forward non-border (point-max) t) |