aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/admin.el35
1 files changed, 11 insertions, 24 deletions
diff --git a/admin/admin.el b/admin/admin.el
index 4727dd08e6f..3906dd8d63c 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -883,30 +883,17 @@ $Date: %s $
883 883
884 ;; Use Org-mode markers for 'symbols', 'C-x k', etc. 884 ;; Use Org-mode markers for 'symbols', 'C-x k', etc.
885 (replace-regexp-in-region 885 (replace-regexp-in-region
886 (rx-let ((key (seq 886 (rx (or (: (group (in " \t\n("))
887 ;; Modifier (optional) 887 "'"
888 (? (any "ACHMSs") "-") 888 (group (+ (or (not (in "'\n"))
889 (or 889 (: "'" (not (in " .,\t\n)"))))))
890 ;; single key 890 "'"
891 (not (any " \n")) 891 (group (in ",.;:!? \t\n)")))
892 ;; "<return>" and "<remap> <foo>" 892 ;; Buffer names, e.g. "*scratch*".
893 (seq "<" 893 (: "\""
894 (+ (any "A-Za-z-")) 894 (group-n 2 "*" (+ (not (in "*\""))) "*")
895 (+ (seq " " (+ (any "A-Za-z-")))) 895 "\"")))
896 ">") 896 "\\1~\\2~\\3" (point-min) (point-max))
897 "NUL" "RET" "LFD" "TAB"
898 "ESC" "SPC" "DEL")))
899 (email (seq (+ (not (any " @\n")))
900 "@"
901 (+ (not (any " @\n")))))
902 (lisp-symbol (regexp lisp-mode-symbol-regexp)))
903 (rx "'" (group
904 (or lisp-symbol
905 email
906 (seq "M-x " lisp-symbol)
907 (seq key (+ " " key))))
908 "'"))
909 "~\\1~" (point-min) (point-max))
910 897
911 ;; Format code blocks. 898 ;; Format code blocks.
912 (while (re-search-forward "^ " nil t) 899 (while (re-search-forward "^ " nil t)