summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-11-05 21:26:16 +0100
committerUlrich Müller <ulm@gentoo.org>2017-11-05 21:26:16 +0100
commited0bc984ab11e9485cd0438e7f139b708508bf5b (patch)
treecc5aa85801c0c1f8fc5e7582aea30083d37105d7
parentDocument that glep-mode does not work with XEmacs. (diff)
downloadebuild-mode-ed0bc984ab11e9485cd0438e7f139b708508bf5b.tar.gz
ebuild-mode-ed0bc984ab11e9485cd0438e7f139b708508bf5b.tar.bz2
ebuild-mode-ed0bc984ab11e9485cd0438e7f139b708508bf5b.zip
Make sentence-end-double-space local in glep-mode.
* glep-mode.el (glep-mode): Make sentence-end-double-space local in this buffer.
-rw-r--r--ChangeLog5
-rw-r--r--glep-mode.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5bd6159..c5d62dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-11-05 Ulrich Müller <ulm@gentoo.org>
+
+ * glep-mode.el (glep-mode): Make sentence-end-double-space local
+ in this buffer.
+
2017-10-29 Ulrich Müller <ulm@gentoo.org>
* ebuild-mode.texi (glep-mode): Document that glep-mode does not
diff --git a/glep-mode.el b/glep-mode.el
index e02135c..cb6b098 100644
--- a/glep-mode.el
+++ b/glep-mode.el
@@ -89,8 +89,8 @@ For efficiency only. Unlimited if nil.")
(setq tab-width 4)
;; GLEP 2 specifies double space after a full stop, and filling
;; of paragraphs to column 70.
- (setq sentence-end-double-space t)
(setq fill-column 70)
+ (set (make-local-variable 'sentence-end-double-space) t)
(add-hook 'font-lock-extend-region-functions
'glep-mode-font-lock-extend-region t)
(add-hook 'write-contents-hooks 'glep-mode-before-save t t))