diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-07 15:46:13 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-07 15:48:31 -0200 |
commit | c46dd1cde6d8428a73be0f2e6918b701af541004 (patch) | |
tree | 02a176fbe777653dff746d4c401c46a678b2f4b7 | |
parent | adbf1e311eaafbec2476fe08a5ba81672f25eb79 (diff) |
Fix sx-format-replacements
replace-match moves point
-rw-r--r-- | sx.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -369,7 +369,8 @@ if ALIST contains a different string at the ?% entry." (format (concat "%" flag "s") val) (cdr-safe (assq char property-alist)))) ;; Delete the specifier body. - (replace-match "") + (delete-region (match-beginning 0) + (match-end 0)) ;; Delete `char-after'. (delete-char 1))) (buffer-string)))) |