[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 24/117: Comment ergoemacs-substitute-command-keys
From: |
Matthew Fidler |
Subject: |
[elpa] 24/117: Comment ergoemacs-substitute-command-keys |
Date: |
Fri, 25 Jul 2014 13:23:58 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 62f15a0ccc43dbdcb9de653770af1eff9f5fec0e
Author: Matthew L. Fidler <address@hidden>
Date: Wed Jul 16 07:06:02 2014 -0500
Comment ergoemacs-substitute-command-keys
---
ergoemacs-advices.el | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ergoemacs-advices.el b/ergoemacs-advices.el
index 648003b..ddabc76 100644
--- a/ergoemacs-advices.el
+++ b/ergoemacs-advices.el
@@ -483,23 +483,23 @@ Otherwise, return a new string, without any text
properties."
(setq ret (ergoemacs-real-substitute-command-keys string))
(while (string-match
"\\(\\(?:\\\\=\\)?\\)\\\\\\(\\[\\|<\\|{\\)\\(.*?\\)\\(\\]\\|>\\|}\\)" string pt)
(cond
- ((string-match-p "\\\\=" (match-string 1 string))
+ ((string-match-p "\\\\=" (match-string 1 string)) ; Quoted
(setq pt (+ (length (match-string 2 string))
(length (match-string 3 string))
(length (match-string 4 string))
(match-beginning 0)))
(setq string (replace-match "\\\\\\2\\3\\4" t nil string)))
- ((and (string-match-p "<" (match-string 2 string))
+ ((and (string-match-p "<" (match-string 2 string)) ; Choose Map
\<>
(string-match-p ">" (match-string 4 string)))
(setq mapvar (concat "\\<" (match-string 3 string) ">"))
(setq string (replace-match "" nil nil string))
(setq pt (match-beginning 0)))
- ((and (string-match-p "{" (match-string 2 string))
+ ((and (string-match-p "{" (match-string 2 string)) ; Entire map
(string-match-p "}" (match-string 4 string)))
(setq tmp (ergoemacs-substitute-map (match-string 0 string)))
(setq string (replace-match tmp t t string))
(setq pt (+ (length tmp) (match-beginning 0))))
- ((and (string-match-p "\\[" (match-string 2 string))
+ ((and (string-match-p "\\[" (match-string 2 string)) ; command
(string-match-p "\\]" (match-string 4 string)))
(setq tmp (ergoemacs-substitute-command (match-string 0 string)
mapvar))
(setq string (replace-match tmp t t string))
- [elpa] 15/117: Don't exit if region is active., (continued)
- [elpa] 15/117: Don't exit if region is active., Matthew Fidler, 2014/07/25
- [elpa] 16/117: Advise describe-buffer-bindings, Matthew Fidler, 2014/07/25
- [elpa] 06/117: Lexical binding for ergoemacs-layouts., Matthew Fidler, 2014/07/25
- [elpa] 18/117: Use save-match-data with ergoemacs-pretty-key, Matthew Fidler, 2014/07/25
- [elpa] 13/117: Remove pop dependence, Matthew Fidler, 2014/07/25
- [elpa] 17/117: Add rudimentary guide-key support; F1/C-h activates guide-key, Matthew Fidler, 2014/07/25
- [elpa] 14/117: Attempt Lexical Scoping for ergoemacs-translate.el, Matthew Fidler, 2014/07/25
- [elpa] 20/117: Add left/right to pretty key descriptions, Matthew Fidler, 2014/07/25
- [elpa] 19/117: Pretty key cleanup, Matthew Fidler, 2014/07/25
- [elpa] 22/117: Fix guide-key-mode requirement, Matthew Fidler, 2014/07/25
- [elpa] 24/117: Comment ergoemacs-substitute-command-keys,
Matthew Fidler <=
- [elpa] 21/117: Better guide-key support, Matthew Fidler, 2014/07/25
- [elpa] 25/117: Add command prompt here and powershell here, Matthew Fidler, 2014/07/25
- [elpa] 23/117: Fix (substitute-command-keys "\\[recover-session]"), Matthew Fidler, 2014/07/25
- [elpa] 27/117: Fix recursive loading in ergoemacs-mode source, Matthew Fidler, 2014/07/25
- [elpa] 30/117: Declare w32-long-file-name, Matthew Fidler, 2014/07/25
- [elpa] 29/117: Cleanup byte compile, Matthew Fidler, 2014/07/25
- [elpa] 31/117: More emcompassing shell prompt regexp, Matthew Fidler, 2014/07/25
- [elpa] 26/117: Fix load dependence, See Issue #232, Matthew Fidler, 2014/07/25
- [elpa] 33/117: Added space as separtor for PS1 prompt, Matthew Fidler, 2014/07/25
- [elpa] 35/117: Remap shell to ergoemacs-shell-here, Matthew Fidler, 2014/07/25