From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Escape syntax in docstrings Date: Tue, 28 Mar 2023 14:27:17 +0200 Message-ID: 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: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28098"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= , Chen Zhaoyang , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 28 14:28:23 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 1ph8R4-00071z-Cy for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Mar 2023 14:28:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph8Q6-0007mA-9M; Tue, 28 Mar 2023 08:27: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 1ph8Q4-0007hV-Nj for emacs-devel@gnu.org; Tue, 28 Mar 2023 08:27:20 -0400 Original-Received: from smtp-out1.suse.de ([195.135.220.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ph8Q3-0004kt-2b for emacs-devel@gnu.org; Tue, 28 Mar 2023 08:27:20 -0400 Original-Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id BC59721A17; Tue, 28 Mar 2023 12:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680006437; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nd7dcWmgiUn321nuiMwDdpDDteZZ4jQwzOliE+Bg8uk=; b=sve2gy1AG9iV5eFOq/vhqtGpheSuCrfRTWvhKf+XdGL67Re3Uz5u5g/AXoolGiXjNtq6Bz 6JpK8rOFmSGXRYYh4cEGApzWoXP5UNP4Azu2bcFeZ0L6X+KDl1Pl7xR300x/+OMDAX69cf FKrtpjgJCDD+k1ON+FSHeaMdTN27cn4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680006437; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nd7dcWmgiUn321nuiMwDdpDDteZZ4jQwzOliE+Bg8uk=; b=Pes/OVNq/TK1DEnI7dpDF5fyvSXWcJzdlK/vAePzXDEz13vNpNWtHI1AlhS4MJf0yPFEfi ubeZntKMjYhkcaDQ== Original-Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id AC9392C141; Tue, 28 Mar 2023 12:27:17 +0000 (UTC) Original-Received: by hawking.suse.de (Postfix, from userid 17005) id 9F0844AAD20; Tue, 28 Mar 2023 14:27:17 +0200 (CEST) X-Yow: Sometime in 1993 NANCY SINATRA will lead a BLOODLESS COUP on GUAM!! In-Reply-To: <87sfdpm5sn.fsf@gmail.com> (Robert Pluim's message of "Tue, 28 Mar 2023 14:14:32 +0200") Received-SPF: pass client-ip=195.135.220.28; envelope-from=schwab@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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:304801 Archived-At: On Mär 28 2023, Robert Pluim wrote: >>>>>> On Thu, 23 Mar 2023 23:02:08 +0100, Mattias Engdegård said: > > Mattias> (That Emacs doesn't reject undefined character escape sequences 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 complain > Mattias> about this.) > > How strict do you want to be? Emacsʼ own source code has some decidely > non-supported escape sequences, especially when specifying characters > using the `?\c' syntax. The elisp manual is explicit that a redundant backslash in ?\c is ignored, and even recommends its use to avoid confusion in some cases. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."