From unknown Fri Jun 13 11:19:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37368: Enhancement in master: Add debug declaration to widget-specify-insert 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-GNU-PR-Keywords: To: 37368@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156811054228104 (code B ref -1); Tue, 10 Sep 2019 10:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2019 10:15:42 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 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 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 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 Date: Tue, 10 Sep 2019 12:15:33 +0200 (CEST) From: Tobias Zawada Message-ID: <1430113248.233983.1568110533401@email.ionos.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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/fvonev4y0izIZtuiKr09bmwLOaDv5BRHpqwnehJVpglWp6IY3WD4HZoecbSxL53u5sF OefBs3Kb445wUP+Bd4t+OseWaMnOfhzvXG2NHxE4cYxYCGRTSs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.75 X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From unknown Fri Jun 13 11:19:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37368: Enhancement in master: Add debug declaration to widget-specify-insert Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2019 12:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37368 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tobias Zawada Cc: 37368@debbugs.gnu.org Received: via spool by 37368-submit@debbugs.gnu.org id=B37368.15684636245556 (code B ref 37368); Sat, 14 Sep 2019 12:21:01 +0000 Received: (at 37368) by debbugs.gnu.org; 14 Sep 2019 12:20:24 +0000 Received: from localhost ([127.0.0.1]:45968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i972N-0001RY-So for submit@debbugs.gnu.org; Sat, 14 Sep 2019 08:20:24 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i972M-0001RQ-87 for 37368@debbugs.gnu.org; Sat, 14 Sep 2019 08:20:22 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i972I-0007y8-UF; Sat, 14 Sep 2019 14:20:21 +0200 From: Lars Ingebrigtsen References: <1430113248.233983.1568110533401@email.ionos.de> Date: Sat, 14 Sep 2019 14:20:18 +0200 In-Reply-To: <1430113248.233983.1568110533401@email.ionos.de> (Tobias Zawada's message of "Tue, 10 Sep 2019 12:15:33 +0200 (CEST)") Message-ID: <87ef0j83y5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tobias Zawada 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tobias Zawada 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 14 08:20:29 2019 Received: (at control) by debbugs.gnu.org; 14 Sep 2019 12:20:29 +0000 Received: from localhost ([127.0.0.1]:45971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i972T-0001Rq-5k for submit@debbugs.gnu.org; Sat, 14 Sep 2019 08:20:29 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i972Q-0001Ri-Uw for control@debbugs.gnu.org; Sat, 14 Sep 2019 08:20:27 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i972O-0007yE-C7 for control@debbugs.gnu.org; Sat, 14 Sep 2019 14:20:26 +0200 Date: Sat, 14 Sep 2019 14:20:24 +0200 Message-Id: <87d0g383xz.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37368 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 37368 fixed close 37368 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 37368 fixed close 37368 27.1 quit