From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#21271: 25.0.5; `field' text-property screws with `line-end-position' Date: Sat, 15 Aug 2015 22:59:03 +0100 Message-ID: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1439676021 25466 80.91.229.3 (15 Aug 2015 22:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Aug 2015 22:00:21 +0000 (UTC) To: 21271@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 16 00:00:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZQjUo-00073C-WF for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Aug 2015 00:00:11 +0200 Original-Received: from localhost ([::1]:50895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQjUo-0000i3-7Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Aug 2015 18:00:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQjUk-0000fr-Qv for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2015 18:00:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQjUj-00009G-Vm for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2015 18:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQjUj-00008v-T7 for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2015 18:00:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZQjUj-0004rl-ER for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2015 18:00:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Aug 2015 22:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21271 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143967595118604 (code B ref -1); Sat, 15 Aug 2015 22:00:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Aug 2015 21:59:11 +0000 Original-Received: from localhost ([127.0.0.1]:56937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZQjTr-0004q0-0r for submit@debbugs.gnu.org; Sat, 15 Aug 2015 17:59:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33164) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZQjTo-0004pr-JE for submit@debbugs.gnu.org; Sat, 15 Aug 2015 17:59:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQjTn-0008A5-MS for submit@debbugs.gnu.org; Sat, 15 Aug 2015 17:59:08 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQjTn-0008A1-J5 for submit@debbugs.gnu.org; Sat, 15 Aug 2015 17:59:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQjTm-0000Wa-Pj for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2015 17:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQjTl-00089n-Uj for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2015 17:59:06 -0400 Original-Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:36681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQjTl-00089c-JS for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2015 17:59:05 -0400 Original-Received: by lagz9 with SMTP id z9so60397369lag.3 for ; Sat, 15 Aug 2015 14:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:date:message-id:subject:from:to :content-type; bh=PO9V8l5yZsgCKAmCtMb460JMKNBIVqSSsNhL2bwA1Xw=; b=agUVvxZp0rsBcbGPMMSODbHC6s6f3DNMHGD2DZazpDJFa9JfmrEZEtG87KKpPoLO4n 7z0z1J9T0rVapzH7nacjpiJWg8jbUTGXvmQ4ADGs+gZXom/XyMFQr0GmVRasyfUqjGsP 9QX+qpvDKqpw5zER3YV90oh0BzpDPJY03T+wdarLyO9p7rbZcZncec8+MtGlM9JrJopY Vb63ydqln7zgjFHYD8M6+IEYvx/OdrJ2fO0OpldEuGFM0rD1qas+rQDaECBMGQT6Renj ipwVfmrMT1BK0ot35wfXDpzDeVkI0BHeCb9iBymtAbknY9rOVi3glWIe8ybN8OyAX6ds 97Jw== X-Received: by 10.152.180.161 with SMTP id dp1mr31354669lac.21.1439675943590; Sat, 15 Aug 2015 14:59:03 -0700 (PDT) Original-Received: by 10.25.134.139 with HTTP; Sat, 15 Aug 2015 14:59:03 -0700 (PDT) X-Google-Sender-Auth: 5Cp4Azg8JMisNBj9f88k3N6jcwM X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105510 Archived-At: 1. In an empty buffer, hit RET and type some text on the second line. 2. Place point at the start of the second line. 3. Run (line-end-position) and verify that the value is correct (something greater than 3) 4. Run (add-text-properties (1- (point)) (point) '(field 1)) 5. Run (line-end-position) and you'll get 2 (which is the poistion of the end of the field).