GNU bug report logs -
#37368
Enhancement in master: Add debug declaration to widget-specify-insert
Previous Next
Reported by: Tobias Zawada <i_inbox <at> tn-home.de>
Date: Tue, 10 Sep 2019 10:16:01 UTC
Severity: minor
Tags: fixed
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 37368 in the body.
You can then email your comments to 37368 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#37368
; Package
emacs
.
(Tue, 10 Sep 2019 10:16:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tobias Zawada <i_inbox <at> tn-home.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 10 Sep 2019 10:16:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
It would improve the development of user-defined `editable-list`-like widget types very much if you could add a debug declaration to `widget-specify-insert`.
Usage-Example: Recently I added a modified set of buttons to the user-defined widget `elgrep-menu-call-list' in `https://github.com/TobiasZawada/elgrep/blob/master/elgrep.el'. In that use-case function `widget-editable-list-entry-create` needs to be imitated. The macro `widget-specify-insert` is used there. It is inconvenient if edebug jumps over the body when debugging such a function. I had to define my own version of `widget-specify-insert` with added debug declaration for avoiding that effect.
Thanks in advance for considering the enhancement.
The diff https://github.com/TobiasZawada/emacs/commit/f8eeec3ccd9bcbc4895ab88c3ef2d9c7759b70bf shows a possible change in `lisp/wid-edit.el`:
@@ -414,6 +414,7 @@ the :notify function can't know the new value.")
(defmacro widget-specify-insert (&rest form)
"Execute FORM without inheriting any text properties."
+ (declare (debug body))
`(save-restriction
(let ((inhibit-read-only t)
(inhibit-modification-hooks t))
Best regards,
Tobias Zawada
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#37368
; Package
emacs
.
(Sat, 14 Sep 2019 12:21:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 37368 <at> debbugs.gnu.org (full text, mbox):
Tobias Zawada <i_inbox <at> tn-home.de> writes:
> (defmacro widget-specify-insert (&rest form)
> "Execute FORM without inheriting any text properties."
> + (declare (debug body))
> `(save-restriction
Thanks; applied to the Emacs trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 14 Sep 2019 12:21:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
37368 <at> debbugs.gnu.org and Tobias Zawada <i_inbox <at> tn-home.de>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 14 Sep 2019 12:21: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
.
(Sun, 13 Oct 2019 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.