From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#72212: 31.0.50; API for condition objects Date: Sat, 14 Sep 2024 17:09:09 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22837"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Monnier , 72212@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 15 02:11:03 2024 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 1spcr0-0005pH-Mi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Sep 2024 02:11:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spcqr-0001fi-43; Sat, 14 Sep 2024 20:10:53 -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 1spcqo-0001fU-Vz for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 20:10:51 -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 1spcqo-0007qn-GU for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 20:10:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=AVhKphvsxAWH8yurrNxaL9FAX4Yzc9uc/3LDOqVjdHo=; b=BaeMWyCHSVf2TqNJtCRy3B165FrOATupKLx7pJ7b+xOZC448Z9jQ3Vab+QskuS8MxEPoKjDAvJ3EQru8Lr9d80YvK2OamSAGwwPCQCsmfwB3lVsOdruawQbsgBpPK8rH6kf+mhutTAV2lVRLWAyi1NJfAvA1yRSKTetZM4n17UK2AQuDEqNz8mU00xYWpSTmfeayBfrDEXq6rCq+UFGse55NDFUIxRi+yurjm7zT36EDTcOVQg9Yos0TNMe3OyJtNr38JyNr3XEaa6c5Qqc6JQAp6Gl5l3MH+Ys1g+QHV5bg80Vu+ZcwWvhB6jyvWRCXz1sm+QxdolrFot6ZR/UzzQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spcqz-0001UD-Ja for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 20:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Sep 2024 00:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72212 X-GNU-PR-Package: emacs Original-Received: via spool by 72212-submit@debbugs.gnu.org id=B72212.17263590305665 (code B ref 72212); Sun, 15 Sep 2024 00:11:01 +0000 Original-Received: (at 72212) by debbugs.gnu.org; 15 Sep 2024 00:10:30 +0000 Original-Received: from localhost ([127.0.0.1]:47993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spcqT-0001TI-OP for submit@debbugs.gnu.org; Sat, 14 Sep 2024 20:10:30 -0400 Original-Received: from mail-ed1-f54.google.com ([209.85.208.54]:42444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spcqR-0001T2-C5 for 72212@debbugs.gnu.org; Sat, 14 Sep 2024 20:10:28 -0400 Original-Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5c40942358eso1659961a12.1 for <72212@debbugs.gnu.org>; Sat, 14 Sep 2024 17:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726358950; x=1726963750; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=AVhKphvsxAWH8yurrNxaL9FAX4Yzc9uc/3LDOqVjdHo=; b=hyjuGp+7w/kzBWTFv1tcJ+3dGvdKe/7LtKXlDSEw1CmRK1/+eQxm9u0BXUzztK7JoP ZRSXFFYWwp0ceq+Ct0e2geAs36K/TA0wV3ohTXbU/PMjXn4l29FVJjs2NfYDChOdPjea ylIqQ5zchs/OOWWuIu3UvKfME27pCwS9rrMtuf9pb2IT/YJFHk2WI1i9Ps9k2KRjhF+K jtVLpEc7K219ciEoFvFzVHVLMKvdQ8v6XQc311DJ4LOoTYV947DrjIWwZtHOw5LxbucT mNISLxVkuPayQ8LC3diglCu3xpAVauUWK3AU3DrlcQh/50krERUJ82zeNHdZC2HvlA0R NRXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726358950; x=1726963750; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AVhKphvsxAWH8yurrNxaL9FAX4Yzc9uc/3LDOqVjdHo=; b=L37HwWkttFqHqTKLXzdY8hrPvBUtt5Xx76Ej/C7BsZYWgIN3o7w1pfhE/o1pWZAiaE S5amg3PW/mdlKb66hiGV+iNMiWxhZdwMxX8PHVTZtob1e1jyB+hX561VGnxWTdZeeg51 sMRw98s/9BcKek4b62BJuym9bs18c+WuX9BHj+kow5R6FUkPmHymiEyYugGi1QrkpGOI dg/van3Ujl+5exL6r4lXD4d1N+T6ohMoMyi8iM8V6Y8cAYq5lINe0StZdRIVwaOP6sXg MezH2asPWH12ofNBEbR0EPAwTc/qLbN0w+mSoopcX6paWbc8wmAc9J8L94qw8IUyfj/K +iKA== X-Forwarded-Encrypted: i=1; AJvYcCU80YnC/nu2nahdSR+Z2+lxqtrCubSc3AUOlEtucAVuPGTfmzARa9592eDZITMsDf8i9ge+Hg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw5Wqq+D0ZECG8+I8p+pZ3c25SLnWacuUe04KqPc1kMQ9b6vRfz pwXUR1CiVpXeA0GmeW1QXxKe+dhRACypp7qeiTFSe2YmHjEjUE/MMjbfm/Heijk0vVt9Mi0i6vm 7l1uP0MJ8NeXOhr+JDtMGeOYDkVDCmlEX X-Google-Smtp-Source: AGHT+IEFNxxsVGW1ek9SiNbjVMsV27XzWCOr+J3EiIJ2Nc1TbxZcO+7tDzLTgFovEPHMqW4Yl76vxLTiI8NAlcaKrbs= X-Received: by 2002:a05:6402:27c7:b0:5c2:7699:92ef with SMTP id 4fb4d7f45d1cf-5c414387344mr12906094a12.16.1726358950184; Sat, 14 Sep 2024 17:09:10 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 14 Sep 2024 17:09:09 -0700 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:291815 Archived-At: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > Wow, I did not expect such wild reactions! ;-) FWIW, your patch looks good to me, and seems like it's moving in a good direction. >> Beside whether we want to do this or not, there is another question >> about naming: currently we use "condition" in some places (e.g. in >> `condition-case`) but we use "error" in others (e.g. `define-error` and >> `error-message-string`). I chose to use "condition" in the patch below, >> but I don't have a strong opinion on that choice, so I could go with >> "error" if that's what other prefer. If we keep "condition" there's the >> subsidiary question whether we should add aliases for `define-error` and >> `error-message-string`. I think we should keep the word "condition", and think we could have aliases "define-condition" and "condition-message-string" like you propose.