summaryrefslogtreecommitdiff
path: root/lisp/paren.el
diff options
context:
space:
mode:
authorSimen Heggestøyl <simenheg@gmail.com>2019-05-26 11:11:23 +0200
committerSimen Heggestøyl <simenheg@gmail.com>2019-05-26 11:22:27 +0200
commita51ab2f357af49f67feaa6e9484fcca2c91f5cb4 (patch)
treed5ed557ed8728b76cea4cb2952375cb6622112b7 /lisp/paren.el
parent852d28176990d035366142bfde36a0440a317228 (diff)
downloademacs-a51ab2f357af49f67feaa6e9484fcca2c91f5cb4.tar.gz
Use lexical-binding in paren.el and add tests
* lisp/paren.el: Use lexical-binding. (show-paren--default): Use imperative form in doc-string. * test/lisp/paren-tests.el: New file with tests for paren.el.
Diffstat (limited to 'lisp/paren.el')
-rw-r--r--lisp/paren.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/paren.el b/lisp/paren.el
index 13908d46eef..c7d782a8a1d 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -1,4 +1,4 @@
-;;; paren.el --- highlight matching paren
+;;; paren.el --- highlight matching paren -*- lexical-binding:t -*-
;; Copyright (C) 1993, 1996, 2001-2019 Free Software Foundation, Inc.
@@ -173,7 +173,7 @@ if there's no opener/closer near point, or a list of the form
Where HERE-BEG..HERE-END is expected to be near point.")
(defun show-paren--default ()
- "Finds the opener/closer near point and its match.
+ "Find the opener/closer near point and its match.
It is the default value of `show-paren-data-function'."
(let* ((temp (show-paren--locate-near-paren))