From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33167: 26; Doc string of `region-extract-function' Date: Sat, 27 Oct 2018 12:30:31 -0700 (PDT) Message-ID: References: <<<2e187b74-9999-4090-96b4-bb13d1f27544@default>>> <<<831s8bocu3.fsf@gnu.org>>> <> <<83o9bfmjte.fsf@gnu.org>> <<0a008152-d861-4b96-ad2a-b837bd412d98@default>> <<83h8h7mbxf.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540668552 14540 195.159.176.226 (27 Oct 2018 19:29:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Oct 2018 19:29:12 +0000 (UTC) Cc: 33167@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 27 21:29:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1gGUGg-0003dY-D2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 21:29:06 +0200 Original-Received: from localhost ([::1]:37586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGUIm-0008DD-M8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Oct 2018 15:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGUId-0008Cu-BR for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 15:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGUIZ-0003jn-0X for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 15:31:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGUIX-0003jF-Sl for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 15:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gGUIX-0007Fw-LR for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 15:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Oct 2018 19:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33167 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33167-submit@debbugs.gnu.org id=B33167.154066864327867 (code B ref 33167); Sat, 27 Oct 2018 19:31:01 +0000 Original-Received: (at 33167) by debbugs.gnu.org; 27 Oct 2018 19:30:43 +0000 Original-Received: from localhost ([127.0.0.1]:45752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGUID-0007FO-VQ for submit@debbugs.gnu.org; Sat, 27 Oct 2018 15:30:42 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:44642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGUIC-0007FB-E2 for 33167@debbugs.gnu.org; Sat, 27 Oct 2018 15:30:40 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9RJTCom008605; Sat, 27 Oct 2018 19:30:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Lb7K6aKBsHt+GpsE310fDQRs8rBrJuNGcDyDHxGvX8I=; b=IhWFwejfyVKGUW+4QpjLqDvhh2LFv9hcDkXrqV/lDJIY5USmAN/x7M2xxLdYO/U9de0v vLKR4u1WmHYfMoulMYUI0krJf20rkFfRZTOVyZiYRMrPWIgjree3iJSw2r9zFThR83qa 3TB2NlMxyxJn7b1W1kR3or8vYi9HzPhwEWsomJbnTt82x6b/9dHGEnj5oyFij2egLVID 5HaO00PcyppgwDDJiKBed23egL+xRSjN+6vn8z76w5kUzqbL+gLb4hX5pLifUYCYyp5U Q4x+Nrs/DWAJ4gFTZ4mcNZlj1w+jOcGhL2OiUdRVHAZTsAIpSznRXu2OuG52QqMMTbhi 1Q== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2ncgnqh3xu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Oct 2018 19:30:34 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9RJUXi1005851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 27 Oct 2018 19:30:33 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9RJUWZI020839; Sat, 27 Oct 2018 19:30:32 GMT In-Reply-To: <<83h8h7mbxf.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4756.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9059 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=742 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810270180 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151697 Archived-At: > > But if the spec of the variable imposes nothing on the BEG > > and END values passed for filtering, then why does it impose > > a requirement that `filter-buffer-substring' must be called? >=20 > So that applications could rely on that, and could provide their own > filter functions, if they want. I see. That makes sense. Thx. Is it really the case that the value of `region-extract-function' can pass any limits it wants to `filter-buffer-substring', even limits that have no relation to the pieces of the noncontiguous region? So the only thing specified is that `filter-buffer-substring' gets called once for each each piece? I.e., all that's specified is that if the nc region has N pieces then `filter-buffer-substring' is called N times - nothing more?