From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Escape syntax in docstrings Date: Tue, 28 Mar 2023 14:14:32 +0200 Message-ID: <87sfdpm5sn.fsf@gmail.com> References: <87edpfnqln.fsf@gmail.com> <6F82ED30-8C89-4DEE-B4B0-6F58E118BB41@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30639"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Chen Zhaoyang , emacs-devel@gnu.org To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 28 14:15:03 2023 Return-path: Envelope-to: ged-emacs-devel@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 1ph8EB-0007rz-Pp for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Mar 2023 14:15:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph8Do-0003fw-Ah; Tue, 28 Mar 2023 08:14:40 -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 1ph8Dm-0003ef-DV for emacs-devel@gnu.org; Tue, 28 Mar 2023 08:14:38 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ph8Dj-00025A-Rd for emacs-devel@gnu.org; Tue, 28 Mar 2023 08:14:38 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id l15-20020a05600c4f0f00b003ef6d684102so3959223wmq.3 for ; Tue, 28 Mar 2023 05:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680005673; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from:from :to:cc:subject:date:message-id:reply-to; bh=JCSM2cZGAEzNnlde9dVxMMbzLpsHGpldyXN8SBJivng=; b=gee44laxGXHG/acK3Ag/Ns/f1L+nhvJFDAcAU6YP79Q/2ybxT4mPaWrNKqc3GCrdZs NmvLO+kD0ora3QSVuaek7zbmRnRPzMevOTB6MCxAkz2hDuKdtyOemKmY47pKgrUHjUv4 gHBQp1bI5b4amAs5mUbspaydDseP+QL7vYhRlpPamSTFZVCiBrm8bbqFz8CzgD9vWw7E n3S7o+X+QlKn0+QJ52dVx+5cc7NbC2FPpgIi4hiCTsi5BmWlSVhA9A+BboTph7bI0ZGq 5rbLsSjyCOFnPyyMIj6VQ1mG3IU60j2mXs8rh8UtK6A13x2Dq93N5kRiakMdwZkMWR9M eiLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680005673; h=content-transfer-encoding:mime-version:message-id:date :gmane-reply-to-list:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JCSM2cZGAEzNnlde9dVxMMbzLpsHGpldyXN8SBJivng=; b=j1Zt6zvlQRlHLf2XXjtRG7eqDzaOxprXc+BJjYJeP/zU1tFkVytStjEgwDQYFav7dL BneL/wyXmMgYobyPAWoS+3BUjQsUFhog+cIF9pD0lLxR3PjGrW9os6mPa1iUUTX2TSiD 7IF82l+7qYGbsf5wEc59/6jzX1dGFJxqWO5MkOQgeb5un2jNbz+B1d33UZWsgBjAIjuK VTS8kGOfUROWkCrUb58pUFlrOFbG7nEjp9brTA43NR8DDukqeZOyaJTHIbK/+A8eKyAo RUvsn91CMpJiNJCu+A514XluRnW+HD90KDkn9SjfdjZpv2VBB3qfzourtigkPpENdyJZ L4hw== X-Gm-Message-State: AAQBX9eST/AtdfXqTmT+obB9QY2JuvAPfj6Rt6vivs3HUll2rfhejAdr osPENi/ScHikmXiV3zKFLzx9Y/RKwYk= X-Google-Smtp-Source: AKy350ZIZOj3G6MupBceazBZcQ+pgveDeubUTp80dl0l6bcKDXoBOgx6/UVCXkPs05wvsvqgWf2tbw== X-Received: by 2002:a05:600c:2042:b0:3ef:6819:b2ad with SMTP id p2-20020a05600c204200b003ef6819b2admr7432815wmg.37.1680005673308; Tue, 28 Mar 2023 05:14:33 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id s15-20020a05600c45cf00b003eb2e33f327sm3392197wmo.2.2023.03.28.05.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 05:14:32 -0700 (PDT) In-Reply-To: <6F82ED30-8C89-4DEE-B4B0-6F58E118BB41@gmail.com> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Thu, 23 Mar 2023 23:02:08 +0100") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304800 Archived-At: >>>>> On Thu, 23 Mar 2023 23:02:08 +0100, Mattias Engdeg=C3=A5rd said: Mattias> (That Emacs doesn't reject undefined character escape sequence= s such Mattias> as "\y" is not only a constant source of bugs, it also makes it Mattias> difficult for us to add new escape sequences without worrying = about Mattias> breaking some (misguided) code. Almost every other language co= mplain Mattias> about this.) How strict do you want to be? Emacs=CA=BC own source code has some decidely non-supported escape sequences, especially when specifying characters using the `?\c' syntax. I guess a first step could be to add a byte-compile warning for those analagous to `lread--unescaped-character-literals', and then maybe expand it to strings as well. Robert --=20