From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: posn-at-point get strange info when flycheck enable and (setq truncate-lines t) Date: Fri, 19 Jan 2018 16:21:21 +0200 Message-ID: <83po66szdq.fsf@gnu.org> References: <3d6f0768.2449.16101dff948.Coremail.tumashu@163.com> <87efmowz84.fsf@linux-m68k.org> <873734buz3.fsf@163.com> <83efmowk12.fsf@gnu.org> <87o9ls84ug.fsf@163.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1516372044 15650 195.159.176.226 (19 Jan 2018 14:27:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2018 14:27:24 +0000 (UTC) Cc: schwab@linux-m68k.org, emacs-devel@gnu.org To: "Feng Shu" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 19 15:27:19 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecXdG-0002tR-U6 for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2018 15:27:03 +0100 Original-Received: from localhost ([::1]:52406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecXfG-0006IK-W9 for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2018 09:29:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecXYN-0000iZ-Jh for emacs-devel@gnu.org; Fri, 19 Jan 2018 09:22:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecXYK-0000xp-Db for emacs-devel@gnu.org; Fri, 19 Jan 2018 09:21:59 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecXYK-0000xl-AG; Fri, 19 Jan 2018 09:21:56 -0500 Original-Received: from [176.228.60.248] (port=2215 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ecXYI-0006Fe-Bg; Fri, 19 Jan 2018 09:21:56 -0500 In-reply-to: <87o9ls84ug.fsf@163.com> (tumashu@163.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222085 Archived-At: > From: "Feng Shu" > Cc: schwab@linux-m68k.org, emacs-devel@gnu.org > Date: Thu, 18 Jan 2018 07:04:23 +0800 > > #+BEGIN_EXAMPLE > test test > > ;; Eval the below code, and move point to (point)=5, then run command: `mytest' > ;; you will get like: (# 5 (48 . 23) 0 (! . 0) 5 (4 . 0) nil (0 . 23) (12 . 28)) > ;; (remove-overlays 5 10) > ;; move point to (point)=5, run `mytest' > ;; you will get like: (# 5 (48 . 0) 0 nil 5 (4 . 0) nil (0 . 0) (12 . 28)) > > (progn > (require 'flycheck) > (setq truncate-lines t) > (setq overlay (make-overlay 5 10)) > (setf (overlay-get overlay 'before-string) > (flycheck-error-level-make-fringe-icon > 'error flycheck-indication-mode)) > (defun mytest () > (interactive) > (princ (posn-at-point)))) > #+END_EXAMPLE Thanks. I decided that this is a bug, so I fixed this on the master branch.