diff options
| author | Paul Eggert | 2018-03-29 17:41:11 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-03-29 17:43:08 -0700 |
| commit | 20b858ef13f8f71fae6cbce5cdac31c4dd130600 (patch) | |
| tree | 861786941f43a58fa282a5a019d3948904b10a9c | |
| parent | 00c1f771f2a51ffa675ec5a07ea330f2605cd302 (diff) | |
| download | emacs-20b858ef13f8f71fae6cbce5cdac31c4dd130600.tar.gz emacs-20b858ef13f8f71fae6cbce5cdac31c4dd130600.zip | |
Prefer \... to control chars in .el literals
| -rw-r--r-- | lisp/emacs-lisp/elint.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/nadvice.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/tcover-ses.el | 762 | ||||
| -rw-r--r-- | lisp/erc/erc-services.el | 8 | ||||
| -rw-r--r-- | lisp/gnus/nnmail.el | 6 | ||||
| -rw-r--r-- | lisp/help-fns.el | 10 | ||||
| -rw-r--r-- | lisp/kmacro.el | 2 | ||||
| -rw-r--r-- | lisp/org/org-ctags.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 2 | ||||
| -rw-r--r-- | lisp/vc/pcvs.el | 2 | ||||
| -rw-r--r-- | lisp/woman.el | 8 |
12 files changed, 408 insertions, 408 deletions
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index eae0dacfd23..391d3fd0af9 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el | |||
| @@ -1095,7 +1095,7 @@ Marks the function with their arguments, and returns a list of variables." | |||
| 1095 | (set-buffer (get-buffer-create docbuf)) | 1095 | (set-buffer (get-buffer-create docbuf)) |
| 1096 | (insert-file-contents-literally | 1096 | (insert-file-contents-literally |
| 1097 | (expand-file-name internal-doc-file-name doc-directory))) | 1097 | (expand-file-name internal-doc-file-name doc-directory))) |
| 1098 | (while (re-search-forward "\\([VF]\\)" nil t) | 1098 | (while (re-search-forward "\^_\\([VF]\\)" nil t) |
| 1099 | (when (setq sym (intern-soft (buffer-substring (point) | 1099 | (when (setq sym (intern-soft (buffer-substring (point) |
| 1100 | (line-end-position)))) | 1100 | (line-end-position)))) |
| 1101 | (if (string-equal (match-string 1) "V") | 1101 | (if (string-equal (match-string 1) "V") |
| @@ -1104,7 +1104,7 @@ Marks the function with their arguments, and returns a list of variables." | |||
| 1104 | (if (boundp sym) (setq vars (cons sym vars))) | 1104 | (if (boundp sym) (setq vars (cons sym vars))) |
| 1105 | ;; Function. | 1105 | ;; Function. |
| 1106 | (when (fboundp sym) | 1106 | (when (fboundp sym) |
| 1107 | (when (re-search-forward "\\(^(fn.*)\\)?" nil t) | 1107 | (when (re-search-forward "\\(^(fn.*)\\)?\^_" nil t) |
| 1108 | (backward-char 1) | 1108 | (backward-char 1) |
| 1109 | ;; FIXME distinguish no args from not found. | 1109 | ;; FIXME distinguish no args from not found. |
| 1110 | (and (setq args (match-string 1)) | 1110 | (and (setq args (match-string 1)) |
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el index e2e68250575..4403e887069 100644 --- a/lisp/emacs-lisp/nadvice.el +++ b/lisp/emacs-lisp/nadvice.el | |||
| @@ -41,13 +41,13 @@ | |||
| 41 | '((:around "\300\301\302\003#\207" 5) | 41 | '((:around "\300\301\302\003#\207" 5) |
| 42 | (:before "\300\301\002\"\210\300\302\002\"\207" 4) | 42 | (:before "\300\301\002\"\210\300\302\002\"\207" 4) |
| 43 | (:after "\300\302\002\"\300\301\003\"\210\207" 5) | 43 | (:after "\300\302\002\"\300\301\003\"\210\207" 5) |
| 44 | (:override "\300\301\"\207" 4) | 44 | (:override "\300\301\002\"\207" 4) |
| 45 | (:after-until "\300\302\002\"\206\013\000\300\301\002\"\207" 4) | 45 | (:after-until "\300\302\002\"\206\013\000\300\301\002\"\207" 4) |
| 46 | (:after-while "\300\302\002\"\205\013\000\300\301\002\"\207" 4) | 46 | (:after-while "\300\302\002\"\205\013\000\300\301\002\"\207" 4) |
| 47 | (:before-until "\300\301\002\"\206\013\000\300\302\002\"\207" 4) | 47 | (:before-until "\300\301\002\"\206\013\000\300\302\002\"\207" 4) |
| 48 | (:before-while "\300\301\002\"\205\013\000\300\302\002\"\207" 4) | 48 | (:before-while "\300\301\002\"\205\013\000\300\302\002\"\207" 4) |
| 49 | (:filter-args "\300\302\301!\"\207" 5) | 49 | (:filter-args "\300\302\301\003!\"\207" 5) |
| 50 | (:filter-return "\301\300\302\"!\207" 5)) | 50 | (:filter-return "\301\300\302\003\"!\207" 5)) |
| 51 | "List of descriptions of how to add a function. | 51 | "List of descriptions of how to add a function. |
| 52 | Each element has the form (WHERE BYTECODE STACK) where: | 52 | Each element has the form (WHERE BYTECODE STACK) where: |
| 53 | WHERE is a keyword indicating where the function is added. | 53 | WHERE is a keyword indicating where the function is added. |
diff --git a/lisp/emacs-lisp/tcover-ses.el b/lisp/emacs-lisp/tcover-ses.el index 9c293117c62..21bc2ce6d43 100644 --- a/lisp/emacs-lisp/tcover-ses.el +++ b/lisp/emacs-lisp/tcover-ses.el | |||
| @@ -39,464 +39,464 @@ | |||
| 39 | ;;;Here are some macros that exercise SES. Set `pause' to t if you want the | 39 | ;;;Here are some macros that exercise SES. Set `pause' to t if you want the |
| 40 | ;;;macros to pause after each step. | 40 | ;;;macros to pause after each step. |
| 41 | (let* ((pause nil) | 41 | (let* ((pause nil) |
| 42 | (x (if pause "q" "")) | 42 | (x (if pause "\^Xq" "")) |
| 43 | (y "ses-test.ses\r<")) | 43 | (y "\^X\^Fses-test.ses\r\^[<")) |
| 44 | ;;Fiddle with the existing spreadsheet | 44 | ;;Fiddle with the existing spreadsheet |
| 45 | (fset 'ses-exercise-example | 45 | (fset 'ses-exercise-example |
| 46 | (concat "" data-directory "ses-example.ses\r<" | 46 | (concat "\^X\^F" data-directory "ses-example.ses\r\^[<" |
| 47 | x "10" | 47 | x "\^U10\^N" |
| 48 | x "" | 48 | x "\^K" |
| 49 | x "" | 49 | x "\^_" |
| 50 | x "pses-center\r" | 50 | x "\^P\^P\^Fpses-center\r" |
| 51 | x "p\r" | 51 | x "\^Fp\r" |
| 52 | x "\t\t" | 52 | x "\^U\^P\t\t" |
| 53 | x "\r A9 B9\r" | 53 | x "\r\^B A9 B9\r" |
| 54 | x "" | 54 | x "\^U\^N\^B\^B\^B" |
| 55 | x "\r2\r" | 55 | x "\r\^A\^K2\r" |
| 56 | x "" | 56 | x "\^N\^N\^F" |
| 57 | x "50\r" | 57 | x "50\r" |
| 58 | x "4" | 58 | x "\^U4\^_" |
| 59 | x "" | 59 | x "\^C\^[\^L" |
| 60 | x "" | 60 | x "\^_" |
| 61 | x "(+ o\0" | 61 | x "(+ \^Xo\^N\^N\^F\0\^F\^F" |
| 62 | x "-1o \r" | 62 | x "\^U-1\^Xo\^C\^R \^C\^S\r\^B" |
| 63 | x "" | 63 | x "\^_" |
| 64 | x)) | 64 | x)) |
| 65 | ;;Create a new spreadsheet | 65 | ;;Create a new spreadsheet |
| 66 | (fset 'ses-exercise-new | 66 | (fset 'ses-exercise-new |
| 67 | (concat y | 67 | (concat y |
| 68 | x "\"%.8g\"\r" | 68 | x "\^C\^P\"%.8g\"\r" |
| 69 | x "2\r" | 69 | x "2\r" |
| 70 | x "" | 70 | x "\^O" |
| 71 | x "" | 71 | x "\^P" |
| 72 | x "2" | 72 | x "\^U2\^O" |
| 73 | x "\"Header\r" | 73 | x "\"Header\r" |
| 74 | x "(sqrt 1\r" | 74 | x "(sqrt 1\r\^B" |
| 75 | x "pses-center\r" | 75 | x "pses-center\r\^F" |
| 76 | x "\t" | 76 | x "\t" |
| 77 | x "(+ A2 A3\r" | 77 | x "\^P(+ A2 A3\r" |
| 78 | x "(* B2 A3\r" | 78 | x "\^F(* B2 A3\r" |
| 79 | x "2" | 79 | x "\^U2\^C\^[\^H" |
| 80 | x "\rB3\r" | 80 | x "\r\^?\^?\^?B3\r" |
| 81 | x "" | 81 | x "\^X\^S" |
| 82 | x)) | 82 | x)) |
| 83 | ;;Basic cell display | 83 | ;;Basic cell display |
| 84 | (fset 'ses-exercise-display | 84 | (fset 'ses-exercise-display |
| 85 | (concat y ":(revert-buffer t t)\r" | 85 | (concat y "\^[:(revert-buffer t t)\r" |
| 86 | x "" | 86 | x "\^E" |
| 87 | x "\"Very long\r" | 87 | x "\"Very long\r\^B" |
| 88 | x "w3\r" | 88 | x "w3\r" |
| 89 | x "w3\r" | 89 | x "w3\r" |
| 90 | x "(/ 1 0\r" | 90 | x "(/ 1 0\r\^B" |
| 91 | x "234567\r" | 91 | x "234567\r\^B" |
| 92 | x "5w" | 92 | x "\^U5w" |
| 93 | x "\t1\r" | 93 | x "\t1\r\^B" |
| 94 | x "" | 94 | x "\^B\^C\^C" |
| 95 | x "234567\r" | 95 | x "\^F234567\r\^B" |
| 96 | x "\t" | 96 | x "\t\^D\^B" |
| 97 | x "" | 97 | x "\^B\^C\^C" |
| 98 | x "345678\r" | 98 | x "345678\r\^B" |
| 99 | x "3w" | 99 | x "\^U3w" |
| 100 | x "\0>" | 100 | x "\0\^[>" |
| 101 | x "" | 101 | x "\^C\^C" |
| 102 | x "" | 102 | x "\^X\^X" |
| 103 | x "" | 103 | x "\^E" |
| 104 | x "" | 104 | x "\^X\^X\^A" |
| 105 | x "" | 105 | x "\^E" |
| 106 | x "" | 106 | x "\^F\^E" |
| 107 | x "" | 107 | x "\^C\^C" |
| 108 | x "1\r" | 108 | x "1\r\^B" |
| 109 | x "" | 109 | x "\^C\^C\^F" |
| 110 | x "" | 110 | x "\^E" |
| 111 | x "\"1234567-1234567-1234567\r" | 111 | x "\^B\^B\^B\"1234567-1234567-1234567\r\^B" |
| 112 | x "123\r" | 112 | x "123\r\^B" |
| 113 | x "2" | 113 | x "\^U2\^O" |
| 114 | x "\"1234567-1234567-1234567\r" | 114 | x "\^N\"1234567-1234567-1234567\r\^B" |
| 115 | x "123\r" | 115 | x "123\r\^B" |
| 116 | x "w8\r" | 116 | x "\^F\^Fw8\r" |
| 117 | x "\"1234567\r" | 117 | x "\^B\^B\"1234567\r" |
| 118 | x "w5\r" | 118 | x "\^N\^Bw5\r" |
| 119 | x)) | 119 | x)) |
| 120 | ;;Cell formulas | 120 | ;;Cell formulas |
| 121 | (fset 'ses-exercise-formulas | 121 | (fset 'ses-exercise-formulas |
| 122 | (concat y ":(revert-buffer t t)\r" | 122 | (concat y "\^[:(revert-buffer t t)\r" |
| 123 | x "\t\t" | 123 | x "\t\t" |
| 124 | x "\t" | 124 | x "\t" |
| 125 | x "(* B1 B2 D1\r" | 125 | x "(* B1 B2 D1\r\^B" |
| 126 | x "(* B2 B3\r" | 126 | x "(* B2 B3\r\^B" |
| 127 | x "(apply '+ (ses-range B1 B3)\r" | 127 | x "\^N(apply '+ (ses-range B1 B3)\r\^B" |
| 128 | x "(apply 'ses+ (ses-range B1 B3)\r" | 128 | x "(apply 'ses+ (ses-range B1 B3)\r\^B" |
| 129 | x "(apply 'ses+ (ses-range A2 A3)\r" | 129 | x "\^N(apply 'ses+ (ses-range A2 A3)\r\^B" |
| 130 | x "(mapconcat'number-to-string(ses-range B2 B4) \"-\"\r" | 130 | x "\^N(mapconcat'number-to-string(ses-range B2 B4) \"-\"\r\^B" |
| 131 | x "(apply 'concat (reverse (ses-range A3 D3))\r" | 131 | x "\^B(apply 'concat (reverse (ses-range A3 D3))\r\^B" |
| 132 | x "(* (+ A2 A3) (ses+ B2 B3)\r" | 132 | x "\^B(* (+ A2 A3) (ses+ B2 B3)\r\^B" |
| 133 | x "" | 133 | x "\^N" |
| 134 | x "2" | 134 | x "\^U2\^O" |
| 135 | x "5\t" | 135 | x "\^U5\t" |
| 136 | x "(apply 'ses+ (ses-range E1 E2)\r" | 136 | x "\^P(apply 'ses+ (ses-range E1 E2)\r\^B" |
| 137 | x "(apply 'ses+ (ses-range A5 B5)\r" | 137 | x "\^P(apply 'ses+ (ses-range A5 B5)\r\^B" |
| 138 | x "(apply 'ses+ (ses-range E1 F1)\r" | 138 | x "\^P(apply 'ses+ (ses-range E1 F1)\r\^B" |
| 139 | x "(apply 'ses+ (ses-range D1 E1)\r" | 139 | x "\^P(apply 'ses+ (ses-range D1 E1)\r\^B" |
| 140 | x "\t" | 140 | x "\t" |
| 141 | x "(ses-average (ses-range A2 A5)\r" | 141 | x "(ses-average (ses-range A2 A5)\r\^B" |
| 142 | x "(apply 'ses+ (ses-range A5 A6)\r" | 142 | x "\^N(apply 'ses+ (ses-range A5 A6)\r\^B" |
| 143 | x "k" | 143 | x "\^B\^B\^[k" |
| 144 | x "" | 144 | x "\^N\^N\^K" |
| 145 | x "" | 145 | x "\^P\^P\^P\^O" |
| 146 | x "2" | 146 | x "\^N\^U2\^O" |
| 147 | x "3" | 147 | x "\^P\^U3\^K" |
| 148 | x "o" | 148 | x "\^B\^B\^B\^[o" |
| 149 | x "2o" | 149 | x "\^F\^U2\^[o" |
| 150 | x "3k" | 150 | x "\^B\^U3\^[k" |
| 151 | x "(ses-average (ses-range B3 E3)\r" | 151 | x "\^F(ses-average (ses-range B3 E3)\r\^B" |
| 152 | x "k" | 152 | x "\^B\^[k" |
| 153 | x "12345678\r" | 153 | x "\^N\^P12345678\r\^B" |
| 154 | x)) | 154 | x)) |
| 155 | ;;Recalculating and reconstructing | 155 | ;;Recalculating and reconstructing |
| 156 | (fset 'ses-exercise-recalc | 156 | (fset 'ses-exercise-recalc |
| 157 | (concat y ":(revert-buffer t t)\r" | 157 | (concat y "\^[:(revert-buffer t t)\r" |
| 158 | x "" | 158 | x "\^C\^[\^L" |
| 159 | x "\t\t" | 159 | x "\t\t" |
| 160 | x "" | 160 | x "\^C\^C" |
| 161 | x "(/ 1 0\r" | 161 | x "(/ 1 0\r\^B" |
| 162 | x "" | 162 | x "\^C\^C" |
| 163 | x "\n" | 163 | x "\n" |
| 164 | x "" | 164 | x "\^C\^C" |
| 165 | x "\"%.6g\"\r" | 165 | x "\^C\^P\"%.6g\"\r" |
| 166 | x "" | 166 | x "\^C\^[\^L" |
| 167 | x ">nw" | 167 | x "\^[>\^Xnw\^F\^F\^F" |
| 168 | x "\0>xdelete-region\r" | 168 | x "\0\^[>\^[xdelete-region\r" |
| 169 | x "" | 169 | x "\^C\^[\^L" |
| 170 | x "8" | 170 | x "\^U8\^N" |
| 171 | x "\0>xdelete-region\r" | 171 | x "\0\^[>\^[xdelete-region\r" |
| 172 | x "" | 172 | x "\^C\^[\^L" |
| 173 | x "" | 173 | x "\^C\^N" |
| 174 | x "k" | 174 | x "\^N\^K\^B\^[k" |
| 175 | x "" | 175 | x "\^C\^L" |
| 176 | x "\"Very long\r" | 176 | x "\^B\"Very long\r" |
| 177 | x "" | 177 | x "\^P\^C\^T" |
| 178 | x "\r\r" | 178 | x "\^B\r\r" |
| 179 | x "" | 179 | x "\^N\^C\^T" |
| 180 | x "o" | 180 | x "\^F\^[o" |
| 181 | x "" | 181 | x "\^F\^C\^T" |
| 182 | x "\"Very long2\r" | 182 | x "\^B\^B\"Very long2\r" |
| 183 | x "o" | 183 | x "\^B\^[o\^F" |
| 184 | x "" | 184 | x "\^C\^T" |
| 185 | x "\rC3\r" | 185 | x "\r\^?\^?\^?C3\r" |
| 186 | x "\rC2\r" | 186 | x "\^N\r\^?\^?\^?C2\r" |
| 187 | x "\0" | 187 | x "\^P\0\^N\^F\^C\^C" |
| 188 | x "\rC4\r" | 188 | x "\r\^?\^?C4\r" |
| 189 | x "\rC2\r" | 189 | x "\^N\^N\r\^?\^?\^?C2\r" |
| 190 | x "\0" | 190 | x "\^F\0\^B\^P\^P" |
| 191 | x "" | 191 | x "\^C\^C" |
| 192 | x "xses-mode\r" | 192 | x "\^[xses-mode\r" |
| 193 | x "<" | 193 | x "\^[<\^O" |
| 194 | x "2k" | 194 | x "\^U2\^[k" |
| 195 | x)) | 195 | x)) |
| 196 | ;;Header line | 196 | ;;Header line |
| 197 | (fset 'ses-exercise-header-row | 197 | (fset 'ses-exercise-header-row |
| 198 | (concat y ":(revert-buffer t t)\r" | 198 | (concat y "\^[:(revert-buffer t t)\r" |
| 199 | x "<" | 199 | x "\^X<" |
| 200 | x ">" | 200 | x "\^X>" |
| 201 | x "6<" | 201 | x "\^U6\^X<" |
| 202 | x ">" | 202 | x "\^X>" |
| 203 | x "7<" | 203 | x "\^U7\^X<" |
| 204 | x ">" | 204 | x "\^X>" |
| 205 | x "8<" | 205 | x "\^U8\^X<" |
| 206 | x "2<" | 206 | x "\^U2\^X<" |
| 207 | x ">" | 207 | x "\^X>" |
| 208 | x "3w" | 208 | x "\^F\^U3w\^B" |
| 209 | x "10<" | 209 | x "\^U10\^X<" |
| 210 | x ">" | 210 | x "\^X>" |
| 211 | x "2" | 211 | x "\^U2\^K" |
| 212 | x)) | 212 | x)) |
| 213 | ;;Detecting unsafe formulas and printers | 213 | ;;Detecting unsafe formulas and printers |
| 214 | (fset 'ses-exercise-unsafe | 214 | (fset 'ses-exercise-unsafe |
| 215 | (concat y ":(revert-buffer t t)\r" | 215 | (concat y "\^[:(revert-buffer t t)\r" |
| 216 | x "p(lambda (x) (delete-file x))\rn" | 216 | x "p(lambda (x) (delete-file x))\rn" |
| 217 | x "p(lambda (x) (delete-file \"ses-nothing\"))\ry" | 217 | x "p(lambda (x) (delete-file \"ses-nothing\"))\ry" |
| 218 | x "\0n" | 218 | x "\0\^F\^W\^Yn" |
| 219 | x "(delete-file \"x\"\rn" | 219 | x "\^N(delete-file \"x\"\rn" |
| 220 | x "(delete-file \"ses-nothing\"\ry" | 220 | x "(delete-file \"ses-nothing\"\ry\^B" |
| 221 | x "\0n" | 221 | x "\0\^F\^W\^Yn" |
| 222 | x "(open-network-stream \"x\" nil \"localhost\" \"smtp\"\ry" | 222 | x "(open-network-stream \"x\" nil \"localhost\" \"smtp\"\ry\^B" |
| 223 | x "\0n" | 223 | x "\0\^F\^W\^Yn" |
| 224 | x)) | 224 | x)) |
| 225 | ;;Inserting and deleting rows | 225 | ;;Inserting and deleting rows |
| 226 | (fset 'ses-exercise-rows | 226 | (fset 'ses-exercise-rows |
| 227 | (concat y ":(revert-buffer t t)\r" | 227 | (concat y "\^[:(revert-buffer t t)\r" |
| 228 | x "" | 228 | x "\^N\^F" |
| 229 | x "\"%s=\"\r" | 229 | x "\^C\^P\"%s=\"\r" |
| 230 | x "20" | 230 | x "\^U20\^O" |
| 231 | x "p\"%s+\"\r" | 231 | x "\^[p\"%s+\"\r" |
| 232 | x "" | 232 | x "\^N\^O" |
| 233 | x "123456789\r" | 233 | x "123456789\r\^B" |
| 234 | x "\021" | 234 | x "\0\^U21\^N\^F" |
| 235 | x "" | 235 | x "\^C\^C" |
| 236 | x "" | 236 | x "\^[\^L" |
| 237 | x "(not B25\r" | 237 | x "\^P\^P(not B25\r\^B" |
| 238 | x "k" | 238 | x "\^N\^[k" |
| 239 | x "jA3\r" | 239 | x "jA3\r" |
| 240 | x "19" | 240 | x "\^U19\^K" |
| 241 | x "" | 241 | x "\^P\^F\^K" |
| 242 | x "100" ;Make this approx your CPU speed in MHz | 242 | x "\^U100\^O" ;Make this approx your CPU speed in MHz |
| 243 | x)) | 243 | x)) |
| 244 | ;;Inserting and deleting columns | 244 | ;;Inserting and deleting columns |
| 245 | (fset 'ses-exercise-columns | 245 | (fset 'ses-exercise-columns |
| 246 | (concat y ":(revert-buffer t t)\r" | 246 | (concat y "\^[:(revert-buffer t t)\r" |
| 247 | x "\"%s@\"\r" | 247 | x "\^C\^P\"%s@\"\r" |
| 248 | x "o" | 248 | x "\^[o" |
| 249 | x "" | 249 | x "\^O" |
| 250 | x "o" | 250 | x "\^[o" |
| 251 | x "" | 251 | x "\^K" |
| 252 | x "k" | 252 | x "\^[k" |
| 253 | x "w8\r" | 253 | x "w8\r" |
| 254 | x "p\"%.7s*\"\r" | 254 | x "\^[p\"%.7s*\"\r" |
| 255 | x "o" | 255 | x "\^[o" |
| 256 | x "" | 256 | x "\^F" |
| 257 | x "2o" | 257 | x "\^U2\^[o" |
| 258 | x "3k" | 258 | x "\^U3\^[k" |
| 259 | x "\"%.6g\"\r" | 259 | x "\^C\^P\"%.6g\"\r" |
| 260 | x "26o" | 260 | x "\^U26\^[o" |
| 261 | x "\026\t" | 261 | x "\0\^U26\t" |
| 262 | x "26o" | 262 | x "\^U26\^[o" |
| 263 | x "0\r" | 263 | x "\^C\^[\^H0\r" |
| 264 | x "26\t" | 264 | x "\^U26\t" |
| 265 | x "400" | 265 | x "\^U400\^B" |
| 266 | x "50k" | 266 | x "\^U50\^[k" |
| 267 | x "\0D" | 267 | x "\0\^N\^N\^F\^F\^C\^[\^SD" |
| 268 | x)) | 268 | x)) |
| 269 | (fset 'ses-exercise-editing | 269 | (fset 'ses-exercise-editing |
| 270 | (concat y ":(revert-buffer t t)\r" | 270 | (concat y "\^[:(revert-buffer t t)\r" |
| 271 | x "1\r" | 271 | x "\^N\^N\^N1\r\^B" |
| 272 | x "('x\r" | 272 | x "\^F(\^B'\^Fx\r\^B" |
| 273 | x "" | 273 | x "\^B\^P\^P\^P\^O" |
| 274 | x "" | 274 | x "\^_" |
| 275 | x "\r\r" | 275 | x "\r\r" |
| 276 | x "w9\r" | 276 | x "w9\r" |
| 277 | x "\r.5\r" | 277 | x "\^N\r\^B.5\r" |
| 278 | x "\r 10\r" | 278 | x "\^N\^F\r\^B 10\r" |
| 279 | x "w12\r" | 279 | x "w12\r" |
| 280 | x "\r'\r" | 280 | x "\r\^A'\r" |
| 281 | x "\r\r" | 281 | x "\r\^A\^D\r" |
| 282 | x "jA4\r" | 282 | x "jA4\r" |
| 283 | x "(+ A2 100\r" | 283 | x "(+ A2 100\r\^B" |
| 284 | x "3\r" | 284 | x "\^P\^P3\r\^B" |
| 285 | x "jB1\r" | 285 | x "jB1\r" |
| 286 | x "(not A1\r" | 286 | x "(not A1\r\^B" |
| 287 | x "\"Very long\r" | 287 | x "\^B\"Very long\r\^B" |
| 288 | x "" | 288 | x "\^C\^C" |
| 289 | x "h" | 289 | x "\^[h" |
| 290 | x "H" | 290 | x "\^[H" |
| 291 | x "" | 291 | x "\^C\^C" |
| 292 | x ">\t" | 292 | x "\^[>\t" |
| 293 | x "" | 293 | x "\^P\^P\^D" |
| 294 | x "" | 294 | x "\^P\^D" |
| 295 | x "2" | 295 | x "\^F\^F\^U2\^?" |
| 296 | x "" | 296 | x "\^P\^?" |
| 297 | x "o" | 297 | x "\^[o" |
| 298 | x "h" | 298 | x "\^[h" |
| 299 | x "\0" | 299 | x "\0\^O\^F" |
| 300 | x "\"Also very long\r" | 300 | x "\"Also very long\r\^B" |
| 301 | x "H" | 301 | x "\^N\^F\^[H" |
| 302 | x "\0'\r" | 302 | x "\0'\r\^B" |
| 303 | x "'Trial\r" | 303 | x "'Trial\r\^B" |
| 304 | x "'qwerty\r" | 304 | x "\^N\^B'qwerty\r\^B" |
| 305 | x "(concat o<\0" | 305 | x "\^F(concat \^Xo\^[<\0\^N\^N" |
| 306 | x "-1o\r" | 306 | x "\^U-1\^Xo\^C\^R\r\^B" |
| 307 | x "(apply '+ o<\0-1o\r" | 307 | x "(apply '+ \^Xo\^[<\0\^N\^F\^U-1\^Xo\^C\^S\r\^B" |
| 308 | x "2" | 308 | x "\^P\^U2\^?" |
| 309 | x "-2" | 309 | x "\^U-2\^?" |
| 310 | x "-2" | 310 | x "\^U-2\^D" |
| 311 | x "2" | 311 | x "\^U2\^D" |
| 312 | x "" | 312 | x "\^B\^P\^P\^K" |
| 313 | x "H" | 313 | x "\^N\^F\^[H" |
| 314 | x "\0" | 314 | x "\^B\^P\0\^O" |
| 315 | x "\"Another long one\r" | 315 | x "\"Another long one\r\^B" |
| 316 | x "H" | 316 | x "\^N\^N\^F\^[H" |
| 317 | x "" | 317 | x "\^A\^P\^E" |
| 318 | x "<" | 318 | x "\^C\^C\^[<" |
| 319 | x "" | 319 | x "\^N\^E" |
| 320 | x ">" | 320 | x "\^[>\^P\^O" |
| 321 | x "\0" | 321 | x "\0\^E\^F\^E" |
| 322 | x)) | 322 | x)) |
| 323 | ;;Sorting of columns | 323 | ;;Sorting of columns |
| 324 | (fset 'ses-exercise-sort-column | 324 | (fset 'ses-exercise-sort-column |
| 325 | (concat y ":(revert-buffer t t)\r" | 325 | (concat y "\^[:(revert-buffer t t)\r" |
| 326 | x "\"Very long\r" | 326 | x "\"Very long\r" |
| 327 | x "99\r" | 327 | x "\^F99\r" |
| 328 | x "o13\r" | 328 | x "\^F\^[o13\r" |
| 329 | x "(+ A3 B3\r" | 329 | x "(+ A3 B3\r" |
| 330 | x "7\r8\r(* A4 B4\r" | 330 | x "7\r8\r(* A4 B4\r" |
| 331 | x "\0A\r" | 331 | x "\0\^P\^P\^P\^C\^[\^SA\r" |
| 332 | x "\0B\r" | 332 | x "\^N\0\^P\^P\^P\^C\^[\^SB\r" |
| 333 | x "\0C\r" | 333 | x "\^P\^P\^F\0\^N\^N\^F\^F\^C\^[\^SC\r" |
| 334 | x "o" | 334 | x "\^F\^[o\^P\^O" |
| 335 | x "\0C\r" | 335 | x "\^B\0\^N\^N\^N\^U\^C\^[\^SC\r" |
| 336 | x)) | 336 | x)) |
| 337 | ;;Simple cell printers | 337 | ;;Simple cell printers |
| 338 | (fset 'ses-exercise-cell-printers | 338 | (fset 'ses-exercise-cell-printers |
| 339 | (concat y ":(revert-buffer t t)\r" | 339 | (concat y "\^[:(revert-buffer t t)\r" |
| 340 | x "\"4\t76\r" | 340 | x "\^F\"4\^Q\t76\r\^B" |
| 341 | x "\"4\n7\r" | 341 | x "\"4\^Q\n7\r\^B" |
| 342 | x "p\"{%S}\"\r" | 342 | x "p\"{%S}\"\r" |
| 343 | x "p(\"[%s]\")\r" | 343 | x "p(\"[%s]\")\r" |
| 344 | x "p(\"<%s>\")\r" | 344 | x "p(\"<%s>\")\r" |
| 345 | x "\0" | 345 | x "\^B\0\^F\^F" |
| 346 | x "p\r" | 346 | x "p\r" |
| 347 | x "pnil\r" | 347 | x "pnil\r" |
| 348 | x "pses-dashfill\r" | 348 | x "pses-dashfill\r" |
| 349 | x "48\r" | 349 | x "48\r\^B" |
| 350 | x "\t" | 350 | x "\t" |
| 351 | x "\0p\r" | 351 | x "\^B\0\^Fp\r" |
| 352 | x "p\r" | 352 | x "\^Fp\r" |
| 353 | x "pses-dashfill\r" | 353 | x "pses-dashfill\r" |
| 354 | x "\0pnil\r" | 354 | x "\^B\0\^F\^Fpnil\r" |
| 355 | x "5\r" | 355 | x "5\r\^B" |
| 356 | x "pses-center\r" | 356 | x "pses-center\r" |
| 357 | x "\"%s\"\r" | 357 | x "\^C\^P\"%s\"\r" |
| 358 | x "w8\r" | 358 | x "w8\r" |
| 359 | x "p\r" | 359 | x "\^[p\r" |
| 360 | x "p\"%.7g@\"\r" | 360 | x "\^[p\"%.7g@\"\r" |
| 361 | x "\r" | 361 | x "\^C\^P\r" |
| 362 | x "\"%.6g#\"\r" | 362 | x "\^C\^P\"%.6g#\"\r" |
| 363 | x "\"%.6g.\"\r" | 363 | x "\^C\^P\"%.6g.\"\r" |
| 364 | x "\"%.6g.\"\r" | 364 | x "\^C\^P\"%.6g.\"\r" |
| 365 | x "pidentity\r" | 365 | x "\^[pidentity\r" |
| 366 | x "6\r" | 366 | x "6\r\^B" |
| 367 | x "\"UPCASE\r" | 367 | x "\^N\"UPCASE\r\^B" |
| 368 | x "pdowncase\r" | 368 | x "\^[pdowncase\r" |
| 369 | x "(* 3 4\r" | 369 | x "(* 3 4\r\^B" |
| 370 | x "p(lambda (x) '(\"Hi\"))\r" | 370 | x "p(lambda\^Q (x)\^Q '(\"Hi\"))\r" |
| 371 | x "p(lambda (x) '(\"Bye\"))\r" | 371 | x "p(lambda\^Q (x)\^Q '(\"Bye\"))\r" |
| 372 | x)) | 372 | x)) |
| 373 | ;;Spanning cell printers | 373 | ;;Spanning cell printers |
| 374 | (fset 'ses-exercise-spanning-printers | 374 | (fset 'ses-exercise-spanning-printers |
| 375 | (concat y ":(revert-buffer t t)\r" | 375 | (concat y "\^[:(revert-buffer t t)\r" |
| 376 | x "p\"%.6g*\"\r" | 376 | x "\^[p\"%.6g*\"\r" |
| 377 | x "pses-dashfill-span\r" | 377 | x "pses-dashfill-span\r" |
| 378 | x "5\r" | 378 | x "5\r\^B" |
| 379 | x "pses-tildefill-span\r" | 379 | x "pses-tildefill-span\r" |
| 380 | x "\"4\r" | 380 | x "\"4\r\^B" |
| 381 | x "p\"$%s\"\r" | 381 | x "\^[p\"$%s\"\r" |
| 382 | x "p(\"$%s\")\r" | 382 | x "\^[p(\"$%s\")\r" |
| 383 | x "8\r" | 383 | x "8\r\^B" |
| 384 | x "p(\"!%s!\")\r" | 384 | x "\^[p(\"!%s!\")\r" |
| 385 | x "\t\"12345678\r" | 385 | x "\t\"12345678\r\^B" |
| 386 | x "pses-dashfill-span\r" | 386 | x "pses-dashfill-span\r" |
| 387 | x "\"23456789\r" | 387 | x "\"23456789\r\^B" |
| 388 | x "\t" | 388 | x "\t" |
| 389 | x "(not t\r" | 389 | x "(not t\r\^B" |
| 390 | x "w6\r" | 390 | x "\^Bw6\r" |
| 391 | x "\"5\r" | 391 | x "\"5\r\^B" |
| 392 | x "o" | 392 | x "\^N\^F\^[o" |
| 393 | x "k" | 393 | x "\^[k" |
| 394 | x "k" | 394 | x "\^[k" |
| 395 | x "\t" | 395 | x "\t" |
| 396 | x "" | 396 | x "\^B\^P\^C\^C" |
| 397 | x "o" | 397 | x "\^[o" |
| 398 | x "2k" | 398 | x "\^N\^U2\^[k" |
| 399 | x "k" | 399 | x "\^B\^B\^[k" |
| 400 | x)) | 400 | x)) |
| 401 | ;;Cut/copy/paste - within same buffer | 401 | ;;Cut/copy/paste - within same buffer |
| 402 | (fset 'ses-exercise-paste-1buf | 402 | (fset 'ses-exercise-paste-1buf |
| 403 | (concat y ":(revert-buffer t t)\r" | 403 | (concat y "\^[:(revert-buffer t t)\r" |
| 404 | x "\0w" | 404 | x "\^N\0\^F\^[w" |
| 405 | x "" | 405 | x "\^C\^C\^P\^F\^Y" |
| 406 | x "o" | 406 | x "\^N\^[o" |
| 407 | x "\"middle\r" | 407 | x "\"middle\r\^B" |
| 408 | x "\0" | 408 | x "\0\^F\^N\^F" |
| 409 | x "w" | 409 | x "\^[w" |
| 410 | x "\0" | 410 | x "\^P\0\^F" |
| 411 | x "w" | 411 | x "\^[w" |
| 412 | x "" | 412 | x "\^C\^C\^F\^N" |
| 413 | x "" | 413 | x "\^Y" |
| 414 | x "2y" | 414 | x "\^U2\^Yy" |
| 415 | x "y" | 415 | x "\^F\^U\^Yy" |
| 416 | x "y" | 416 | x "\^P\^P\^F\^U\^Yy" |
| 417 | x ">" | 417 | x "\^[>" |
| 418 | x "y" | 418 | x "\^Yy" |
| 419 | x ">y" | 419 | x "\^[>\^Yy" |
| 420 | x "<" | 420 | x "\^[<" |
| 421 | x "p\"<%s>\"\r" | 421 | x "p\"<%s>\"\r" |
| 422 | x "pses-dashfill\r" | 422 | x "\^Fpses-dashfill\r" |
| 423 | x "\0" | 423 | x "\^B\0\^F\^F\^F\^N\^N\^N" |
| 424 | x "" | 424 | x "\^W" |
| 425 | x "" | 425 | x "\^_" |
| 426 | x "y" | 426 | x "\^U\^Yy" |
| 427 | x "\r\0w" | 427 | x "\r\0\^B\^B\^B\^[w" |
| 428 | x "\r" | 428 | x "\r\^F\^Y" |
| 429 | x "3(+ G2 H1\r" | 429 | x "\^U3\^P(+ G2 H1\r" |
| 430 | x "\0w" | 430 | x "\0\^B\^[w" |
| 431 | x ">" | 431 | x "\^C\^C\^[>\^B" |
| 432 | x "" | 432 | x "\^Y" |
| 433 | x "8(ses-average (ses-range G2 H2)\r" | 433 | x "\^B\^U8\^P(ses-average (ses-range G2 H2)\r\^B" |
| 434 | x "\0k" | 434 | x "\0\^F\^W\^[k" |
| 435 | x "7" | 435 | x "\^U7\^N" |
| 436 | x "" | 436 | x "\^Y" |
| 437 | x "(ses-average (ses-range E7 E9)\r" | 437 | x "\^P\^B(ses-average (ses-range E7 E9)\r\^B" |
| 438 | x "\0" | 438 | x "\0\^F\^W\^K" |
| 439 | x "" | 439 | x "\^N\^Y" |
| 440 | x "(ses-average (ses-range E7 F7)\r" | 440 | x "\^B\^B\^P(ses-average (ses-range E7 F7)\r\^B" |
| 441 | x "\0k" | 441 | x "\0\^F\^W\^[k" |
| 442 | x "" | 442 | x "\^F\^Y" |
| 443 | x "(ses-average (ses-range D6 E6)\r" | 443 | x "\^B\^B\^P(ses-average (ses-range D6 E6)\r\^B" |
| 444 | x "\0k" | 444 | x "\0\^F\^W\^[k" |
| 445 | x "" | 445 | x "\^F\^Y" |
| 446 | x "2" | 446 | x "\^A\^U2\^O" |
| 447 | x "\"Line A\r" | 447 | x "\"Line A\r\^B" |
| 448 | x "pses-tildefill-span\r" | 448 | x "pses-tildefill-span\r" |
| 449 | x "\"Subline A(1)\r" | 449 | x "\^N\^F\"Subline A(1)\r\^B" |
| 450 | x "pses-dashfill-span\r" | 450 | x "pses-dashfill-span\r" |
| 451 | x "\0w" | 451 | x "\^B\^P\0\^N\^N\^N\^[w\^C\^C" |
| 452 | x "" | 452 | x "\^A\^P\^P\^P\^P\^P\^P" |
| 453 | x "" | 453 | x "\^Y" |
| 454 | x "\0w" | 454 | x "\0\^N\^F\^F\^[w\^C\^C" |
| 455 | x "" | 455 | x "\^F\^Y" |
| 456 | x)) | 456 | x)) |
| 457 | ;;Cut/copy/paste - between two buffers | 457 | ;;Cut/copy/paste - between two buffers |
| 458 | (fset 'ses-exercise-paste-2buf | 458 | (fset 'ses-exercise-paste-2buf |
| 459 | (concat y ":(revert-buffer t t)\r" | 459 | (concat y "\^[:(revert-buffer t t)\r" |
| 460 | x "o\"middle\r\0" | 460 | x "\^F\^N\^[o\"middle\r\^B\0\^F\^N\^F" |
| 461 | x "" | 461 | x "\^W" |
| 462 | x "4bses-test.txt\r" | 462 | x "\^X4bses-test.txt\r" |
| 463 | x " " | 463 | x " \^A\^Y" |
| 464 | x "\"xxx\0" | 464 | x "\^E\"xxx\0\^B\^B\^B\^B" |
| 465 | x "wo" | 465 | x "\^[w\^Xo" |
| 466 | x "" | 466 | x "\^_" |
| 467 | x "" | 467 | x "\^Y" |
| 468 | x "o\"\0" | 468 | x "\^Xo\^E\"\0\^B\^B\^B\^B\^B" |
| 469 | x "wo" | 469 | x "\^[w\^Xo\^Y" |
| 470 | x "o123.45\0" | 470 | x "\^Xo123.45\0\^B\^B\^B\^B\^B\^B" |
| 471 | x "o" | 471 | x "\^W\^Xo\^Y" |
| 472 | x "o1 \0" | 472 | x "\^Xo1 \^B\^B\0\^F\^F\^F\^F\^F\^F\^F" |
| 473 | x "o" | 473 | x "\^W\^Xo\^Y" |
| 474 | x ">y" | 474 | x "\^[>\^Yy" |
| 475 | x "o symb\0" | 475 | x "\^F\^Xo symb\0\^B\^B\^B\^B" |
| 476 | x "oy2y" | 476 | x "\^W\^Xo\^U\^Y\^[y\^U2\^[y" |
| 477 | x "o1\t\0" | 477 | x "\^Xo1\t\0\^B\^B" |
| 478 | x "o" | 478 | x "\^W\^Xo\^B\^Y" |
| 479 | x "w9\np\"<%s>\"\n" | 479 | x "w9\n\^[p\"<%s>\"\n" |
| 480 | x "o\n2\t\"3\nxxx\t5\n\0" | 480 | x "\^Xo\n2\t\"3\nxxx\t5\n\0\^P\^P" |
| 481 | x "oy" | 481 | x "\^W\^Xo\^Yy" |
| 482 | x)) | 482 | x)) |
| 483 | ;;Export text, import it back | 483 | ;;Export text, import it back |
| 484 | (fset 'ses-exercise-import-export | 484 | (fset 'ses-exercise-import-export |
| 485 | (concat y ":(revert-buffer t t)\r" | 485 | (concat y "\^[:(revert-buffer t t)\r" |
| 486 | x "\0xt" | 486 | x "\^N\^N\^F\0\^Fxt" |
| 487 | x "4bses-test.txt\r" | 487 | x "\^X4bses-test.txt\r" |
| 488 | x "\n-1o" | 488 | x "\n\^Y\^U-1\^Xo" |
| 489 | x "xTo-1o" | 489 | x "xT\^Xo\^Y\^U-1\^Xo" |
| 490 | x "'crunch\r" | 490 | x "\^C\^C\^F'crunch\r\^B" |
| 491 | x "pses-center-span\r" | 491 | x "\^P\^P\^Ppses-center-span\r" |
| 492 | x "\0xT" | 492 | x "\0\^N\^N\^N\^NxT" |
| 493 | x "o\n-1o" | 493 | x "\^Xo\n\^Y\^U-1\^Xo" |
| 494 | x "\0y" | 494 | x "\0\^Yy" |
| 495 | x "\0xt" | 495 | x "\^F\0\^B\^P\^Pxt" |
| 496 | x "\0y" | 496 | x "\^N\^N\0\^U\^Yy" |
| 497 | x "12345678\r" | 497 | x "12345678\r\^B" |
| 498 | x "'bunch\r" | 498 | x "\^F\^F'bunch\r" |
| 499 | x "\0xtxT" | 499 | x "\0\^P\^PxtxT" |
| 500 | x))) | 500 | x))) |
| 501 | 501 | ||
| 502 | (defun ses-exercise-macros () | 502 | (defun ses-exercise-macros () |
| @@ -565,10 +565,10 @@ spreadsheet files with invalid formatting." | |||
| 565 | (let ((curcell '(A1 . A2))) (ses-check-curcell 'end)) | 565 | (let ((curcell '(A1 . A2))) (ses-check-curcell 'end)) |
| 566 | (let ((curcell '(A1 . A2))) (ses-sort-column "B")) | 566 | (let ((curcell '(A1 . A2))) (ses-sort-column "B")) |
| 567 | (let ((curcell '(C1 . D2))) (ses-sort-column "B")) | 567 | (let ((curcell '(C1 . D2))) (ses-sort-column "B")) |
| 568 | (execute-kbd-macro "jB10\n2") | 568 | (execute-kbd-macro "jB10\n\^U2\^D") |
| 569 | (execute-kbd-macro [?j ?B ?9 ?\n ?\C-@ ?\C-f ?\C-f cut]) | 569 | (execute-kbd-macro [?j ?B ?9 ?\n ?\C-@ ?\C-f ?\C-f cut]) |
| 570 | (progn (kill-new "x") (execute-kbd-macro ">n")) | 570 | (progn (kill-new "x") (execute-kbd-macro "\^[>\^Yn")) |
| 571 | (execute-kbd-macro "\0w"))) | 571 | (execute-kbd-macro "\^B\0\^[w"))) |
| 572 | (condition-case nil | 572 | (condition-case nil |
| 573 | (progn | 573 | (progn |
| 574 | (eval x) | 574 | (eval x) |
| @@ -589,7 +589,7 @@ spreadsheet files with invalid formatting." | |||
| 589 | (defun ses-exercise-invalid-spreadsheets () | 589 | (defun ses-exercise-invalid-spreadsheets () |
| 590 | "Execute code paths that detect invalid spreadsheet files." | 590 | "Execute code paths that detect invalid spreadsheet files." |
| 591 | ;;Detect invalid spreadsheets | 591 | ;;Detect invalid spreadsheets |
| 592 | (let ((p&d "\n\n\n(ses-cell A1 nil nil nil nil)\n\n") | 592 | (let ((p&d "\n\n\^L\n(ses-cell A1 nil nil nil nil)\n\n") |
| 593 | (cw "(ses-column-widths [7])\n") | 593 | (cw "(ses-column-widths [7])\n") |
| 594 | (cp "(ses-column-printers [ses-center])\n") | 594 | (cp "(ses-column-printers [ses-center])\n") |
| 595 | (dp "(ses-default-printer \"%.7g\")\n") | 595 | (dp "(ses-default-printer \"%.7g\")\n") |
| @@ -603,12 +603,12 @@ spreadsheet files with invalid formatting." | |||
| 603 | "(1 2 x)" | 603 | "(1 2 x)" |
| 604 | "(1 2 -1)" | 604 | "(1 2 -1)" |
| 605 | "(3 1 1)" | 605 | "(3 1 1)" |
| 606 | "\n\n(2 1 1)" | 606 | "\n\n\^L(2 1 1)" |
| 607 | "\n\n\n(ses-cell)(2 1 1)" | 607 | "\n\n\^L\n(ses-cell)(2 1 1)" |
| 608 | "\n\n\n(x)\n(2 1 1)" | 608 | "\n\n\^L\n(x)\n(2 1 1)" |
| 609 | "\n\n\n\n(ses-cell A2)\n(2 2 2)" | 609 | "\n\n\n\^L\n(ses-cell A2)\n(2 2 2)" |
| 610 | "\n\n\n\n(ses-cell B1)\n(2 2 2)" | 610 | "\n\n\n\^L\n(ses-cell B1)\n(2 2 2)" |
| 611 | "\n\n\n(ses-cell A1 nil nil nil nil)\n(2 1 1)" | 611 | "\n\n\^L\n(ses-cell A1 nil nil nil nil)\n(2 1 1)" |
| 612 | (concat p&d "(x)\n(x)\n(x)\n(x)\n" p11) | 612 | (concat p&d "(x)\n(x)\n(x)\n(x)\n" p11) |
| 613 | (concat p&d "(ses-column-widths)(x)\n(x)\n(x)\n" p11) | 613 | (concat p&d "(ses-column-widths)(x)\n(x)\n(x)\n" p11) |
| 614 | (concat p&d cw "(x)\n(x)\n(x)\n(2 1 1)") | 614 | (concat p&d cw "(x)\n(x)\n(x)\n(2 1 1)") |
| @@ -671,7 +671,7 @@ spreadsheet files with invalid formatting." | |||
| 671 | (ses-exercise-invalid-spreadsheets) | 671 | (ses-exercise-invalid-spreadsheets) |
| 672 | ;;Upgrade of old-style spreadsheet | 672 | ;;Upgrade of old-style spreadsheet |
| 673 | (with-temp-buffer | 673 | (with-temp-buffer |
| 674 | (insert " \n\n\n(ses-cell A1 nil nil nil nil)\n\n(ses-column-widths [7])\n(ses-column-printers [nil])\n(ses-default-printer \"%.7g\")\n\n( ;Global parameters (these are read first)\n 1 ;SES file-format\n 1 ;numrows\n 1 ;numcols\n)\n\n") | 674 | (insert " \n\n\^L\n(ses-cell A1 nil nil nil nil)\n\n(ses-column-widths [7])\n(ses-column-printers [nil])\n(ses-default-printer \"%.7g\")\n\n( ;Global parameters (these are read first)\n 1 ;SES file-format\n 1 ;numrows\n 1 ;numcols\n)\n\n") |
| 675 | (ses-load)) | 675 | (ses-load)) |
| 676 | ;;ses-vector-delete is always called from buffer-undo-list with the same | 676 | ;;ses-vector-delete is always called from buffer-undo-list with the same |
| 677 | ;;symbol as argument. We'll give it a different one here. | 677 | ;;symbol as argument. We'll give it a different one here. |
diff --git a/lisp/erc/erc-services.el b/lisp/erc/erc-services.el index 62201b0e7cf..ac49a3e12ef 100644 --- a/lisp/erc/erc-services.el +++ b/lisp/erc/erc-services.el | |||
| @@ -214,7 +214,7 @@ Example of use: | |||
| 214 | "identify" nil nil nil) | 214 | "identify" nil nil nil) |
| 215 | (Azzurra | 215 | (Azzurra |
| 216 | "NickServ!service@azzurra.org" | 216 | "NickServ!service@azzurra.org" |
| 217 | "/ns\\s-IDENTIFY\\s-password" | 217 | "\^B/ns\\s-IDENTIFY\\s-password\^B" |
| 218 | "NickServ" | 218 | "NickServ" |
| 219 | "IDENTIFY" nil nil nil) | 219 | "IDENTIFY" nil nil nil) |
| 220 | (BitlBee | 220 | (BitlBee |
| @@ -223,7 +223,7 @@ Example of use: | |||
| 223 | "identify" nil nil nil) | 223 | "identify" nil nil nil) |
| 224 | (BRASnet | 224 | (BRASnet |
| 225 | "NickServ!services@brasnet.org" | 225 | "NickServ!services@brasnet.org" |
| 226 | "/NickServ\\s-IDENTIFY\\s-senha" | 226 | "\^B/NickServ\\s-IDENTIFY\\s-\^_senha\^_\^B" |
| 227 | "NickServ" | 227 | "NickServ" |
| 228 | "IDENTIFY" nil "" nil) | 228 | "IDENTIFY" nil "" nil) |
| 229 | (DALnet | 229 | (DALnet |
| @@ -262,7 +262,7 @@ Example of use: | |||
| 262 | nil | 262 | nil |
| 263 | "NickServ" | 263 | "NickServ" |
| 264 | "IDENTIFY" nil nil | 264 | "IDENTIFY" nil nil |
| 265 | "You\\s-are\\s-successfully\\s-identified\\s-as\\s-") | 265 | "You\\s-are\\s-successfully\\s-identified\\s-as\\s-\^B") |
| 266 | (Rizon | 266 | (Rizon |
| 267 | "NickServ!service@rizon.net" | 267 | "NickServ!service@rizon.net" |
| 268 | "This\\s-nickname\\s-is\\s-registered\\s-and\\s-protected." | 268 | "This\\s-nickname\\s-is\\s-registered\\s-and\\s-protected." |
| @@ -275,7 +275,7 @@ Example of use: | |||
| 275 | "auth" t nil nil) | 275 | "auth" t nil nil) |
| 276 | (SlashNET | 276 | (SlashNET |
| 277 | "NickServ!services@services.slashnet.org" | 277 | "NickServ!services@services.slashnet.org" |
| 278 | "/msg\\s-NickServ\\s-IDENTIFY\\s-password" | 278 | "/msg\\s-NickServ\\s-IDENTIFY\\s-\^_password" |
| 279 | "NickServ@services.slashnet.org" | 279 | "NickServ@services.slashnet.org" |
| 280 | "IDENTIFY" nil nil nil)) | 280 | "IDENTIFY" nil nil nil)) |
| 281 | "Alist of NickServer details, sorted by network. | 281 | "Alist of NickServer details, sorted by network. |
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el index 9f068285e78..b2c86d35d19 100644 --- a/lisp/gnus/nnmail.el +++ b/lisp/gnus/nnmail.el | |||
| @@ -723,7 +723,7 @@ If SOURCE is a directory spec, try to return the group name component." | |||
| 723 | ;; Skip all the headers in case there are more "From "s... | 723 | ;; Skip all the headers in case there are more "From "s... |
| 724 | (or (search-forward "\n\n" nil t) | 724 | (or (search-forward "\n\n" nil t) |
| 725 | (search-forward-regexp "^[^:]*\\( .*\\|\\)$" nil t) | 725 | (search-forward-regexp "^[^:]*\\( .*\\|\\)$" nil t) |
| 726 | (search-forward "")) | 726 | (search-forward "\^_\^L")) |
| 727 | (point))) | 727 | (point))) |
| 728 | ;; Unquote the ">From " line, if any. | 728 | ;; Unquote the ">From " line, if any. |
| 729 | (goto-char (point-min)) | 729 | (goto-char (point-min)) |
| @@ -763,7 +763,7 @@ If SOURCE is a directory spec, try to return the group name component." | |||
| 763 | (if (or (= (+ (point) content-length) (point-max)) | 763 | (if (or (= (+ (point) content-length) (point-max)) |
| 764 | (save-excursion | 764 | (save-excursion |
| 765 | (goto-char (+ (point) content-length)) | 765 | (goto-char (+ (point) content-length)) |
| 766 | (looking-at ""))) | 766 | (looking-at "\^_"))) |
| 767 | (progn | 767 | (progn |
| 768 | (goto-char (+ (point) content-length)) | 768 | (goto-char (+ (point) content-length)) |
| 769 | (setq do-search nil)) | 769 | (setq do-search nil)) |
| @@ -772,7 +772,7 @@ If SOURCE is a directory spec, try to return the group name component." | |||
| 772 | ;; Go to the beginning of the next article - or to the end | 772 | ;; Go to the beginning of the next article - or to the end |
| 773 | ;; of the buffer. | 773 | ;; of the buffer. |
| 774 | (when do-search | 774 | (when do-search |
| 775 | (if (re-search-forward "^" nil t) | 775 | (if (re-search-forward "^\^_" nil t) |
| 776 | (goto-char (match-beginning 0)) | 776 | (goto-char (match-beginning 0)) |
| 777 | (goto-char (1- (point-max))))) | 777 | (goto-char (1- (point-max))))) |
| 778 | (delete-char 1) ; delete ^_ | 778 | (delete-char 1) ; delete ^_ |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index a592809de6a..ec46a479ed8 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -181,8 +181,8 @@ KIND should be `var' for a variable or `subr' for a subroutine." | |||
| 181 | (expand-file-name internal-doc-file-name doc-directory))) | 181 | (expand-file-name internal-doc-file-name doc-directory))) |
| 182 | (let ((file (catch 'loop | 182 | (let ((file (catch 'loop |
| 183 | (while t | 183 | (while t |
| 184 | (let ((pnt (search-forward (concat "" name "\n")))) | 184 | (let ((pnt (search-forward (concat "\^_" name "\n")))) |
| 185 | (re-search-backward "S\\(.*\\)") | 185 | (re-search-backward "\^_S\\(.*\\)") |
| 186 | (let ((file (match-string 1))) | 186 | (let ((file (match-string 1))) |
| 187 | (if (member file build-files) | 187 | (if (member file build-files) |
| 188 | (throw 'loop file) | 188 | (throw 'loop file) |
| @@ -1293,7 +1293,7 @@ BUFFER should be a buffer or a buffer name." | |||
| 1293 | ".AU Richard M. Stallman\n") | 1293 | ".AU Richard M. Stallman\n") |
| 1294 | (insert-file-contents file) | 1294 | (insert-file-contents file) |
| 1295 | (let (notfirst) | 1295 | (let (notfirst) |
| 1296 | (while (search-forward "" nil 'move) | 1296 | (while (search-forward "\^_" nil 'move) |
| 1297 | (if (= (following-char) ?S) | 1297 | (if (= (following-char) ?S) |
| 1298 | (delete-region (1- (point)) (line-end-position)) | 1298 | (delete-region (1- (point)) (line-end-position)) |
| 1299 | (delete-char -1) | 1299 | (delete-char -1) |
| @@ -1326,12 +1326,12 @@ BUFFER should be a buffer or a buffer name." | |||
| 1326 | (insert "@") | 1326 | (insert "@") |
| 1327 | (forward-char 1)) | 1327 | (forward-char 1)) |
| 1328 | (goto-char (point-min)) | 1328 | (goto-char (point-min)) |
| 1329 | (while (search-forward "" nil t) | 1329 | (while (search-forward "\^_" nil t) |
| 1330 | (when (/= (following-char) ?S) | 1330 | (when (/= (following-char) ?S) |
| 1331 | (setq type (char-after) | 1331 | (setq type (char-after) |
| 1332 | name (buffer-substring (1+ (point)) (line-end-position)) | 1332 | name (buffer-substring (1+ (point)) (line-end-position)) |
| 1333 | doc (buffer-substring (line-beginning-position 2) | 1333 | doc (buffer-substring (line-beginning-position 2) |
| 1334 | (if (search-forward "" nil 'move) | 1334 | (if (search-forward "\^_" nil 'move) |
| 1335 | (1- (point)) | 1335 | (1- (point)) |
| 1336 | (point))) | 1336 | (point))) |
| 1337 | alist (cons (list name type doc) alist)) | 1337 | alist (cons (list name type doc) alist)) |
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index 76d2125c9d8..0acb7fce8f3 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -813,7 +813,7 @@ The ARG parameter is unused." | |||
| 813 | (and (>= ch ?A) (<= ch ?Z)))) | 813 | (and (>= ch ?A) (<= ch ?Z)))) |
| 814 | (setq key-seq (concat "\C-x\C-k" key-seq) | 814 | (setq key-seq (concat "\C-x\C-k" key-seq) |
| 815 | ok t)))) | 815 | ok t)))) |
| 816 | (when (and (not (equal key-seq "")) | 816 | (when (and (not (equal key-seq "\^G")) |
| 817 | (or ok | 817 | (or ok |
| 818 | (not (setq cmd (key-binding key-seq))) | 818 | (not (setq cmd (key-binding key-seq))) |
| 819 | (stringp cmd) | 819 | (stringp cmd) |
diff --git a/lisp/org/org-ctags.el b/lisp/org/org-ctags.el index 792f3fe1a3c..48981743755 100644 --- a/lisp/org/org-ctags.el +++ b/lisp/org/org-ctags.el | |||
| @@ -236,7 +236,7 @@ buffer position where the tag is found." | |||
| 236 | (with-current-buffer (get-file-buffer tags-file-name) | 236 | (with-current-buffer (get-file-buffer tags-file-name) |
| 237 | (goto-char (point-min)) | 237 | (goto-char (point-min)) |
| 238 | (cond | 238 | (cond |
| 239 | ((re-search-forward (format "^.*%s\\([0-9]+\\),\\([0-9]+\\)$" | 239 | ((re-search-forward (format "^.*\^?%s\^A\\([0-9]+\\),\\([0-9]+\\)$" |
| 240 | (regexp-quote tag)) nil t) | 240 | (regexp-quote tag)) nil t) |
| 241 | (let ((line (string-to-number (match-string 1))) | 241 | (let ((line (string-to-number (match-string 1))) |
| 242 | (pos (string-to-number (match-string 2)))) | 242 | (pos (string-to-number (match-string 2)))) |
| @@ -261,7 +261,7 @@ Return the list." | |||
| 261 | (visit-tags-table-buffer 'same) | 261 | (visit-tags-table-buffer 'same) |
| 262 | (with-current-buffer (get-file-buffer tags-file-name) | 262 | (with-current-buffer (get-file-buffer tags-file-name) |
| 263 | (goto-char (point-min)) | 263 | (goto-char (point-min)) |
| 264 | (while (re-search-forward "^.*\\(.*\\)\\([0-9]+\\),\\([0-9]+\\)$" | 264 | (while (re-search-forward "^.*\^?\\(.*\\)\^A\\([0-9]+\\),\\([0-9]+\\)$" |
| 265 | nil t) | 265 | nil t) |
| 266 | (push (substring-no-properties (match-string 1)) taglist))) | 266 | (push (substring-no-properties (match-string 1)) taglist))) |
| 267 | taglist))) | 267 | taglist))) |
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 664f01012b8..f42510932e5 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -1994,7 +1994,7 @@ Key bindings: | |||
| 1994 | ;; since it's practically impossible to write a regexp that reliably | 1994 | ;; since it's practically impossible to write a regexp that reliably |
| 1995 | ;; matches such a construct. Other tools are necessary. | 1995 | ;; matches such a construct. Other tools are necessary. |
| 1996 | (defconst c-Java-defun-prompt-regexp | 1996 | (defconst c-Java-defun-prompt-regexp |
| 1997 | "^[ \t]*\\(\\(\\(public\\|protected\\|private\\|const\\|abstract\\|synchronized\\|final\\|static\\|threadsafe\\|transient\\|native\\|volatile\\)\\s-+\\)*\\(\\(\\([[a-zA-Z][][_$.a-zA-Z0-9]*[][_$.a-zA-Z0-9]+\\|[[a-zA-Z]\\)\\s-*\\)\\s-+\\)\\)?\\(\\([[a-zA-Z][][_$.a-zA-Z0-9]*\\s-+\\)\\s-*\\)?\\([_a-zA-Z][^][ \t:;.,{}()=]*\\|\\([_$a-zA-Z][_$.a-zA-Z0-9]*\\)\\)\\s-*\\(([^);{}]*)\\)?\\([] \t]*\\)\\(\\s-*\\<throws\\>\\s-*\\(\\([_$a-zA-Z][_$.a-zA-Z0-9]*\\)[, \t\n\r\f\v]*\\)+\\)?\\s-*") | 1997 | "^[ \t]*\\(\\(\\(public\\|protected\\|private\\|const\\|abstract\\|synchronized\\|final\\|static\\|threadsafe\\|transient\\|native\\|volatile\\)\\s-+\\)*\\(\\(\\([[a-zA-Z][][_$.a-zA-Z0-9]*[][_$.a-zA-Z0-9]+\\|[[a-zA-Z]\\)\\s-*\\)\\s-+\\)\\)?\\(\\([[a-zA-Z][][_$.a-zA-Z0-9]*\\s-+\\)\\s-*\\)?\\([_a-zA-Z][^][ \t:;.,{}()\^?=]*\\|\\([_$a-zA-Z][_$.a-zA-Z0-9]*\\)\\)\\s-*\\(([^);{}]*)\\)?\\([] \t]*\\)\\(\\s-*\\<throws\\>\\s-*\\(\\([_$a-zA-Z][_$.a-zA-Z0-9]*\\)[, \t\n\r\f\v]*\\)+\\)?\\s-*") |
| 1998 | 1998 | ||
| 1999 | (easy-menu-define c-java-menu java-mode-map "Java Mode Commands" | 1999 | (easy-menu-define c-java-menu java-mode-map "Java Mode Commands" |
| 2000 | (cons "Java" (c-lang-const c-mode-menu java))) | 2000 | (cons "Java" (c-lang-const c-mode-menu java))) |
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index d6f451a1ab5..e89da6527cb 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -2447,7 +2447,7 @@ Use only the FILENAME arg; for Info, ignore the other arguments to @image." | |||
| 2447 | (defun texinfo-format-option () | 2447 | (defun texinfo-format-option () |
| 2448 | "Insert \\=` ... \\=' around arg unless inside a table; in that case, no quotes." | 2448 | "Insert \\=` ... \\=' around arg unless inside a table; in that case, no quotes." |
| 2449 | ;; `looking-at-backward' not available in v. 18.57, 20.2 | 2449 | ;; `looking-at-backward' not available in v. 18.57, 20.2 |
| 2450 | (if (not (search-backward "" ; searched-for character is a control-H | 2450 | (if (not (search-backward "\^H" |
| 2451 | (line-beginning-position) | 2451 | (line-beginning-position) |
| 2452 | t)) | 2452 | t)) |
| 2453 | (insert "`" (texinfo-parse-arg-discard) "'") | 2453 | (insert "`" (texinfo-parse-arg-discard) "'") |
diff --git a/lisp/vc/pcvs.el b/lisp/vc/pcvs.el index 5515e0cd608..501666a4997 100644 --- a/lisp/vc/pcvs.el +++ b/lisp/vc/pcvs.el | |||
| @@ -700,7 +700,7 @@ OLD-FIS is the list of fileinfos on which the cvs command was applied and | |||
| 700 | ;; because of the call to `process-send-eof'. | 700 | ;; because of the call to `process-send-eof'. |
| 701 | (save-excursion | 701 | (save-excursion |
| 702 | (goto-char (point-min)) | 702 | (goto-char (point-min)) |
| 703 | (while (re-search-forward "^\\^D+" nil t) | 703 | (while (re-search-forward "^\\^D\^H+" nil t) |
| 704 | (let ((inhibit-read-only t)) | 704 | (let ((inhibit-read-only t)) |
| 705 | (delete-region (match-beginning 0) (match-end 0)))))) | 705 | (delete-region (match-beginning 0) (match-end 0)))))) |
| 706 | (let* ((fileinfos (cvs-parse-buffer 'cvs-parse-table dcd subdir)) | 706 | (let* ((fileinfos (cvs-parse-buffer 'cvs-parse-table dcd subdir)) |
diff --git a/lisp/woman.el b/lisp/woman.el index c83a04874a5..eab97fb34b0 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -1714,14 +1714,14 @@ Do not call directly!" | |||
| 1714 | 1714 | ||
| 1715 | ;; Interpret overprinting to indicate bold face: | 1715 | ;; Interpret overprinting to indicate bold face: |
| 1716 | (goto-char (point-min)) | 1716 | (goto-char (point-min)) |
| 1717 | (while (re-search-forward "\\(.\\)\\(\\(+\\1\\)+\\)" nil t) | 1717 | (while (re-search-forward "\\(.\\)\\(\\(\^H+\\1\\)+\\)" nil t) |
| 1718 | (woman-delete-match 2) | 1718 | (woman-delete-match 2) |
| 1719 | (woman-set-face (1- (point)) (point) 'woman-bold)) | 1719 | (woman-set-face (1- (point)) (point) 'woman-bold)) |
| 1720 | 1720 | ||
| 1721 | ;; Interpret underlining to indicate italic face: | 1721 | ;; Interpret underlining to indicate italic face: |
| 1722 | ;; (Must be AFTER emboldening to interpret bold _ correctly!) | 1722 | ;; (Must be AFTER emboldening to interpret bold _ correctly!) |
| 1723 | (goto-char (point-min)) | 1723 | (goto-char (point-min)) |
| 1724 | (while (search-forward "_" nil t) | 1724 | (while (search-forward "_\^H" nil t) |
| 1725 | (delete-char -2) | 1725 | (delete-char -2) |
| 1726 | (woman-set-face (point) (1+ (point)) 'woman-italic)) | 1726 | (woman-set-face (point) (1+ (point)) 'woman-italic)) |
| 1727 | 1727 | ||
| @@ -2071,14 +2071,14 @@ alist in `woman-buffer-alist' and return nil." | |||
| 2071 | 2071 | ||
| 2072 | ;;; Syntax and display tables: | 2072 | ;;; Syntax and display tables: |
| 2073 | 2073 | ||
| 2074 | (defconst woman-escaped-escape-char ? | 2074 | (defconst woman-escaped-escape-char ?\^\\ |
| 2075 | ;; An arbitrary unused control character | 2075 | ;; An arbitrary unused control character |
| 2076 | "Internal character representation of escaped escape characters.") | 2076 | "Internal character representation of escaped escape characters.") |
| 2077 | (defconst woman-escaped-escape-string | 2077 | (defconst woman-escaped-escape-string |
| 2078 | (char-to-string woman-escaped-escape-char) | 2078 | (char-to-string woman-escaped-escape-char) |
| 2079 | "Internal string representation of escaped escape characters.") | 2079 | "Internal string representation of escaped escape characters.") |
| 2080 | 2080 | ||
| 2081 | (defconst woman-unpadded-space-char ? | 2081 | (defconst woman-unpadded-space-char ?\^] |
| 2082 | ;; An arbitrary unused control character | 2082 | ;; An arbitrary unused control character |
| 2083 | "Internal character representation of unpadded space characters.") | 2083 | "Internal character representation of unpadded space characters.") |
| 2084 | (defconst woman-unpadded-space-string | 2084 | (defconst woman-unpadded-space-string |