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 17:23:03 +0200 Message-ID: <87a5zwnbmw.fsf@gmail.com> References: <87edpfnqln.fsf@gmail.com> <6F82ED30-8C89-4DEE-B4B0-6F58E118BB41@gmail.com> <87sfdpm5sn.fsf@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="16761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= , Chen Zhaoyang , emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 28 17:23:46 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 1phBAo-0004A9-BD for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Mar 2023 17:23:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phBAQ-0003bY-5D; Tue, 28 Mar 2023 11:23:22 -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 1phBAN-0003bK-G9 for emacs-devel@gnu.org; Tue, 28 Mar 2023 11:23:19 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phBAK-0002X4-OW for emacs-devel@gnu.org; Tue, 28 Mar 2023 11:23:18 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id l8-20020a05600c1d0800b003ef6708bbf6so5682832wms.5 for ; Tue, 28 Mar 2023 08:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680016986; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Okyqn9bq+RuMrFcM88CR6yKLM3YMy9JbO/cymmHy4ps=; b=jwU/prE3NHc6s7ZaNng3xtYANk6SLL+spQUMYEcEea1xq1HnU0wsxUpQZlQ/abyyWn B+6h6z7jWWQuPeRUNMyk5/KgRjp65rNHRoifL0VoCC0wWZ7dZkfyo3QeLActm6gLmAbp oF8tpUJ5IFQOmTRGSF5u9R7ztWyaYwxapwf53XBNyrQg5B7cfqpYGXlvAqqRoIm9Kpr/ /UR4wiUkmLoCzPgxr71v7dWApN4OocCVNQmmi86YH+5lbeTiOhSKhEovKCceNY+s4IV6 hcKJhS0tYX6rMMawjQyQkA06AwzoTkaDM0oewemUeq/rrK/C7GtKLSST9R7qTK9iMqka bqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680016986; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Okyqn9bq+RuMrFcM88CR6yKLM3YMy9JbO/cymmHy4ps=; b=dZGuj+NE+kxBv7E4xEZR72IZaZpY23Y92bCAFWtykU+zLbRw6dZs5MAXQeHKX+4Hhe pcLfeowcVS4MrQvB+ECUXPstiosNASlLti4YhxAGAVI0pMKgbn824+JwF1Xg/Jfwws+U wg2i76jgdlcetVw/g1BfxVgHHZMbS5g18AxOJPT7GS/FFzi2dANDuiEAkF0xH9foiASt 9KsAfk72oUKoBfOObqtXeT/xShiI6BmkWC9QGY9eEwo2XxmDdF6XZ2BlVIHRsJq1SNFU zUSfDcQYKHejY+fDPIv1/vYTW65t5DJhUcE+fXNfXpcY9ckqa19cs8ak9JfpBbhFqWIH SFag== X-Gm-Message-State: AO0yUKUQ+DdtQZNHTk7aW6gHIh1BTfB8D0KSq9Igcs7do3dvblXJ+TUh LY3/KpDS8m9GBP8UY0xJvZz4xkpQd7M= X-Google-Smtp-Source: AK7set88kjJFAs3onTaZ+dnWUBSiw6W/KMx8qagik3dj6XKKc8UAArP7DD0L5jgyqh3gWGzBXlh14g== X-Received: by 2002:a7b:cb86:0:b0:3dc:433a:e952 with SMTP id m6-20020a7bcb86000000b003dc433ae952mr12141429wmi.33.1680016986138; Tue, 28 Mar 2023 08:23:06 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id l5-20020adfe585000000b002cea9d931e6sm28029795wrm.78.2023.03.28.08.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 08:23:04 -0700 (PDT) In-Reply-To: (Andreas Schwab's message of "Tue, 28 Mar 2023 14:27:17 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32a.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:304806 Archived-At: >>>>> On Tue, 28 Mar 2023 14:27:17 +0200, Andreas Schwab s= aid: Andreas> On M=C3=A4r 28 2023, Robert Pluim wrote: >>>>>>> On Thu, 23 Mar 2023 23:02:08 +0100, Mattias Engdeg=C3=A5rd said: >>=20 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.) >>=20 >> How strict do you want to be? Emacs=CA=BC own source code has some d= ecidely >> non-supported escape sequences, especially when specifying characters >> using the `?\c' syntax. Andreas> The elisp manual is explicit that a redundant backslash in ?\c= is Andreas> ignored, and even recommends its use to avoid confusion in som= e cases. OK, so we=CA=BCd only need to check in strings then. I think the list of required changes would be a lot shorter, but I=CA=BCve not explicitly checked. Robert --=20