From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Renaming some functions Date: Mon, 04 May 2020 01:11:10 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44317"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 04 07:11:52 2020 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 1jVTOS-000BS5-73 for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 07:11:52 +0200 Original-Received: from localhost ([::1]:44888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVTOR-0006Wq-9o for ged-emacs-devel@m.gmane-mx.org; Mon, 04 May 2020 01:11:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVTNt-00067S-Mk for emacs-devel@gnu.org; Mon, 04 May 2020 01:11:17 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVTNr-0006QP-Bk; Mon, 04 May 2020 01:11:16 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E41924508C8; Mon, 4 May 2020 01:11:12 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6E7A74508C5; Mon, 4 May 2020 01:11:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1588569071; bh=il9HvEGWWlYFw+6/2T+NbyzolRJz5CBwhJ6/dJbfarI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MOEgZIJUpWLgODQCRiidhdNnQMfo4u8K5rnWCGx2Qq0YF0PWajnYa942F8iXYh+zM 8QbecJ4DGZu1Z95Ko0t16Id65e12bp7KWamwOxM0cE8GZeo7qKyeNDFH7O0Z+P5qxa vIe6Z3LvRLzDjmxOGu2adJwVqkc5/LQJpvT1LxQv5QLlkpRxplu1YqAGtavnjC6ura DrjBl4/HS1bdRtg+s+N2ECLgDM5L41iyg02P+OhAXNGrAWBwJxGJb5MCYzzUTm7RrG PkiTB9yO3kIBUz2zVs3uckX+vZepJxoNitRxuBi/yJ/thjuL4tY4Yvvj/JEIMKqGLG TyavGFqtQLanQ== Original-Received: from alfajor (unknown [216.154.3.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1365B1202A5; Mon, 4 May 2020 01:11:11 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Sun, 03 May 2020 23:15:57 -0400") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/04 01:11:13 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:248786 Archived-At: > > Here's my first concrete renaming proposition: > > > multibyte-string-p => string-multibyte-p > > > Any objection? > > The actual behavior of the function is to return t if the argument is > a multibyte string, nil for any other type. The clear name for that > is multibyte-string-p. > > string-multibyte-p implies a function that accepts only strings as arguments > and returns t if the argument is multibyte. AFAICT, it's only ever called with a string as argument (IOW its behavior on non-strings is basically of no consequence), so both names work as well from that point of view. Stefan