From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.bugs Subject: bug#58706: 29.0.50; [noverlay] `get-pos-property' misses overlay start Date: Fri, 21 Oct 2022 21:34:42 -0700 Message-ID: <87edv04gt9.fsf@rfc20.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan monnier To: 58706@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 22 07:18:47 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 1om6uE-0001Iv-LW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Oct 2022 07:18:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om6E0-0003fj-Ti; Sat, 22 Oct 2022 00:35:08 -0400 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 1om6Dv-0003fa-QJ for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2022 00:35:03 -0400 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 1om6Du-0008T3-4q for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2022 00:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1om6Dt-0003JQ-Rq; Sat, 22 Oct 2022 00:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Armstrong Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Oct 2022 04:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58706 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: stefan monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.166641329312710 (code B ref -1); Sat, 22 Oct 2022 04:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2022 04:34:53 +0000 Original-Received: from localhost ([127.0.0.1]:39499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1om6Dl-0003Iw-0m for submit@debbugs.gnu.org; Sat, 22 Oct 2022 00:34:53 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1om6Dj-0003Io-6d for submit@debbugs.gnu.org; Sat, 22 Oct 2022 00:34:51 -0400 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 1om6Di-0003Zq-Ce for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2022 00:34:50 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om6Dg-0008Pr-Jf for bug-gnu-emacs@gnu.org; Sat, 22 Oct 2022 00:34:50 -0400 Original-Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id 390A21C0002 for ; Sat, 22 Oct 2022 04:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1666413285; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=f1o+yzGhLWP/OkgkWYC3s0gNVCWr18lYJb3v6vWaJUQ=; b=kA2E679P4UvMrTaEhsHNIOSjxRxGYJCOjgotHSgq0FEZ2M+Syu0VtVntCst3nzNWJUDujh ae7uLkboW6RXvt2FtffApYv3mMqgJlFrd4vz4VD9mmDG1UZTw5NiYjmtpTNvBZppNoj3qJ 9QfY/OMz3ADfGXMPzcov0wQgpHX9Irt2f6/oGtHWm4CX1MYVC+I2gVh2PyUFeF42VPpxZP M1SGERiYZS17co+0D1umB7iPpl+wOrRm/yXIakOA/5NVldSOKG2ipqQJ5wyHGKwt3n88+b nKbZpRKCC65xDvLVr4ryICm86+LIJwmisP6UrNn1+roXPmIqAsrkxxZHhIhySg== Original-Received: from matt by naz with local (Exim 4.96) (envelope-from ) id 1om6Da-001Q2h-0l for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2022 21:34:42 -0700 Received-SPF: pass client-ip=217.70.183.197; envelope-from=matt@rfc20.org; helo=relay5-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246021 Archived-At: X-Debbugs-CC: Stefan Monnier The following test passes on mainline but doesn't on feature/noverlay. On the noverlay branch `get-pos-property' returns nil. (ert-deftest test-get-pos-property-overlay-beg () "Test `get-pos-property' at the beginning of an overlay." (with-temp-buffer (insert (make-string 10 ?x)) (let ((overlay (make-overlay 5 7))) (overlay-put overlay 'forty-two 42)) (should (equal 42 (get-pos-property 5 'forty-two)))))