[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/paredit 121a8b4 104/224: Make backslash escape prompt less
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/paredit 121a8b4 104/224: Make backslash escape prompt less confusing. |
Date: |
Sat, 7 Aug 2021 09:22:28 -0400 (EDT) |
branch: elpa/paredit
commit 121a8b4dac5eb2f398ccfdc47008606ca91b3733
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>
Make backslash escape prompt less confusing.
Ignore-this: 6d25fd1fad7e584d421b9e57fa8ab69
At least one user, upon seeing Emacs say `Escaping character...',
checked top for its CPU usage!
Thanks, elly.
darcs-hash:20110323061213-00fcc-63e99f496e8afd219d3c5ea88f6499abcd4ade39
---
paredit.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/paredit.el b/paredit.el
index 0b3a72c..3d1ed25 100644
--- a/paredit.el
+++ b/paredit.el
@@ -313,9 +313,9 @@ Paredit behaves badly if parentheses are unbalanced, so
exercise
,(concat "(foo \"|(bar #\\\\x \\\"baz \\\\"
"\\\\ quux\\\")\" zot)")))
("\\" paredit-backslash
- ("(string #|)\n ; Escaping character... (x)"
+ ("(string #|)\n ; Character to escape: x"
"(string #\\x|)")
- ("\"foo|bar\"\n ; Escaping character... (\")"
+ ("\"foo|bar\"\n ; Character to escape: \""
"\"foo\\\"|bar\""))
(";" paredit-semicolon
("|(frob grovel)"
@@ -970,11 +970,14 @@ If not in a string, act as `paredit-doublequote'; if no
prefix argument
;; -- then delete the backslash to avoid a dangling escape.
(let ((delete-p t))
(unwind-protect
- (let ((char (read-char "Escaping character...")))
+ (let ((char (read-char "Character to escape: ")))
(if (not (eq char ?\^?))
- (progn (insert char) (setq delete-p nil))))
+ (progn (message "Character to escape: %c" char)
+ (insert char)
+ (setq delete-p nil))))
(if delete-p
- (backward-delete-char 1))))))
+ (progn (message "Deleting escape.")
+ (backward-delete-char 1)))))))
(defun paredit-newline ()
"Insert a newline and indent it.
- [nongnu] elpa/paredit 52670b7 079/224: Fix spacing in `paredit-newline' example., (continued)
- [nongnu] elpa/paredit 52670b7 079/224: Fix spacing in `paredit-newline' example., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit bd439e3 083/224: Avoid trailing space when `paredit-comment-dwim' inserts code comments., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2c972a9 095/224: Omit angled delimiters from the `paredit-open-...' tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 2a64a4c 064/224: Eliminate confusing comment over `paredit-splice-sexp'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 48480a1 084/224: Omit needless line break in `paredit-join-sexps'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 4d3ad1e 069/224: Simplify definition of `paredit-count-sexps-forward'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 8a2d457 093/224: Reindent in `paredit-open-round' &c. like `paredit-wrap-round' &c., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 980a4f4 091/224: Add rudimentary and preliminary test suite., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 33f9c67 100/224: Use `error', not `message', to report test failures in test.el., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 79e7555 086/224: Be more careful about deleting comment starts & ends., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 121a8b4 104/224: Make backslash escape prompt less confusing.,
ELPA Syncer <=
- [nongnu] elpa/paredit 41bbc20 078/224: Make `paredit-comment-dwim' code comment example work in isolation., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 5e210b2 087/224: Fix bug in recent change to more carefully delete comment ends., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d9ecc6d 094/224: Handle scan errors in `paredit-scan-sexps-hack'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 6c14694 113/224: Use `call-interactively' rather than `funcall' in `paredit-test'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 9cac6fa 106/224: Specify that paredit should work in XEmacs 21.5.28 or later., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 0bb4b62 110/224: Check for expected errors in `paredit-close-FOO'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 3c48233 122/224: Fix checks on deletion of comment boundaries., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 620c3a2 116/224: Break page in test.el before indentation regression tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit d681e3c 111/224: Check for expected errors in `paredit-forward-delete'., ELPA Syncer, 2021/08/07
- [nongnu] elpa/paredit 5dc93f9 114/224: Omit redundant `paredit-forward-delete' test., ELPA Syncer, 2021/08/07