diff options
| author | Stefan Monnier | 2004-11-15 23:10:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-11-15 23:10:38 +0000 |
| commit | 9c8e6c852cb5046b20bdcadc491f289ddb1709cf (patch) | |
| tree | 2fa805e0c4d616e892d7ba6281a8551998594433 | |
| parent | fbee29e6e13605693435420cfc26728a3d074c85 (diff) | |
| download | emacs-9c8e6c852cb5046b20bdcadc491f289ddb1709cf.tar.gz emacs-9c8e6c852cb5046b20bdcadc491f289ddb1709cf.zip | |
(compilation-move-to-column): New fun.
(compilation-internal-error-properties)
(compilation-next-error-function): Use it to make sure we don't go past
the end of line.
| -rw-r--r-- | lisp/ChangeLog | 27 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 23 |
2 files changed, 32 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec09e119786..0c803b26723 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2004-11-15 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/compile.el (compilation-move-to-column): New fun. | ||
| 4 | (compilation-internal-error-properties) | ||
| 5 | (compilation-next-error-function): Use it to make sure we don't go past | ||
| 6 | the end of line. | ||
| 7 | |||
| 1 | 2004-11-15 John Paul Wallington <jpw@gnu.org> | 8 | 2004-11-15 John Paul Wallington <jpw@gnu.org> |
| 2 | 9 | ||
| 3 | * autoinsert.el (auto-insert-alist): Insert the user's name in | 10 | * autoinsert.el (auto-insert-alist): Insert the user's name in |
| @@ -15,10 +22,10 @@ | |||
| 15 | 22 | ||
| 16 | 2004-11-15 Jay Belanger <belanger@truman.edu> | 23 | 2004-11-15 Jay Belanger <belanger@truman.edu> |
| 17 | 24 | ||
| 18 | * calc/calcalg2.el (math-integrate-by-parts): Removed unused | 25 | * calc/calcalg2.el (math-integrate-by-parts): Remove unused |
| 19 | variable var-thing. | 26 | variable var-thing. |
| 20 | 27 | ||
| 21 | (math-integ-depth, math-integ-level, math-integral-limit) | 28 | (math-integ-depth, math-integ-level, math-integral-limit) |
| 22 | (math-enable-subst, math-any-substs, math-integ-msg) | 29 | (math-enable-subst, math-any-substs, math-integ-msg) |
| 23 | (math-prev-parts-v, math-good-parts, math-max-integral-limit) | 30 | (math-prev-parts-v, math-good-parts, math-max-integral-limit) |
| 24 | (math-int-threshold, math-int-factors, math-double-roots) | 31 | (math-int-threshold, math-int-factors, math-double-roots) |
| @@ -26,8 +33,8 @@ | |||
| 26 | (var-GenCount): Declare these variables. | 33 | (var-GenCount): Declare these variables. |
| 27 | (calcFunc-integ): Don't check if var-IntegLimit is bound. | 34 | (calcFunc-integ): Don't check if var-IntegLimit is bound. |
| 28 | 35 | ||
| 29 | (math-integral-cache, math-integral-cache-state): Move | 36 | (math-integral-cache, math-integral-cache-state): |
| 30 | declarations to earlier in the file. | 37 | Move declarations to earlier in the file. |
| 31 | 38 | ||
| 32 | (math-deriv-var, math-deriv-total, math-deriv-symb) | 39 | (math-deriv-var, math-deriv-total, math-deriv-symb) |
| 33 | (math-cur-record, math-has-rules, math-t1, math-t2, math-t3) | 40 | (math-cur-record, math-has-rules, math-t1, math-t2, math-t3) |
| @@ -39,13 +46,13 @@ | |||
| 39 | (math-integral, math-replace-integral-parts) | 46 | (math-integral, math-replace-integral-parts) |
| 40 | (math-integrate-by-parts, calc-dump-integral-cache) | 47 | (math-integrate-by-parts, calc-dump-integral-cache) |
| 41 | (math-try-integral, math-do-integral, math-do-integral) | 48 | (math-try-integral, math-do-integral, math-do-integral) |
| 42 | (math-do-integral-methods, math-try-solve-for) | 49 | (math-do-integral-methods, math-try-solve-for) |
| 43 | (math-try-solve-prod, math-solve-poly-funny-powers) | 50 | (math-try-solve-prod, math-solve-poly-funny-powers) |
| 44 | (math-solve-crunch-poly, math-decompose-poly) | 51 | (math-solve-crunch-poly, math-decompose-poly) |
| 45 | (math-solve-find-root-term, math-find-root-in-prod) | 52 | (math-solve-find-root-term, math-find-root-in-prod) |
| 46 | (math-integ-try-linear-substitutions) | 53 | (math-integ-try-linear-substitutions) |
| 47 | (math-integ-try-substitutions, math-expr-rational-in) | 54 | (math-integ-try-substitutions, math-expr-rational-in) |
| 48 | (math-expr-rational-in-rec, calcFunc-table, math-scan-for-limits) | 55 | (math-expr-rational-in-rec, calcFunc-table, math-scan-for-limits) |
| 49 | (math-solve-prod, math-solve-quartic, math-poly-all-roots) | 56 | (math-solve-prod, math-solve-quartic, math-poly-all-roots) |
| 50 | (math-solve-for, math-solve-system, math-solve-system-rec) | 57 | (math-solve-for, math-solve-system, math-solve-system-rec) |
| 51 | (math-solve-get-sign, math-solve-get-int) | 58 | (math-solve-get-sign, math-solve-get-int) |
| @@ -58,7 +65,7 @@ | |||
| 58 | 65 | ||
| 59 | 2004-11-14 Daniel Pfeiffer <occitan@esperanto.org> | 66 | 2004-11-14 Daniel Pfeiffer <occitan@esperanto.org> |
| 60 | 67 | ||
| 61 | * files.el (auto-mode-alist): handle .gtkrc, and under /etc | 68 | * files.el (auto-mode-alist): Handle .gtkrc, and under /etc |
| 62 | passwd, group, shadow, default/* and pam.d/*. | 69 | passwd, group, shadow, default/* and pam.d/*. |
| 63 | 70 | ||
| 64 | 2004-11-14 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 71 | 2004-11-14 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| @@ -312,6 +319,10 @@ | |||
| 312 | 319 | ||
| 313 | 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca> | 320 | 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 314 | 321 | ||
| 322 | * emacs-lisp/easymenu.el (easy-menu-define-key): Understand the case | ||
| 323 | where the keymap is a symbol. | ||
| 324 | (easy-menu-add-item): Use keymap-prompt. Simplify. | ||
| 325 | |||
| 315 | * files.el (magic-mode-alist): Reduce backtracking in the HTML regexp. | 326 | * files.el (magic-mode-alist): Reduce backtracking in the HTML regexp. |
| 316 | 327 | ||
| 317 | * textmodes/sgml-mode.el (sgml-tag-text-p): New fun. | 328 | * textmodes/sgml-mode.el (sgml-tag-text-p): New fun. |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 895b97b462a..fb2e2e78317 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -606,6 +606,14 @@ Faces `compilation-error-face', `compilation-warning-face', | |||
| 606 | 2))) | 606 | 2))) |
| 607 | (compilation-internal-error-properties file line end-line col end-col type fmt))) | 607 | (compilation-internal-error-properties file line end-line col end-col type fmt))) |
| 608 | 608 | ||
| 609 | (defun compilation-move-to-column (col screen) | ||
| 610 | "Go to column COL on the current line. | ||
| 611 | If SCREEN is non-nil, columns are screen columns, otherwise, they are | ||
| 612 | just char-counts." | ||
| 613 | (if screen | ||
| 614 | (move-to-column col) | ||
| 615 | (goto-char (min (+ (line-beginning-position) col) (line-end-position))))) | ||
| 616 | |||
| 609 | (defun compilation-internal-error-properties (file line end-line col end-col type fmt) | 617 | (defun compilation-internal-error-properties (file line end-line col end-col type fmt) |
| 610 | "Get the meta-info that will be added as text-properties. | 618 | "Get the meta-info that will be added as text-properties. |
| 611 | LINE, END-LINE, COL, END-COL are integers or nil. | 619 | LINE, END-LINE, COL, END-COL are integers or nil. |
| @@ -640,17 +648,15 @@ FILE should be (ABSOLUTE-FILENAME) or (RELATIVE-FILENAME . DIRNAME) or nil." | |||
| 640 | (beginning-of-line (- (or end-line line) marker-line -1)) | 648 | (beginning-of-line (- (or end-line line) marker-line -1)) |
| 641 | (if (or (null end-col) (< end-col 0)) | 649 | (if (or (null end-col) (< end-col 0)) |
| 642 | (end-of-line) | 650 | (end-of-line) |
| 643 | (if compilation-error-screen-columns | 651 | (compilation-move-to-column |
| 644 | (move-to-column end-col) | 652 | end-col compilation-error-screen-columns)) |
| 645 | (forward-char end-col))) | ||
| 646 | (setq end-marker (list (point-marker)))) | 653 | (setq end-marker (list (point-marker)))) |
| 647 | (beginning-of-line (if end-line | 654 | (beginning-of-line (if end-line |
| 648 | (- line end-line -1) | 655 | (- line end-line -1) |
| 649 | (- loc marker-line -1))) | 656 | (- loc marker-line -1))) |
| 650 | (if col | 657 | (if col |
| 651 | (if compilation-error-screen-columns | 658 | (compilation-move-to-column |
| 652 | (move-to-column col) | 659 | col compilation-error-screen-columns) |
| 653 | (forward-char col)) | ||
| 654 | (forward-to-indentation 0)) | 660 | (forward-to-indentation 0)) |
| 655 | (setq marker (list (point-marker)))))) | 661 | (setq marker (list (point-marker)))))) |
| 656 | 662 | ||
| @@ -1491,10 +1497,7 @@ Use this command in a compilation log buffer. Sets the mark at point there." | |||
| 1491 | (if (car col) | 1497 | (if (car col) |
| 1492 | (if (eq (car col) -1) ; special case for range end | 1498 | (if (eq (car col) -1) ; special case for range end |
| 1493 | (end-of-line) | 1499 | (end-of-line) |
| 1494 | (if columns | 1500 | (compilation-move-to-column (car col) columns)) |
| 1495 | (move-to-column (car col)) | ||
| 1496 | (beginning-of-line) | ||
| 1497 | (forward-char (car col)))) | ||
| 1498 | (beginning-of-line) | 1501 | (beginning-of-line) |
| 1499 | (skip-chars-forward " \t")) | 1502 | (skip-chars-forward " \t")) |
| 1500 | (if (nth 3 col) | 1503 | (if (nth 3 col) |