From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Saving match data Date: Sun, 08 Oct 2017 16:01:48 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1141a45c96c8fa055b0b3101" X-Trace: blaine.gmane.org 1507478616 5074 195.159.176.226 (8 Oct 2017 16:03:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Oct 2017 16:03:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 08 18:03:29 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1E2x-0007VD-2Z for ged-emacs-devel@m.gmane.org; Sun, 08 Oct 2017 18:03:24 +0200 Original-Received: from localhost ([::1]:54239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1E32-00081s-Ll for ged-emacs-devel@m.gmane.org; Sun, 08 Oct 2017 12:03:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1E1f-0007tf-UY for emacs-devel@gnu.org; Sun, 08 Oct 2017 12:02:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1E1f-0005mB-8K for emacs-devel@gnu.org; Sun, 08 Oct 2017 12:02:00 -0400 Original-Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:54439) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1E1f-0005lx-3c for emacs-devel@gnu.org; Sun, 08 Oct 2017 12:01:59 -0400 Original-Received: by mail-oi0-x232.google.com with SMTP id u130so36203913oib.11 for ; Sun, 08 Oct 2017 09:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DVm1fEXYSJMOpPr94yKItcU46hj+pso/gDRk+oBaWhg=; b=eNWYaLzfFC9n/e8YNBECdLitdI9chfdqFiFPW/ptliNpb/v3tZynkuf4nGJJYSnD0S mbMoBalRaVtaJNwDnFlUqkuHl9toB3n/9fDbYUxW4hVoCeWfAMcbWtdspv2iVNwlLbXu 3cW4X0tDqOEqcWLSoYuFwK4SFNb03FNwSbrNiKPNawNVKSsWTwjPqxZ1/xzYNFKr3/q7 8qTvNpJMWXil/N/Mor57tORFVzDXlLAKkE4Fy0q/dyaCKw9rZq8GQXYN6kHv6jwZPANh ENCBk10jRZbTbwHx7J7cCJXjymu+0/C0Gd1neUEhsP6tialuR4hJ6QDdkMYwmTGpO5mX 74GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DVm1fEXYSJMOpPr94yKItcU46hj+pso/gDRk+oBaWhg=; b=SQngZ8ST0dgZQEnI+bNrb4i2cy4Tv0sS20dm/hokPQnPaFmU6gOheu1wNByky9u6LX ydhi661IFqElj89Luj2buQdeQwprxbgtmQu/GH7GQLXQSwH4mA6q0jUEDHYMhohO3Icu F0RYH1HlwzidN8HnQLXtHxnwE6QwNoyRVkalbL1GNPjz1Yjs0C5unsA8MbaX8ZGA9gp4 YvpaS5+HDiIzBPwf1tvw1xEyLT5bJVQnWjnaeeFu0tF77qNcwTUqFUlvElwAa64FyIck oxNpT5ZNf4XHNlUoiMZBnyqDwmp1oWmTDVuE11Dms7F9/0CqKSULIYiZAdCGnVFWHJ1R 8xvg== X-Gm-Message-State: AMCzsaWMtOBJOFywrABuN85F44PgOUA5Hir9OOzz1zckC3/q3WG6EbX/ IAAs3HtS+NA50wpOUdqANHdwl5J9r2X18A+aPXA= X-Google-Smtp-Source: AOwi7QDeXDCnD/OFoLH8/wbwUEjOeNxYXbh7DNkx2a/dmzpAetSF/Wng6hPkGlDrg5c/tuiUrIwbidSDC3kEHdiQKZQ= X-Received: by 10.202.229.5 with SMTP id c5mr4006997oih.82.1507478518284; Sun, 08 Oct 2017 09:01:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219254 Archived-At: --001a1141a45c96c8fa055b0b3101 Content-Type: text/plain; charset="UTF-8" Stefan Monnier schrieb am Fr., 16. Juni 2017 um 21:53 Uhr: > >> > I think this statement is surprising > >> Agreed. That's why we have to write it explicitly in the doc ;-) > > Could we also write it in the docstrings of the match-related functions > > (match-beginning etc.)? I guess people are more likely to read those than > > the manual. > > That might work, yes (tho in my experience, Elisp coder don't read > docstrings nearly as much as I would have expected). > I guess a reasonable expectation is that nobody ever reads documentation. Therefore systems should do the right thing when used in the most obvious way. --001a1141a45c96c8fa055b0b3101 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Stefan= Monnier <monnier@iro.umontr= eal.ca> schrieb am Fr., 16. Juni 2017 um 21:53=C2=A0Uhr:
>> > I think this statement is surpri= sing
>> Agreed.=C2=A0 That's why we have to write it explicitly in the= doc ;-)
> Could we also write it in the docstrings of the match-related function= s
> (match-beginning etc.)? I guess people are more likely to read those t= han
> the manual.

That might work, yes (tho in my experience, Elisp coder don't read
docstrings nearly as much as I would have expected).
<= br>
I guess a reasonable expectation is that nobody ever reads do= cumentation. Therefore systems should do the right thing when used in the m= ost obvious way.=C2=A0
--001a1141a45c96c8fa055b0b3101--