Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7e99158a
Commit
7e99158a
authored
Dec 27, 2013
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling and typo fixes.
parent
4364185f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
lisp/abbrev.el
lisp/abbrev.el
+1
-1
lisp/elec-pair.el
lisp/elec-pair.el
+6
-6
test/automated/electric-tests.el
test/automated/electric-tests.el
+2
-2
No files found.
lisp/abbrev.el
View file @
7e99158a
...
...
@@ -421,7 +421,7 @@ A prefix argument means don't query; expand all abbrevs."
\(fn ABBREV PROP)"
)
(
defalias
'abbrev-put
'put
"Set the property PROP of abbrev ABREV to value VAL.
"Set the property PROP of abbrev AB
B
REV to value VAL.
See `define-abbrev' for the effect of some special properties.
\(fn ABBREV PROP VAL)"
)
...
...
lisp/elec-pair.el
View file @
7e99158a
...
...
@@ -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 parenthes
i
s and
predicates re
s
ponsible for making decisions on whether to pair/skip some
characters based on the actual state of the buffer's parenthes
e
s 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 DIRECTION
S
'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 descri
p
tions (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
up
listing.
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
...
...
test/automated/electric-tests.el
View file @
7e99158a
...
...
@@ -186,7 +186,7 @@ Should %s \"%s\" and point at %d"
bindings
fixture-fn))))))
;;; Basic pair
ing
s and skip
ping
s
;;; Basic pairs and skips
;;;
(define-electric-pair-test balanced-situation
"
(())
" "
(((((((
" :skip-pair-string "
ppppppp
"
...
...
@@ -237,7 +237,7 @@ Should %s \"%s\" and point at %d"
(define-electric-pair-test find-matching-different-paren-type-inside-list
"
(
()
]
)
" "
-[-----
" :skip-pair-string "
-------
")
(define-electric-pair-test ignore-different-
u
nmatching-paren-type
(define-electric-pair-test ignore-different-
no
nmatching-paren-type
"
(
()
]
)
" "
-
(
-----
" :skip-pair-string "
-p-----
")
(define-electric-pair-test autopair-keep-least-amount-of-mixed-unbalance
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment