From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kai Ma Newsgroups: gmane.emacs.bugs Subject: bug#60058: 29.0.60; overlay-lists does not conform to its docstring Date: Wed, 14 Dec 2022 13:22:07 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34290"; mail-complaints-to="usenet@ciao.gmane.io" To: 60058@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 14 06:23:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1p5KEk-0008oj-NX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Dec 2022 06:23:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5KES-0002Ic-Ee; Wed, 14 Dec 2022 00:23:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5KEQ-0002IG-Sv for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 00:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5KEQ-00065V-L5 for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 00:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5KEQ-00025L-6s for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 00:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kai Ma Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2022 05:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60058 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16709953397992 (code B ref -1); Wed, 14 Dec 2022 05:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Dec 2022 05:22:19 +0000 Original-Received: from localhost ([127.0.0.1]:36769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5KDi-00024q-Mk for submit@debbugs.gnu.org; Wed, 14 Dec 2022 00:22:18 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5KDg-00024k-T1 for submit@debbugs.gnu.org; Wed, 14 Dec 2022 00:22:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5KDg-0002Bf-Nz for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 00:22:16 -0500 Original-Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5KDf-0004zy-0W for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 00:22:16 -0500 Original-Received: by mail-pj1-x1043.google.com with SMTP id v13-20020a17090a6b0d00b00219c3be9830so5876327pjj.4 for ; Tue, 13 Dec 2022 21:22:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=ZngAoK/tyEnxSw6pgEsHDe2OocgerxRiH0enGaMGmrM=; b=fmA+LRjyklNQy+6SU4a1f04iQoEFDv3QzMxsfg+EJtX/cy7aBKMieRihWNi39KJEDk rZUlUomGLXyrTLPSXtZ0I7ZrMf1Qje/w8kNnF24lGmAg0n8XKFEw3JOXAer1W3kugmKa 2lC4XmfMMkIuta46J/Ydyf1DzU8RC8ROyUeJW/lWmcxOLj4t6jkL6k9dlRAH9cpFmWpg 9ltq8UIbDarcbHezLjhbkh0nW7Qzj/5UNAUiUG2XoJrFtAE73P5MC6wqonz5cqxI1YwR RKhrtFPr07tA30osdklMrxWkJXawP8iiO6RYEkyAfabxAguoITz+3HQYWz+DKaDQaIx3 m3hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZngAoK/tyEnxSw6pgEsHDe2OocgerxRiH0enGaMGmrM=; b=geP5F2dJKgUrkE2RIf7y929Tozg5L8Js3DsLI2+czW9x2BvblzSAJjn3SjLuHrI6Br IQX/wU65v7e8c7nhJj7+WsO0RwUUL+mtTiGwzB3zaEfbuax3Ndp2kJXERpuloVcR0hFm +2HypKM1bXxDpGGSsWWUHYM3DaebK8TrgZCJs4hmtiapo8A1Vn8dptihHZEXmZz0mUTi 74flXx2XBwgztKHtqGTkENvNNaupQv3ZAf0qM3Oo6hOebEi1fLGVv7E08+VW5qjA2uk0 AOPe+3xZXijXKRg1DAPywNMUecLmj/b1MNznvCAZQAq4QDG6qMF7NiGSZpCJzEZm7tz5 Y2Tw== X-Gm-Message-State: ANoB5pkdY3ep2dY0LM9vKiuuBfCWri/8hM17AuXtCdRg4U3FgQ6G8K4t wuQPuLJq0y0cbeUUBEiU8UmzgrHicnRz6rN0 X-Google-Smtp-Source: AA0mqf5UY5wLc9tAbuq3TIQTWGgLxg7yFA4d//d5AZnGpIHtHCqrfutBZPjXR90aJ6l8pzqksKO4iA== X-Received: by 2002:a17:902:e30a:b0:189:deeb:8c94 with SMTP id q10-20020a170902e30a00b00189deeb8c94mr21058855plc.22.1670995332619; Tue, 13 Dec 2022 21:22:12 -0800 (PST) Original-Received: from Kais-MacBook.local ([202.38.78.189]) by smtp.gmail.com with ESMTPSA id f17-20020a170902ce9100b00178b6ccc8a0sm837504plg.51.2022.12.13.21.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 21:22:11 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=justksqsf@gmail.com; helo=mail-pj1-x1043.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, FROM_LOCAL_NOVOWEL=0.5, 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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250915 Archived-At: The docstring of overlay-lists states that the return value is a cons pair, and the CDR is not always nil. However, the code does not do what it claims to do. DEFUN ("overlay-lists", Foverlay_lists, Soverlay_lists, 0, 0, 0, doc: /* Return a pair of lists giving all the overlays of the current buffer. The car has all the overlays before the overlay center; the cdr has all the overlays after the overlay center. Recentering overlays moves overlays between these lists. The lists you get are copies, so that changing them has no effect. However, the overlays you get are the real objects that the buffer uses. */) (void) { Lisp_Object overlays = Qnil; struct itree_node *node; ITREE_FOREACH (node, current_buffer->overlays, BEG, Z, DESCENDING) overlays = Fcons (node->data, overlays); return Fcons (overlays, Qnil); } This change in behavior has led to at least one breakage in the wild: symbol-overlay cannot count overlays correctly. I think there is a problem either in the code or in the docstring. Kai