From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tobias Zawada Newsgroups: gmane.emacs.bugs Subject: bug#37368: Enhancement in master: Add debug declaration to widget-specify-insert Date: Tue, 10 Sep 2019 12:15:33 +0200 (CEST) Message-ID: <1430113248.233983.1568110533401@email.ionos.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="22155"; mail-complaints-to="usenet@blaine.gmane.org" To: 37368@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 10 12:20:46 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i7dGP-0005e8-R0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Sep 2019 12:20:45 +0200 Original-Received: from localhost ([::1]:37440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7dGO-0006fA-D1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Sep 2019 06:20:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55270) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7dBr-0002qT-6Q for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2019 06:16:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7dBq-00060V-6A for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2019 06:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7dBq-00060O-2u for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2019 06:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i7dBp-0007Jt-T8 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2019 06:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tobias Zawada Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Sep 2019 10:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37368 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156811054228104 (code B ref -1); Tue, 10 Sep 2019 10:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Sep 2019 10:15:42 +0000 Original-Received: from localhost ([127.0.0.1]:40976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7dBV-0007JE-QS for submit@debbugs.gnu.org; Tue, 10 Sep 2019 06:15:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i7dBT-0007J6-M1 for submit@debbugs.gnu.org; Tue, 10 Sep 2019 06:15:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55174) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7dBS-0002P6-EP for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2019 06:15:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7dBR-0005n1-AM for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2019 06:15:38 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.75]:37077) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7dBR-0005m6-0N for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2019 06:15:37 -0400 Original-Received: from oxbaltgw37.schlund.de ([172.19.246.45]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N7Qt9-1iCsLD32fV-017psH for ; Tue, 10 Sep 2019 12:15:34 +0200 X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev60 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:U3US7lJqA/KMvIWvYeFL+bIfnEYfqto32llPPCHai4uMTSTdDU3 2cPXivG7stK6AWtJ8N/b1zhNepYj0LWQDPG6tV7NC8diVK6vdLRHSu4iuJq337pZ+mGYq3u RHEc/virPrv3jg7fkwbCrcw0noZAXYh5d+CIdNPaxhteUz42HFeJrzK+BwMIUCt2Mai0ha8 vJ4XnSZgxa9OILuaugVcA== X-UI-Out-Filterresults: notjunk:1;V03:K0:tn82oBT+dQ4=:Gi37dsSg2LprN6a3yhro3c yWvhsfQ3jopHxQVpR8+E2aWPFfp4SJbW5QiySz1lhezykOmZatzzUrK67nuMwc0fnxLEuDPFa EZCmfjZ8PDfFg8q2rre36GEcjzRRxzPX1CbVtAc0kO2Byon9bx2B12D07UbH+FSa3+Fu973dl n554y29GlpfZR66gwRk8mvKXW0MoKqgUTsFZruWByunMZgrahQlZOorp+hgAaEWmusd0FkBm1 ELLjhjgU7YVN5RE75hSkHXjpATWn6fKtat/pg7u1CbVLjsUSZ+QDYlOkjZJH1IZ5DFrr5673D pq6O1aX6IauMTU38uw8kSoN8j4CCKLOlxtnBjoSjHX7+/onCn3aug7eMfD5LeZMbCfQiOWM7H CeMD7jKsdrsZjvSAmcC1NUD0sSEFlT2i51HyoxoRFz5LsRWOgs+w741j2YT46P6Lox34DqXPT cZNa+7E39QIg0l6nB0WePkE2fz1pAH4c5XNtuV4kgdYLjBTL0K1xK4Wx2djqffZ72MOKx2bQ6 nOqj4riTrNR5V3qSRrDVHcyWZ8hdInetl6uk0UDQwhG7Jzebo0cQDDIlJd1HyIvuv+Jt+atNT kORWa1HllC9XDpDn0jXMS9cIcltv6dwbyuL08pJzkis1He2SGDK3Xj4OlNj/b6K/9rW1H2cVJ Mkwwa4afxBx76/+slbiPtL3NL4ENWmyBxozybMcyoVyXZqin8gNNe+SNah/n5nC4knVm5+TIF +8vwz/fvonev4y0izIZtuiKr09bmwLOaDv5BRHpqwnehJVpglWp6IY3WD4HZoecbSxL53u5s X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166345 Archived-At: 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