From unknown Thu Aug 14 21:42:56 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20411 <20411@debbugs.gnu.org> To: bug#20411 <20411@debbugs.gnu.org> Subject: Status: 24.3; Docstring of `next-single-property-change' Reply-To: bug#20411 <20411@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:42:56 +0000 retitle 20411 24.3; Docstring of `next-single-property-change' reassign 20411 emacs submitter 20411 Eli Barzilay severity 20411 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 23 10:08:19 2015 Received: (at submit) by debbugs.gnu.org; 23 Apr 2015 14:08:19 +0000 Received: from localhost ([127.0.0.1]:37858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlHnf-0005IS-8q for submit@debbugs.gnu.org; Thu, 23 Apr 2015 10:08:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36303) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlHnc-0005IE-Gu for submit@debbugs.gnu.org; Thu, 23 Apr 2015 10:08:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlHnW-0001h7-EC for submit@debbugs.gnu.org; Thu, 23 Apr 2015 10:08:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlHnW-0001h3-Bq for submit@debbugs.gnu.org; Thu, 23 Apr 2015 10:08:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlHnV-0007rD-6T for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 10:08:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlHnR-0001fU-3M for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 10:08:09 -0400 Received: from mail-qg0-f46.google.com ([209.85.192.46]:33722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlHnQ-0001f6-Vu for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2015 10:08:05 -0400 Received: by qgdy78 with SMTP id y78so8524333qgd.0 for ; Thu, 23 Apr 2015 07:08:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:subject; bh=lpjfrIwbu7df7SgIIc7i3D0r90YKXhYfTMqwedUAyfA=; b=A10kjuk+XsWmZoFhA1Hpr4tblgT+XhqQoC1e4f1Ma9WADe7U2mgZxioAo82XGqSMaT lcl+zGAu6qIrgF9820UZCd6YdtcLcBq0M89pgLtokdoumjYW8Ms3WkZ/OofRZgpnhsGK 1pN7YM5/kerJ42Lic/MiwGZDfGgqZBQ3arHDv4Oi/YSXbxezrcFrxR29ITPEDQvt9kZt ww9ye7njTZKD4VMxf90ZfAjfbGbf9KJjKBnFyWzHTBKk/XhMB24k9iJLtPTD3SfWMpoH tAjO1RDa7PB5vOj7SHZ1CMqsQOOyCBKXDcoENfFA8973dv7IKy8Rlz8dg58Ias+9Kad4 9HSw== X-Gm-Message-State: ALoCoQnvqsQLuTOvUqAbP7Oig9WKzRcKVEb2jk53YuKZZCLZhq6LDVjtM3DQNOeH83V9AMLJ1zve X-Received: by 10.140.95.208 with SMTP id i74mr3242701qge.51.1429798084032; Thu, 23 Apr 2015 07:08:04 -0700 (PDT) Received: from home.barzilay.org (c-24-60-254-179.hsd1.ma.comcast.net. [24.60.254.179]) by mx.google.com with ESMTPSA id f9sm606871qhe.34.2015.04.23.07.08.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 07:08:02 -0700 (PDT) From: Eli Barzilay MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21816.64705.641155.937890@home.barzilay.org> Date: Thu, 23 Apr 2015 10:08:01 -0400 To: bug-gnu-emacs@gnu.org Subject: 24.3; Docstring of `next-single-property-change' X-Mailer: VM 8.2.0a under 24.3.1 (x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The documentation for `next-single-property-change' has: Return nil if the property is constant all the way to the end of object. If the value is non-nil, it is a position greater than position, never equal. Both of these are wrong when a bound is given. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 23 11:32:06 2015 Received: (at 20411) by debbugs.gnu.org; 23 Apr 2015 15:32:06 +0000 Received: from localhost ([127.0.0.1]:37893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlJ6j-0007DZ-Oo for submit@debbugs.gnu.org; Thu, 23 Apr 2015 11:32:05 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:47264) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlJ6h-0007D4-5z for 20411@debbugs.gnu.org; Thu, 23 Apr 2015 11:32:04 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NN900300MY0Z100@mtaout25.012.net.il> for 20411@debbugs.gnu.org; Thu, 23 Apr 2015 18:27:39 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NN900J7LMY3KZ80@mtaout25.012.net.il>; Thu, 23 Apr 2015 18:27:39 +0300 (IDT) Date: Thu, 23 Apr 2015 18:31:58 +0300 From: Eli Zaretskii Subject: Re: bug#20411: 24.3; Docstring of `next-single-property-change' In-reply-to: <21816.64705.641155.937890@home.barzilay.org> X-012-Sender: halo1@inter.net.il To: Eli Barzilay Message-id: <83bnie274h.fsf@gnu.org> References: <21816.64705.641155.937890@home.barzilay.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20411 Cc: 20411@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Eli Barzilay > Date: Thu, 23 Apr 2015 10:08:01 -0400 > > The documentation for `next-single-property-change' has: > > Return nil if the property is constant all the way to the end of > object. If the value is non-nil, it is a position greater than > position, never equal. > > Both of these are wrong when a bound is given. Which is why the doc string says, right after the text you cited: If the optional fourth argument LIMIT is non-nil, don't search past position LIMIT; return LIMIT if nothing is found before LIMIT. Isn't this exactly what you were looking for? From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 23 16:30:09 2015 Received: (at 20411) by debbugs.gnu.org; 23 Apr 2015 20:30:09 +0000 Received: from localhost ([127.0.0.1]:38084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlNlA-0005jO-7k for submit@debbugs.gnu.org; Thu, 23 Apr 2015 16:30:09 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:38543) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlNl3-0005iM-Pg for 20411@debbugs.gnu.org; Thu, 23 Apr 2015 16:30:05 -0400 Received: by wiun10 with SMTP id n10so105493499wiu.1 for <20411@debbugs.gnu.org>; Thu, 23 Apr 2015 13:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=FWfE6VBgyuETBVwSAsUsBslAwuq82mAWOMKPVXlk+w0=; b=gBU4w30wiyf7CTxvS1VWAG5jc364pIrphqbTLoixiggWE7FF8ngY+BaSrhxRpg7Zn0 yFJxfaKL1NkktXbJdqcXCXIRuVk0fgeG705/vama8WpCmSUpWfLSRY/Iqzw1j0x4s9bp mO5h/aAuac6gyU3/xD2htBXXol3l/CwkZ8HK/Ed7TQGm7VYX7AUSMQmpNw3jCScOrsYn P6MPUNX5vt9kbU7KfYSJiPYKLDC3D4vTHR2RyhpRsMJuEqoHKq1KflMsC4WaX33oL06d hNDLVj5hFzt3j8eZ8U0+qzB4V8JoqyNjvSBJpHQe+oSeJXrvMdRlxrknCy3lKPlWxUJi he0A== X-Gm-Message-State: ALoCoQmxUgsHVTdJ4jp6npAEuEDju7keWxFDcmzt2CqR/4MrXmcLDxRee67IM4cFRqnnNA29QFmQ MIME-Version: 1.0 X-Received: by 10.194.93.195 with SMTP id cw3mr9224573wjb.150.1429820995992; Thu, 23 Apr 2015 13:29:55 -0700 (PDT) Received: by 10.194.206.101 with HTTP; Thu, 23 Apr 2015 13:29:55 -0700 (PDT) In-Reply-To: <83bnie274h.fsf@gnu.org> References: <21816.64705.641155.937890@home.barzilay.org> <83bnie274h.fsf@gnu.org> Date: Thu, 23 Apr 2015 16:29:55 -0400 Message-ID: Subject: Re: bug#20411: 24.3; Docstring of `next-single-property-change' From: Eli Barzilay To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 20411 Cc: 20411@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Bah. Yes, I completely missed that. Looking at it again, I think that it's that "never equal" that threw me off and write code that assumes that. To make it worse, it reads like an interface very similar to `re-search-forward' up to that paragraph, and that "helped" me miss the last sentence. So I still think that it's confusing -- maybe "except when LIMIT is non-nil" and possibly a warning that this is different from the searching functions? On Thu, Apr 23, 2015 at 11:31 AM, Eli Zaretskii wrote: >> From: Eli Barzilay >> Date: Thu, 23 Apr 2015 10:08:01 -0400 >> >> The documentation for `next-single-property-change' has: >> >> Return nil if the property is constant all the way to the end of >> object. If the value is non-nil, it is a position greater than >> position, never equal. >> >> Both of these are wrong when a bound is given. > > Which is why the doc string says, right after the text you cited: > > If the optional fourth argument LIMIT is non-nil, don't search > past position LIMIT; return LIMIT if nothing is found before LIMIT. > > Isn't this exactly what you were looking for? -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 24 04:28:28 2015 Received: (at 20411-done) by debbugs.gnu.org; 24 Apr 2015 08:28:28 +0000 Received: from localhost ([127.0.0.1]:38306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlYyJ-0007Hl-Vg for submit@debbugs.gnu.org; Fri, 24 Apr 2015 04:28:28 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:52933) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlYyG-0007HU-S0 for 20411-done@debbugs.gnu.org; Fri, 24 Apr 2015 04:28:25 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NNA00300XXDG000@a-mtaout22.012.net.il> for 20411-done@debbugs.gnu.org; Fri, 24 Apr 2015 11:28:18 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNA003EWY75CS70@a-mtaout22.012.net.il>; Fri, 24 Apr 2015 11:28:18 +0300 (IDT) Date: Fri, 24 Apr 2015 11:28:16 +0300 From: Eli Zaretskii Subject: Re: bug#20411: 24.3; Docstring of `next-single-property-change' In-reply-to: X-012-Sender: halo1@inter.net.il To: Eli Barzilay Message-id: <837ft2ylpb.fsf@gnu.org> References: <21816.64705.641155.937890@home.barzilay.org> <83bnie274h.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20411-done Cc: 20411-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Thu, 23 Apr 2015 16:29:55 -0400 > From: Eli Barzilay > Cc: 20411@debbugs.gnu.org > > So I still think that it's confusing -- maybe "except when LIMIT is > non-nil" and possibly a warning that this is different from the > searching functions? Thanks, I clarified the doc strings of this and similar functions in this respect. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 24 12:32:32 2015 Received: (at 20411-done) by debbugs.gnu.org; 24 Apr 2015 16:32:33 +0000 Received: from localhost ([127.0.0.1]:38893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlgWm-00046x-KF for submit@debbugs.gnu.org; Fri, 24 Apr 2015 12:32:32 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:33500) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlgWl-00046g-3b for 20411-done@debbugs.gnu.org; Fri, 24 Apr 2015 12:32:31 -0400 Received: by wgin8 with SMTP id n8so56321601wgi.0 for <20411-done@debbugs.gnu.org>; Fri, 24 Apr 2015 09:32:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jUEb2XRyXc3n7nDG5ahRSRx9KGDopvAPvsudaP/6wOU=; b=eUxB5M79k8HEqnLhKm9r00yThFKxiwLVNsK980OHZqLedcf6pYfJLETel/DBtzQkNo vHNLO0aG3ZnQ8gmJcZVmgyA9fyNsHX4GtONWON7rp80g/D/pdW5RQFQnndOzhLvErBC+ O4iZ4cZaC1Bp7yMXYoW469pwtyRq8PmqCX0ghc9ylY1FrfMtZjtNntzlcpKqx6+bt42R TEtKWrjE15uqL8w1EwUnzGkWSwafy/2bHFm9zGr4kQXWwVbETQQGqCf12/f8z8ZBA6HB 9a2ygYjQwFTtbR8iqtBceFgxtgrjt4RjVMfp48J2Q4JjIPpD609T9qgvzZ4TCxnj8GaF T5tg== X-Gm-Message-State: ALoCoQkp+b+GQSde/JNNzTL1UWsbB9PyLy+PKO8OYhuWu0mZxh5GxQQnVgXmefXMVaGV6nLL/TO2 MIME-Version: 1.0 X-Received: by 10.180.91.76 with SMTP id cc12mr5396849wib.67.1429893145437; Fri, 24 Apr 2015 09:32:25 -0700 (PDT) Received: by 10.194.206.101 with HTTP; Fri, 24 Apr 2015 09:32:25 -0700 (PDT) In-Reply-To: <837ft2ylpb.fsf@gnu.org> References: <21816.64705.641155.937890@home.barzilay.org> <83bnie274h.fsf@gnu.org> <837ft2ylpb.fsf@gnu.org> Date: Fri, 24 Apr 2015 12:32:25 -0400 Message-ID: Subject: Re: bug#20411: 24.3; Docstring of `next-single-property-change' From: Eli Barzilay To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 20411-done Cc: 20411-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) On Fri, Apr 24, 2015 at 4:28 AM, Eli Zaretskii wrote: > > Thanks, I clarified the doc strings of this and similar functions in > this respect. Thanks -- that looks more robust now. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From unknown Thu Aug 14 21:42:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 23 May 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator