GNU bug report logs -
#27962
[PATCH] Remove woman-push and woman-pop
Previous Next
Reported by: npostavs <at> users.sourceforge.net
Date: Sat, 5 Aug 2017 02:25:01 UTC
Severity: wishlist
Tags: fixed, patch
Fixed in version 26.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27962 in the body.
You can then email your comments to 27962 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27962
; Package
emacs
.
(Sat, 05 Aug 2017 02:25:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
npostavs <at> users.sourceforge.net
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 05 Aug 2017 02:25:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Severity: wishlist
Tags: patch
These macros are not pulling their weight.
[0001-lisp-woman.el-woman-push-woman-pop-Remove.patch (text/x-diff, inline)]
From 7bff7520808aed06adf86360906adb1d1b62f096 Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs <at> gmail.com>
Date: Thu, 29 Jun 2017 21:51:04 -0400
Subject: [PATCH] * lisp/woman.el (woman-push, woman-pop): Remove.
(woman2-RS): Use plain `push' instead of `woman-push'.
(woman2-RE): Conditionally `pop' instead of `woman-pop'.
---
lisp/woman.el | 21 ++++++---------------
1 file changed, 6 insertions(+), 15 deletions(-)
diff --git a/lisp/woman.el b/lisp/woman.el
index aa856c3957..6620ce4a2b 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -4261,22 +4261,11 @@ (defun woman2-get-prevailing-indent (&optional leave-eol)
(if (> i 0) (setq woman-prevailing-indent i))))
woman-prevailing-indent)
-(defmacro woman-push (value stack)
- "Push VALUE onto STACK."
- `(setq ,stack (cons ,value ,stack)))
-
-(defmacro woman-pop (variable stack)
- "Pop into VARIABLE the value at the top of STACK.
-Allow for mismatched requests!"
- `(if ,stack
- (setq ,variable (car ,stack)
- ,stack (cdr ,stack))))
-
(defun woman2-RS (to)
".RS i -- Start relative indent, move left margin in distance i.
Set prevailing indent to 5 for nested indents. Format paragraphs upto TO."
- (woman-push woman-left-margin woman-RS-left-margin)
- (woman-push woman-prevailing-indent woman-RS-prevailing-indent)
+ (push woman-left-margin woman-RS-left-margin)
+ (push woman-prevailing-indent woman-RS-prevailing-indent)
(setq woman-left-margin (+ woman-left-margin
(woman2-get-prevailing-indent))
woman-prevailing-indent woman-default-indent)
@@ -4285,8 +4274,10 @@ (defun woman2-RS (to)
(defun woman2-RE (to)
".RE -- End of relative indent. Format paragraphs upto TO.
Set prevailing indent to amount of starting .RS."
- (woman-pop woman-left-margin woman-RS-left-margin)
- (woman-pop woman-prevailing-indent woman-RS-prevailing-indent)
+ (when woman-RS-left-margin
+ (setq woman-left-margin (pop woman-RS-left-margin)))
+ (when woman-RS-prevailing-indent
+ (setq woman-prevailing-indent (pop woman-RS-prevailing-indent)))
(woman-delete-line 1) ; ignore any arguments
(woman2-format-paragraphs to woman-left-margin))
--
2.11.1
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#27962
; Package
emacs
.
(Thu, 17 Aug 2017 00:26:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 27962 <at> debbugs.gnu.org (full text, mbox):
tags 27962 fixed
close 27962 26.1
quit
npostavs <at> users.sourceforge.net writes:
> These macros are not pulling their weight.
Pushed to master.
[1: 3f938e1aea]: 2017-08-16 20:25:18 -0400
* lisp/woman.el (woman-push, woman-pop): Remove. (Bug#27962)
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3f938e1aea7e592de8c3ddb87508bf9d6ed8b3b5
Added tag(s) fixed.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Thu, 17 Aug 2017 00:26:01 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 26.1, send any further explanations to
27962 <at> debbugs.gnu.org and npostavs <at> users.sourceforge.net
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Thu, 17 Aug 2017 00:26:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 14 Sep 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.