aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Branham2019-02-10 14:32:29 -0600
committerEli Zaretskii2019-02-15 10:38:11 +0200
commitcef2489379ee8d7d7752775abb70c367c301e6cf (patch)
tree92f1543cb01e3080c7ad15fc12ce22fda29af6b3
parentb439b4393cbd0b98c14b72e791af7a5e4f8aced7 (diff)
downloademacs-cef2489379ee8d7d7752775abb70c367c301e6cf.tar.gz
emacs-cef2489379ee8d7d7752775abb70c367c301e6cf.zip
Use lexical binding for conf-mode
* lisp/textmodes/conf-mode.el: Use lexical binding. (conf-align-assignments, conf-quote-normal, conf-mode-initialize): Doc fix. (Bug#34419)
-rw-r--r--lisp/textmodes/conf-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/conf-mode.el b/lisp/textmodes/conf-mode.el
index ad79ca4c26b..ad9f60fabca 100644
--- a/lisp/textmodes/conf-mode.el
+++ b/lisp/textmodes/conf-mode.el
@@ -1,4 +1,4 @@
1;;; conf-mode.el --- Simple major mode for editing conf/ini/properties files 1;;; conf-mode.el --- Simple major mode for editing conf/ini/properties files -*- lexical-binding: t; -*-
2 2
3;; Copyright (C) 2004-2019 Free Software Foundation, Inc. 3;; Copyright (C) 2004-2019 Free Software Foundation, Inc.
4 4
@@ -281,10 +281,10 @@ whitespace.")
281;; If anybody can figure out how to get the same effect by configuring 281;; If anybody can figure out how to get the same effect by configuring
282;; `align', I'd be glad to hear. 282;; `align', I'd be glad to hear.
283(defun conf-align-assignments (&optional arg) 283(defun conf-align-assignments (&optional arg)
284 (interactive "P")
285 "Align the assignments in the buffer or active region. 284 "Align the assignments in the buffer or active region.
286In Transient Mark mode, if the mark is active, operate on the 285In Transient Mark mode, if the mark is active, operate on the
287contents of the region. Otherwise, operate on the whole buffer." 286contents of the region. Otherwise, operate on the whole buffer."
287 (interactive "P")
288 (setq arg (if arg 288 (setq arg (if arg
289 (prefix-numeric-value arg) 289 (prefix-numeric-value arg)
290 conf-assignment-column)) 290 conf-assignment-column))
@@ -323,7 +323,7 @@ contents of the region. Otherwise, operate on the whole buffer."
323 323
324(defun conf-quote-normal (arg) 324(defun conf-quote-normal (arg)
325 "Set the syntax of \\=' and \" to punctuation. 325 "Set the syntax of \\=' and \" to punctuation.
326With prefix arg, only do it for \\=' if 1, or only for \" if 2. 326With prefix ARG, only do it for \\=' if 1, or only for \" if 2.
327This only affects the current buffer. Some conf files use quotes 327This only affects the current buffer. Some conf files use quotes
328to delimit strings, while others allow quotes as simple parts of 328to delimit strings, while others allow quotes as simple parts of
329the assigned value. In those files font locking will be wrong, 329the assigned value. In those files font locking will be wrong,
@@ -442,7 +442,7 @@ See also `conf-space-mode', `conf-colon-mode', `conf-javaprop-mode',
442 (run-mode-hooks 'conf-mode-hook))) 442 (run-mode-hooks 'conf-mode-hook)))
443 443
444(defun conf-mode-initialize (comment &optional font-lock) 444(defun conf-mode-initialize (comment &optional font-lock)
445 "Initializations for sub-modes of conf-mode. 445 "Initializations for sub-modes of `conf-mode'.
446COMMENT initializes `comment-start' and `comment-start-skip'. 446COMMENT initializes `comment-start' and `comment-start-skip'.
447The optional arg FONT-LOCK is the value for FONT-LOCK-KEYWORDS." 447The optional arg FONT-LOCK is the value for FONT-LOCK-KEYWORDS."
448 (set (make-local-variable 'comment-start) comment) 448 (set (make-local-variable 'comment-start) comment)