aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2019-09-08 10:44:27 +0000
committerAlan Mackenzie2019-09-08 10:44:27 +0000
commit034f9363e316920cd79151ba40fd8a21f85a383b (patch)
tree32da9430579a61d4d4fd85492da9889b754d7e8a
parentd42d46d11106a9541323e064792b23cc74c0f7f0 (diff)
downloademacs-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.el11
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."
2609When non-nil, this overlay causes redisplay to display `overlay-arrow-string' 2609When non-nil, this overlay causes redisplay to display `overlay-arrow-string'
2610at the overlay's start position.") 2610at 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.")
2614This must be two characters long; there should be no need to
2615change 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'.
2622Actual value is never used, only the text property.") 2619Actual 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 ()