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: master 583cb26 2/3: Improve accuracy in string-replace description (bug#43598) Date: Mon, 28 Sep 2020 11:42:05 +0200 Message-ID: References: <20200927124520.25321.62354@vcs0.savannah.gnu.org> <20200927124522.BA20F207E0@vcs0.savannah.gnu.org> 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="3714"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 28 11:43:40 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 1kMph6-0000rK-9n for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Sep 2020 11:43:40 +0200 Original-Received: from localhost ([::1]:53848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMph5-00025k-Cs for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Sep 2020 05:43:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMpfd-0001Xs-Rc for emacs-devel@gnu.org; Mon, 28 Sep 2020 05:42:09 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:53805) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMpfc-0005jg-6Y for emacs-devel@gnu.org; Mon, 28 Sep 2020 05:42:09 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id x23so410313wmi.3 for ; Mon, 28 Sep 2020 02:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=/6jOB/FQHwFxiJuaXx7WEmfB1OE1JWsSnnL1v8PMQCg=; b=tGJUNOSdVe0IRpFZytlPWsZIvxcDtECrkpdWRr275j7rFI3angaXrdzb9PNYC5aH+H lQcFejCU3RzPq0QdFwz2YXfW0nYB25vzyO8UureMEWKBCUCvVc+g9vPjWAaJAlIzQ17V 4njAQyvDfFxreSVIBUpF4Z3/ykAcckmduIa54OEXwjozPzJpukEoo+2BmRpOpRRoRsJp wTA2/0qjUlDNvzNT6Mq8a6s0fmSRMWRYmd/4JvxbbSicUqoHBeqohVDxqHtNghv1kf0b 60eZ8RFAkv1/o2B/QDfUKc+BH1ecZHsvH0+erpVO9CkaUWA+/zlrX2NzQvn7/51dHxqX DwkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=/6jOB/FQHwFxiJuaXx7WEmfB1OE1JWsSnnL1v8PMQCg=; b=MjviQOMS4fjynzqORfnhBsFEe0leIgtNpAETbis5dHJC9Bm+et/5nTXVe2qvB1BIAf hUvcNElJP69S8z5EuiMXKiJebW8SsPaa67rdjxx4c6Qm95DizY/VbVRHRvdpvpEJXMKe PGu8dMTZzbQpRr2i7hpHqLlcOZ/0Ml6AGNfPQTveik7KVYLTGe33enG/6332vlSgukZx oEjgTAqglWOr9F+mfoN5RPuPlaRZ7ZCjEkS3IPB4cdrvam5YJr1YxfXEprI0THPGBVTU 3o//+N+CjIx9lQIpBIW+MfdNhKNTnkTYbDfzAL1a6s3bWgVK9HKev9wnHdS63penDzMH 5/KQ== X-Gm-Message-State: AOAM533r6gZ3P+EpErvsn3WJwuJi+v/TkOjwcb4xcJJPpr7BmZ/x6yY6 tH/kCxgjmX6gEPSOgXnYyHI= X-Google-Smtp-Source: ABdhPJwbt32THwcPQzdsEn9nk6FOwtFmb66qS4H5txJoKcpIbc0P8GeFQut5B0F0FZHE0WRMmiU2zQ== X-Received: by 2002:a1c:7508:: with SMTP id o8mr665191wmc.127.1601286126587; Mon, 28 Sep 2020 02:42:06 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:5e8:c9a6:d426:17be]) by smtp.gmail.com with ESMTPSA id v2sm700769wrm.16.2020.09.28.02.42.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 02:42:05 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <20200927124522.BA20F207E0@vcs0.savannah.gnu.org> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Sun, 27 Sep 2020 08:45:22 -0400 (EDT)") Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=rpluim@gmail.com; helo=mail-wm1-x331.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.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:256581 Archived-At: >>>>> On Sun, 27 Sep 2020 08:45:22 -0400 (EDT), Mattias Engdeg=C3=A5rd said: Mattias> @defun string-replace fromstring tostring instring Mattias> -This function copies @var{instring} and replaces any occurren= ces of Mattias> -@var{fromstring} with @var{tostring}. Mattias> +This function returns a string equal to @var{instring} where = any Mattias> +occurrences of @var{fromstring} have been replaced with Mattias> +@var{tostring}. It may return one of its arguments. Mattias> +Case is significant, and text properties are ignored. Mattias> @end defun 'equal'? Really? And it=CA=BCs kind of passive-voicey. How about: This function replaces any occurences of @var{fromstring} with @var{tostring} in @var{instring} and returns the result. Robert --=20