diff options
| author | Noam Postavsky | 2017-06-29 21:51:04 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-08-16 20:25:18 -0400 |
| commit | 3f938e1aea7e592de8c3ddb87508bf9d6ed8b3b5 (patch) | |
| tree | 89269d5d8d00de8439188e29e45e56d1309691bc /lisp | |
| parent | 794c3cd3a2dfcedc829ccb5dc413c99fb670f4a1 (diff) | |
| download | emacs-3f938e1aea7e592de8c3ddb87508bf9d6ed8b3b5.tar.gz emacs-3f938e1aea7e592de8c3ddb87508bf9d6ed8b3b5.zip | |
* lisp/woman.el (woman-push, woman-pop): Remove. (Bug#27962)
(woman2-RS): Use plain `push' instead of `woman-push'.
(woman2-RE): Conditionally `pop' instead of `woman-pop'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/woman.el | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/lisp/woman.el b/lisp/woman.el index aa856c39577..6620ce4a2bb 100644 --- a/lisp/woman.el +++ b/lisp/woman.el | |||
| @@ -4261,22 +4261,11 @@ Delete line from point and eol unless LEAVE-EOL is non-nil." | |||
| 4261 | (if (> i 0) (setq woman-prevailing-indent i)))) | 4261 | (if (> i 0) (setq woman-prevailing-indent i)))) |
| 4262 | woman-prevailing-indent) | 4262 | woman-prevailing-indent) |
| 4263 | 4263 | ||
| 4264 | (defmacro woman-push (value stack) | ||
| 4265 | "Push VALUE onto STACK." | ||
| 4266 | `(setq ,stack (cons ,value ,stack))) | ||
| 4267 | |||
| 4268 | (defmacro woman-pop (variable stack) | ||
| 4269 | "Pop into VARIABLE the value at the top of STACK. | ||
| 4270 | Allow for mismatched requests!" | ||
| 4271 | `(if ,stack | ||
| 4272 | (setq ,variable (car ,stack) | ||
| 4273 | ,stack (cdr ,stack)))) | ||
| 4274 | |||
| 4275 | (defun woman2-RS (to) | 4264 | (defun woman2-RS (to) |
| 4276 | ".RS i -- Start relative indent, move left margin in distance i. | 4265 | ".RS i -- Start relative indent, move left margin in distance i. |
| 4277 | Set prevailing indent to 5 for nested indents. Format paragraphs upto TO." | 4266 | Set prevailing indent to 5 for nested indents. Format paragraphs upto TO." |
| 4278 | (woman-push woman-left-margin woman-RS-left-margin) | 4267 | (push woman-left-margin woman-RS-left-margin) |
| 4279 | (woman-push woman-prevailing-indent woman-RS-prevailing-indent) | 4268 | (push woman-prevailing-indent woman-RS-prevailing-indent) |
| 4280 | (setq woman-left-margin (+ woman-left-margin | 4269 | (setq woman-left-margin (+ woman-left-margin |
| 4281 | (woman2-get-prevailing-indent)) | 4270 | (woman2-get-prevailing-indent)) |
| 4282 | woman-prevailing-indent woman-default-indent) | 4271 | woman-prevailing-indent woman-default-indent) |
| @@ -4285,8 +4274,10 @@ Set prevailing indent to 5 for nested indents. Format paragraphs upto TO." | |||
| 4285 | (defun woman2-RE (to) | 4274 | (defun woman2-RE (to) |
| 4286 | ".RE -- End of relative indent. Format paragraphs upto TO. | 4275 | ".RE -- End of relative indent. Format paragraphs upto TO. |
| 4287 | Set prevailing indent to amount of starting .RS." | 4276 | Set prevailing indent to amount of starting .RS." |
| 4288 | (woman-pop woman-left-margin woman-RS-left-margin) | 4277 | (when woman-RS-left-margin |
| 4289 | (woman-pop woman-prevailing-indent woman-RS-prevailing-indent) | 4278 | (setq woman-left-margin (pop woman-RS-left-margin))) |
| 4279 | (when woman-RS-prevailing-indent | ||
| 4280 | (setq woman-prevailing-indent (pop woman-RS-prevailing-indent))) | ||
| 4290 | (woman-delete-line 1) ; ignore any arguments | 4281 | (woman-delete-line 1) ; ignore any arguments |
| 4291 | (woman2-format-paragraphs to woman-left-margin)) | 4282 | (woman2-format-paragraphs to woman-left-margin)) |
| 4292 | 4283 | ||