summaryrefslogtreecommitdiff
path: root/lisp/elec-pair.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-12-27 22:37:35 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-12-27 22:37:35 -0800
commit7e99158aac0347f62647618200fc5d90681cd2e9 (patch)
tree437b0c6b1cf27a5526299399ba8b0e6d839c22bd /lisp/elec-pair.el
parent4364185f73c426c17de2892d41992f080c6d433c (diff)
downloademacs-7e99158aac0347f62647618200fc5d90681cd2e9.tar.gz
Spelling and typo fixes.
Diffstat (limited to 'lisp/elec-pair.el')
-rw-r--r--lisp/elec-pair.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/elec-pair.el b/lisp/elec-pair.el
index f3832004751..1691fbbfec3 100644
--- a/lisp/elec-pair.el
+++ b/lisp/elec-pair.el
@@ -92,8 +92,8 @@ closer."
The default values of `electric-pair-inhibit-predicate' and
`electric-pair-skip-self' check this variable before delegating to other
-predicates reponsible for making decisions on whether to pair/skip some
-characters based on the actual state of the buffer's parenthesis and
+predicates responsible for making decisions on whether to pair/skip some
+characters based on the actual state of the buffer's parentheses and
quotes."
:version "24.4"
:group 'electricity
@@ -274,17 +274,17 @@ when to fallback to `parse-partial-sexp'."
;; doesn't keep `electric-pair-mode' from balancing your ()'s and your
;; []'s.
(defun electric-pair--balance-info (direction string-or-comment)
- "Examine lists forward or backward according to DIRECTIONS's sign.
+ "Examine lists forward or backward according to DIRECTION's sign.
STRING-OR-COMMENT is info suitable for running `parse-partial-sexp'.
-Return a cons of two descritions (MATCHED-P . PAIR) for the
+Return a cons of two descriptions (MATCHED-P . PAIR) for the
innermost and outermost lists that enclose point. The outermost
list enclosing point is either the first top-level or first
-mismatched list found by uplisting.
+mismatched list found by listing up.
If the outermost list is matched, don't rely on its PAIR. If
-point is not enclosed by any lists, return ((T) (T))."
+point is not enclosed by any lists, return ((T) . (T))."
(let* (innermost
outermost
(table (if string-or-comment