emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posn-at-point get strange info when flycheck enable and (setq trunca


From: Eli Zaretskii
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

> From: "Feng Shu" <address@hidden>
> Cc: address@hidden,  address@hidden
> 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:  (#<window 3 on test.el> 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: (#<window 3 on test.el> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]