diff options
| author | Alan Mackenzie | 2019-09-08 10:44:27 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2019-09-08 10:44:27 +0000 |
| commit | 034f9363e316920cd79151ba40fd8a21f85a383b (patch) | |
| tree | 32da9430579a61d4d4fd85492da9889b754d7e8a | |
| parent | d42d46d11106a9541323e064792b23cc74c0f7f0 (diff) | |
| download | emacs-034f9363e316920cd79151ba40fd8a21f85a383b.tar.gz emacs-034f9363e316920cd79151ba40fd8a21f85a383b.zip | |
Fix untidinesses in compile.el.
* lisp/progmodes/compile.el (compilation--margin-string): Renamed from
compilation-margin-string. Use defconst rather than defvar. Use propertize
rather than a separate put-text-property. Trim the doc string.
| -rw-r--r-- | lisp/progmodes/compile.el | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index c1f23b16aa6..f0b34c702ca 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -2609,16 +2609,13 @@ column zero points to the current message." | |||
| 2609 | When non-nil, this overlay causes redisplay to display `overlay-arrow-string' | 2609 | When non-nil, this overlay causes redisplay to display `overlay-arrow-string' |
| 2610 | at the overlay's start position.") | 2610 | at the overlay's start position.") |
| 2611 | 2611 | ||
| 2612 | (defvar compilation-margin-string "=>" | 2612 | (defconst compilation--margin-string (propertize "=>" 'face 'default) |
| 2613 | "The string which will appear in the margin in compilation mode. | 2613 | "The string which will appear in the margin in compilation mode.") |
| 2614 | This must be two characters long; there should be no need to | ||
| 2615 | change the default.") | ||
| 2616 | (put-text-property 0 2 'face 'default compilation-margin-string) | ||
| 2617 | 2614 | ||
| 2618 | (defconst compilation--dummy-string | 2615 | (defconst compilation--dummy-string |
| 2619 | (propertize ">" 'display | 2616 | (propertize ">" 'display |
| 2620 | `((margin left-margin) ,compilation-margin-string)) | 2617 | `((margin left-margin) ,compilation--margin-string)) |
| 2621 | "A string which is only a placeholder for compilation-margin-string. | 2618 | "A string which is only a placeholder for `compilation--margin-string'. |
| 2622 | Actual value is never used, only the text property.") | 2619 | Actual value is never used, only the text property.") |
| 2623 | 2620 | ||
| 2624 | (defun compilation-set-up-arrow-spec-in-margin () | 2621 | (defun compilation-set-up-arrow-spec-in-margin () |