[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 1baa50b 05/46: tiny.el: fixed some typos.
From: |
Oleh Krehel |
Subject: |
[elpa] master 1baa50b 05/46: tiny.el: fixed some typos. |
Date: |
Sun, 22 Mar 2015 17:42:25 +0000 |
branch: master
commit 1baa50b55f4739e87ad1c5f838cde03f8cee011a
Author: oleh <address@hidden>
Commit: oleh <address@hidden>
tiny.el: fixed some typos.
---
tiny.el | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/tiny.el b/tiny.el
index 7c7c3f2..8b222a1 100644
--- a/tiny.el
+++ b/tiny.el
@@ -51,8 +51,12 @@
;; m25+x?A&c
;; m97,122stringx
;; m97,122stringxx
+;; m97,120stringxupcasex
+;; m97,120stringxupcasex)x
;; m10*2+3x
;; m\n;; 10expx
+;; m5\n;; 20expx&014.2f
+;; m, 7&0x&02x
;;
;; As you might have guessed, the syntax is as follows:
;; m[<range start:=0>][<separator:= >]<range end>[lisp expr][&][format expr]
@@ -72,7 +76,7 @@
It's intended to poll all registered expander functions
if they can expand the thing at point.
First one to return a string succeeds.
-These functions are expcted to set `tiny-beg' and `tiny-end'
+These functions are expected to set `tiny-beg' and `tiny-end'
to the bounds of the snippet that they matched.
At the moment, only `tiny-mapconcat' is supported.
`tiny-mapconcat2' should be added to expand rectangles."
@@ -93,7 +97,7 @@ At the moment, only `tiny-mapconcat' is supported.
(global-set-key (kbd "C-;") 'tiny-expand))
(defun tiny-replace-this-sexp ()
- "Intellegintly replace current sexp."
+ "Intelligently replace current sexp."
(interactive)
(or
(and (looking-back ")")
@@ -113,7 +117,7 @@ At the moment, only `tiny-mapconcat' is supported.
(defun tiny-replace-sexp-desperately ()
"Try to eval the current sexp.
Replace it if there's no error.
-Go upwards until it's posible to eval.
+Go upwards until it's possible to eval.
Skip lambdas."
(interactive)
(when (yas/snippets-at-point)
@@ -153,7 +157,7 @@ expression."
n1
n2
s1))))
-
+
(defun tiny-mapconcat-parse ()
"Try to match a snippet of this form:
m[START][SEPARATOR]END[EXPR][FORMAT]
@@ -162,7 +166,7 @@ m[START][SEPARATOR]END[EXPR][FORMAT]
* SEPARATOR - string, default is " "
* END - integer, required
* EXPR - lisp expression.
- Parens are optional if it's unabiguous, e.g.
+ Parens are optional if it's unambiguous, e.g.
`(* 2 (+ x 3))' can be shortened to *2+x3,
and `(exp x)' can be shortened to expx.
A closing paren may be added to resolve ambiguity:
@@ -224,6 +228,7 @@ m[START][SEPARATOR]END[EXPR][FORMAT]
t)
(list n1 s1 n2 expr fmt))))
+;; TODO: check for arity: this doesn't work: exptxy
(defun tiny-tokenize (str)
(ignore-errors
(let ((i 0)
- [elpa] master updated (302a16a -> 3f035ad), Oleh Krehel, 2015/03/22
- [elpa] master ae0853e 03/46: tiny.el: fixed two snippets., Oleh Krehel, 2015/03/22
- [elpa] master 1273eae 04/46: tiny.el: added to the comments., Oleh Krehel, 2015/03/22
- [elpa] master 086708f 01/46: Initial import., Oleh Krehel, 2015/03/22
- [elpa] master 1baa50b 05/46: tiny.el: fixed some typos.,
Oleh Krehel <=
- [elpa] master 466e02c 06/46: tiny.el: added a use case for multiple TODO items in org-mode., Oleh Krehel, 2015/03/22
- [elpa] master cc8d243 02/46: tiny.el: Added new test snippets., Oleh Krehel, 2015/03/22
- [elpa] master 7cc4e00 07/46: tiny.el: x can be reused in format string., Oleh Krehel, 2015/03/22
- [elpa] master d053709 08/46: tiny.el: expr now can return a list., Oleh Krehel, 2015/03/22
- [elpa] master 03aef85 09/46: tiny.el: fixed a bug introduced by previous commit., Oleh Krehel, 2015/03/22
- [elpa] master 835c63e 12/46: tiny.el: fixed a small whitespace issue in `tiny-tokenize'., Oleh Krehel, 2015/03/22
- [elpa] master 36c8dc0 10/46: tiny.el: added missing functions., Oleh Krehel, 2015/03/22
- [elpa] master 067e820 11/46: tiny.el: improved `tiny-mapconcat` and `tiny-mapconcat-parse'., Oleh Krehel, 2015/03/22
- [elpa] master cad8e50 13/46: tiny.el: added the option to include %(sexps) into the format string., Oleh Krehel, 2015/03/22
- [elpa] master 78241c4 15/46: tiny.el: fixed a bug for expansion of m5%x., Oleh Krehel, 2015/03/22