From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#65620: void function edebug-after Date: Fri, 1 Sep 2023 14:27:42 +0200 Message-ID: References: <87ledsku08.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27033"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cc: Michael Heerdegen , 65620@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 01 14:29:06 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qc3Gs-0006nK-8k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Sep 2023 14:29:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qc3Gk-0003nA-VV; Fri, 01 Sep 2023 08:28:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qc3Gf-0003lk-TI for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 08:28:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qc3Gf-0008L7-LH for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 08:28:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qc3Go-0001OK-IB for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2023 08:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Sep 2023 12:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65620 X-GNU-PR-Package: emacs Original-Received: via spool by 65620-submit@debbugs.gnu.org id=B65620.16935712825273 (code B ref 65620); Fri, 01 Sep 2023 12:29:02 +0000 Original-Received: (at 65620) by debbugs.gnu.org; 1 Sep 2023 12:28:02 +0000 Original-Received: from localhost ([127.0.0.1]:60002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc3Fq-0001Mv-F9 for submit@debbugs.gnu.org; Fri, 01 Sep 2023 08:28:02 -0400 Original-Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:42317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qc3Fn-0001MS-W9 for 65620@debbugs.gnu.org; Fri, 01 Sep 2023 08:28:00 -0400 Original-Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99c93638322so392454466b.1 for <65620@debbugs.gnu.org>; Fri, 01 Sep 2023 05:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693571264; x=1694176064; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7FgF5HJbstF/QNZoQMEz79yoAvwKotWbqBggJqoDCzA=; b=W5UjSttKvExhFbbK8JfYnxUwSsOgouxowazdexH4QDKgY6axP5NYtw/T4zdApHfo4i VKEyjHSEoZ2+Pn/gA7V0VvSOmJuhlKLP0HMdWfJqKjA8teDiXM578lxugpX67h6dpcJy /UbvR5pm7PPnXRN2ZYLYQCAS0gHmEoh2o56glQYU6lZoEmLeFGHMxrltoB+whj46kBt2 fKNMaFeEff67/z4FXsqxIIehgF9qhqxrsY36wJHR6YQ5E7/2pWUhSB9/jxldhQlpJHDS oGvbS1Bm+P4WDBYA8wXwnhmYYsTE8AbofNMzPyjSt6jZRTAc1T2qjPh4sDAeG9rq8f38 V5iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693571264; x=1694176064; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7FgF5HJbstF/QNZoQMEz79yoAvwKotWbqBggJqoDCzA=; b=eOeHynsP4siJY7jtDG+vAVaoCQUinPcuwqVR7WmIct5SEM6YFWeiBYXjSqFThzolcn /egTaej1mmUIphWtKCM4b3ZdNRygwa+1+SQmKO9j7Qxc1Z9S3Iteek4Mla9/w3VxRCql /eeiFBDKbpOheW4zZjgtlOGflhNk78JepWFB0Na1eaYwCa/oHSHj6MjSLhIbMpvxYzEn L3AdFI2ci8Hm2hj3+5faq8X3NcbBbwqym+IYK9RU9HGLXoKsUFKyeMXYPZ7OuH40EJMj fWoNLydkQx1iWeznR9IuksSLWv5GpX1nHOzRAie+/67rjee5VQ37YQk4R+AZcg6tmjiV nbAw== X-Gm-Message-State: AOJu0Yz2+CbaXJTN9H4rNJ/tGx+AJofMCpT5W8dxwiEJoqNTHhaEBLBj ULGSEhWy5iQdFAX14XDfkh4= X-Google-Smtp-Source: AGHT+IF1Nz48vDXFDbFngDOPOOCBllsq1z5Btb2VSxPbBDX9Do6PrKisCHYtvZYFl9gowk1t4Aikjw== X-Received: by 2002:a17:907:c204:b0:9a1:ee8c:7f3b with SMTP id ti4-20020a170907c20400b009a1ee8c7f3bmr4612541ejc.7.1693571264263; Fri, 01 Sep 2023 05:27:44 -0700 (PDT) Original-Received: from [192.168.178.21] (pd9e36738.dip0.t-ipconnect.de. [217.227.103.56]) by smtp.gmail.com with ESMTPSA id z15-20020a17090655cf00b0098dfec235ccsm1921193ejp.47.2023.09.01.05.27.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Sep 2023 05:27:43 -0700 (PDT) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268877 Archived-At: On 01.09.23 11:23, Alan Mackenzie wrote: > I think a better way of handling this would be to have a "base function" > for edebug-after (and for edebug-before), as opposed to the nil that each > of these currently has. These functions would throw an error asking the > user to check the edebug spec. Something like (untested): > > (defun edebug-after (before-index after-index form) > "Version of `edebug-after' to call when edebug is not yet set up. > This function gets temporarily replaced by a real function when > edebug becomes active." > (error "Invalid call to `edebug-after' for %S: Is your debug spec \ > correct?" form)) > > .. What do you think? I find that an excellent idea! The error "void function edebug-after" might indeed be considered a bit unhelpful by some :-). Haven't tested anything either, though...