[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tomelr 7c004af90d 66/84: style: Remove unnecessary tome
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tomelr 7c004af90d 66/84: style: Remove unnecessary tomelr-encode-* functions |
Date: |
Tue, 3 May 2022 09:58:14 -0400 (EDT) |
branch: externals/tomelr
commit 7c004af90d70b0e86772496607ab21ed375fe8e2
Author: Kaushal Modi <kaushal.modi@gmail.com>
Commit: Kaushal Modi <kaushal.modi@gmail.com>
style: Remove unnecessary tomelr-encode-* functions
---
tomelr.el | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/tomelr.el b/tomelr.el
index 20d9a3190e..54e0164b64 100644
--- a/tomelr.el
+++ b/tomelr.el
@@ -129,9 +129,7 @@ Optional TYPE arg gives more information about the input
STRING.
For example, if the string is the name of a TOML key, it will be
set to `keyword'.
-Return the same STRING passed as input. See
-`tomelr-encode-string' instead if you need a function that
-returns the TOML representation as a string."
+Return the same STRING passed as input."
;; (message "[tomelr--print-string DBG] string = `%s'" string)
(let ((special-chars '((?b . ?\b) ;U+0008
(?f . ?\f) ;U+000C
@@ -176,10 +174,6 @@ returns the TOML representation as a string."
(and end-q (insert end-q))
string))
-(defun tomelr-encode-string (string)
- "Return a TOML representation of STRING."
- (tomelr--with-output-to-string (tomelr--print-string string)))
-
(defun tomelr--print-stringlike (object &optional type)
"Insert OBJECT encoded as a TOML string at point.
@@ -324,8 +318,7 @@ Definition of a TOML Table Array (TTA):
(format "[[%s]]" (string-join tomelr--print-table-hierarchy "."))))
(defun tomelr--print-array (array)
- "Insert a TOML representation of ARRAY at point.
-See `tomelr-encode-array' that returns the same as a string."
+ "Insert a TOML representation of ARRAY at point."
;; (message "[tomelr--print-array DBG] array = %S, TTA = %S"
;; array (tomelr--toml-table-array-p array))
(cond
@@ -352,11 +345,6 @@ See `tomelr-encode-array' that returns the same as a
string."
(insert " "))
(insert "]"))))
-(defun tomelr-encode-array (array)
- "Return a TOML representation of ARRAY.
-ARRAY can also be a list."
- (tomelr--with-output-to-string (tomelr--print-array array)))
-
;;;; Print wrapper
(defun tomelr--print (object)
"Insert a TOML representation of OBJECT at point.
- [elpa] externals/tomelr ed13b73e9b 74/84: feat: Support string keys, (continued)
- [elpa] externals/tomelr ed13b73e9b 74/84: feat: Support string keys, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr de661716af 72/84: style: Remove space from after and before [ and ] brackets, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 334b7cba54 76/84: refactor: Don't attempt to triple-quote TOML keys, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr c2d1328c44 80/84: fix: Boolean coercing when value is a symbol true or false, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr ebe5959174 75/84: feat: Auto-coerce string to boolean, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr a676192b43 81/84: fix: Integer coercing of a number strings with underscores, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 8da825067b 15/84: chore(readme): Update, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 65653d53ee 30/84: chore(doc): M-x checkdoc fixes, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr bcaea16ec0 39/84: chore(doc): Clean up old code block, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 45542fb234 67/84: chore: Bump version, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 7c004af90d 66/84: style: Remove unnecessary tomelr-encode-* functions,
ELPA Syncer <=
- [elpa] externals/tomelr 568de5efb2 83/84: chore: Bump version, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 0d4674f782 42/84: test: Test `tomelr--toml-table-p`, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 0eb4fa04ac 43/84: fix: Don't let array of TOML tables be recognized as TOML tables, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr a33dbd1286 50/84: fix: Detect nested TTA correctly when not present in first TT key, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr dc9b2a63f8 60/84: doc: Remove an invalid example, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 044b5e1a04 61/84: fix: TT with key with array value are detected correctly, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 171e5a7682 62/84: fix: List format array of plists now detected as TOML Table Array, ELPA Syncer, 2022/05/03
- [elpa] externals/tomelr 57bed2cca8 73/84: test: Add a test for string scalar with blank lines, ELPA Syncer, 2022/05/03