From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#35536: 27.0.50; Expose buffer's marker list to Elisp Date: Fri, 3 May 2019 10:53:36 -0700 (PDT) Message-ID: <8710b9bd-f945-463b-906c-92564970ab43@default> References: <87lfzo274b.fsf@tcd.ie> <83ef5gq1po.fsf@gnu.org> <87imusztof.fsf@tcd.ie> <8336lwpxcq.fsf@gnu.org> <87sgtvczba.fsf@tcd.ie> <875zqrbggw.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="265159"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35536@debbugs.gnu.org, maurooaranda@gmail.com To: Stefan Monnier , "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 03 23:15:28 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMfWg-0012u5-Fj for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2019 23:15:26 +0200 Original-Received: from localhost ([127.0.0.1]:45380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMcO0-0003nt-Jd for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 May 2019 13:54:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMcNn-0003mb-JS for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 13:54:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMcNm-0002py-LS for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 13:54:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMcNm-0002pr-Hy for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 13:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hMcNm-0000Z2-Dl for bug-gnu-emacs@gnu.org; Fri, 03 May 2019 13:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 May 2019 17:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35536 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35536-submit@debbugs.gnu.org id=B35536.15569060302148 (code B ref 35536); Fri, 03 May 2019 17:54:02 +0000 Original-Received: (at 35536) by debbugs.gnu.org; 3 May 2019 17:53:50 +0000 Original-Received: from localhost ([127.0.0.1]:49614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMcNa-0000Ya-HZ for submit@debbugs.gnu.org; Fri, 03 May 2019 13:53:50 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:54668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMcNZ-0000YO-FQ for 35536@debbugs.gnu.org; Fri, 03 May 2019 13:53:49 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x43Hmwt5182259; Fri, 3 May 2019 17:53:43 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=ZV7pjXjl1b2FKFPbdT7A5zUFE7b0elk1m55RlRlgtvI=; b=CFJWC1gOACVcoyLFzGZpwTH7BgTvZUPJZqSQKGIZnLwN/S3+jlVemyZ6FeLz84vj0Xac OE2WgQcvU3KCDbhOLxs0XIuN3+GzDnjACEB0nGVrysYxPSaZAtsIhCmHwonoK6YQhNQz lahBvbgXnasCpdpScgUG5rrouPWLlavH7oAUmxVBTLuaEXrMevd2mrjQw53oNg0UVbH4 YBu8KTuGvjzPgcCdi+jByoXffiFuVeHaZtMkd60f0OVqNaeeJNY45Bm6hn0W7LAEca6x uQm4WpHOClz2fDgWuMUPaWBqyS5GxnPh0zU7MjKnGFaNClUcdEmTmZJEYb0WuTMpZuE0 7g== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2s6xhyrc32-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 May 2019 17:53:42 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x43Hqnd4091311; Fri, 3 May 2019 17:53:42 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2s7rtcdtp4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 May 2019 17:53:42 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x43HrbqQ009669; Fri, 3 May 2019 17:53:38 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9245 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905030116 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9245 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905030116 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: 209.51.188.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:158691 Archived-At: > >> What's _not_ available to users or Lisp code, I > >> think, is the order of marker creation or even the > >> order of last setting. >=20 > There's no reason for the C code to keep track of those things either. > So while the current implementation may happen to have the markers in > "creation order", it would be wrong to provide a primitive that promises > this ordering unless there's a *good* reason why we'd want to force > future Emacsen to also keep track of this info. So far I don't see any > such reason. Fair enough. I was thinking it might be a freebie. E.g., I was thinking that the list to be returned would just be created by, say, pushing new markers onto it. If that were the case then that order could be useful, whether or not one could _depend_ on it. Whether or not one should be able to depend on such an order is a separate question. If guaranteeing to provide such a default order is too restrictive (and I agree that it probably would be), but if the current implementation did mostly return the set in such an order, then I'd vote for not reordering it and just saying nothing about the return order. Consider `buffer-list', for example. The order is generally useful but we say nothing much about it, directly. (But we do show, in (elisp) `Buffer List', how you can reorder the underlying buffer list.) We also point out there of saying that `buffer-list' "is not an internal Emacs data structure, and modifying it has no effect on the order of buffers."