diff options
| author | Alex Branham | 2019-02-10 14:32:29 -0600 |
|---|---|---|
| committer | Eli Zaretskii | 2019-02-15 10:38:11 +0200 |
| commit | cef2489379ee8d7d7752775abb70c367c301e6cf (patch) | |
| tree | 92f1543cb01e3080c7ad15fc12ce22fda29af6b3 | |
| parent | b439b4393cbd0b98c14b72e791af7a5e4f8aced7 (diff) | |
| download | emacs-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.el | 8 |
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. |
| 286 | In Transient Mark mode, if the mark is active, operate on the | 285 | In Transient Mark mode, if the mark is active, operate on the |
| 287 | contents of the region. Otherwise, operate on the whole buffer." | 286 | contents 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. |
| 326 | With prefix arg, only do it for \\=' if 1, or only for \" if 2. | 326 | With prefix ARG, only do it for \\=' if 1, or only for \" if 2. |
| 327 | This only affects the current buffer. Some conf files use quotes | 327 | This only affects the current buffer. Some conf files use quotes |
| 328 | to delimit strings, while others allow quotes as simple parts of | 328 | to delimit strings, while others allow quotes as simple parts of |
| 329 | the assigned value. In those files font locking will be wrong, | 329 | the 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'. |
| 446 | COMMENT initializes `comment-start' and `comment-start-skip'. | 446 | COMMENT initializes `comment-start' and `comment-start-skip'. |
| 447 | The optional arg FONT-LOCK is the value for FONT-LOCK-KEYWORDS." | 447 | The 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) |