[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 835c63e 12/46: tiny.el: fixed a small whitespace issue in
From: |
Oleh Krehel |
Subject: |
[elpa] master 835c63e 12/46: tiny.el: fixed a small whitespace issue in `tiny-tokenize'. |
Date: |
Sun, 22 Mar 2015 17:42:28 +0000 |
branch: master
commit 835c63e2bbd116bea47e6620b11bfc75e76cda6a
Author: oleh <address@hidden>
Commit: oleh <address@hidden>
tiny.el: fixed a small whitespace issue in `tiny-tokenize'.
---
tiny.el | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/tiny.el b/tiny.el
index d186e73..06d77ca 100644
--- a/tiny.el
+++ b/tiny.el
@@ -306,10 +306,11 @@ m[START][SEPARATOR]END[EXPR][FORMAT]
(push " " out))
((string= s ")")
;; expect a close paren only if it's necessary
- (if (>= n-paren 2)
+ (if (>= n-paren 0)
(decf n-paren)
(error "unexpected \")\""))
- (pop out)
+ (when (string= (car out) " ")
+ (pop out))
(push ") " out))
((string= s "(")
;; open paren is used sometimes
@@ -341,7 +342,8 @@ m[START][SEPARATOR]END[EXPR][FORMAT]
(setq i j)
(setq j (1+ i))))
;; last space
- (pop out)
+ (when (string= (car out) " ")
+ (pop out))
(concat
(apply #'concat (nreverse out))
(make-string n-paren ?\))))))
- [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, 2015/03/22
- [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 <=
- [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
- [elpa] master 29b5b76 16/46: Added README.md, Oleh Krehel, 2015/03/22
- [elpa] master b9c35e1 17/46: README.md: minor update., Oleh Krehel, 2015/03/22
- [elpa] master 97b9fdf 14/46: tiny.el: fixed up the previous change., Oleh Krehel, 2015/03/22
- [elpa] master 80e64b8 18/46: README.md: minor update., Oleh Krehel, 2015/03/22
- [elpa] master 2bd9abb 21/46: tiny.el: moved tests to tiny-test.el., Oleh Krehel, 2015/03/22
- [elpa] master b99315d 20/46: tiny.el: updated the doc., Oleh Krehel, 2015/03/22