[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/objed fc93d49 134/166: Improve error object when flymak
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/objed fc93d49 134/166: Improve error object when flymake is used |
Date: |
Sun, 29 Dec 2019 08:21:15 -0500 (EST) |
branch: externals/objed
commit fc93d4950cb82c7d0b5639f7ba7d49afd9dda73e
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Improve error object when flymake is used
---
objed-objects.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/objed-objects.el b/objed-objects.el
index 5200488..e9ddb4f 100644
--- a/objed-objects.el
+++ b/objed-objects.el
@@ -2578,6 +2578,7 @@ non-nil the indentation block can contain empty lines."
(defvar flycheck-mode)
(defvar flymake-mode)
+(defvar flymake-wrap-around)
(declare-function flycheck-overlays-at "ext:flycheck")
(declare-function flycheck-next-error "ext:flycheck")
(declare-function flycheck-previous-error "ext:flycheck")
@@ -2594,6 +2595,10 @@ non-nil the indentation block can contain empty lines."
(flymake-mode
(let ((ov (car (flymake--overlays :beg (point)))))
(when ov
+ (run-at-time 0 nil
+ #'message
+ (funcall (overlay-get ov 'help-echo)
+ (selected-window) ov (point)))
(cons (overlay-start ov)
(overlay-end ov)))))))
@@ -2602,14 +2607,16 @@ non-nil the indentation block can contain empty lines."
(cond ((bound-and-true-p flycheck-mode)
(flycheck-next-error))
(flymake-mode
- (flymake-goto-next-error))))
+ (let ((flymake-wrap-around nil))
+ (flymake-goto-next-error 1)))))
(defun objed--previous-error ()
"Goto previous linter error."
- (cond (flycheck-mode
+ (cond ((bound-and-true-p flycheck-mode)
(flycheck-previous-error))
(flymake-mode
- (flymake-goto-prev-error))))
+ (let ((flymake-wrap-around nil))
+ (flymake-goto-prev-error 1)))))
(objed-define-object nil error
- [elpa] externals/objed b3e44ca 047/166: Change init policy, (continued)
- [elpa] externals/objed b3e44ca 047/166: Change init policy, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 244acd2 073/166: Allow passing object to objed-init again, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 43befe6 050/166: Stop weird behavior of line and char object at eob, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 7b86d64 056/166: Merge pull request #45 from eabarbosa/master, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 69dcc5b 066/166: Use first regex group of regex object to delemit inner part, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 210d3db 077/166: Improve sexp object for non symetric commands, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed fa06574 075/166: Don't init when other modes have set overriding-terminal-local-map, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 752d11e 080/166: Change binding for sexp object, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 50f79c8 091/166: Include textblock for block expansion when at comment, too, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed dcea2bc 124/166: Add window resize commands, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed fc93d49 134/166: Improve error object when flymake is used,
Clemens Radermacher <=
- [elpa] externals/objed d111035 140/166: Require mc if necessary, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 6a2663e 138/166: Don't bind C-o by default, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed dc23da4 153/166: Add objed-exit-hook #57, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed faa9fb0 158/166: Allow defining objects without ending regexp (#58), Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 2a25ff2 081/166: Make toggle smarter for sexp objects, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 2f50485 102/166: Add css defun object, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed d3ab36c 108/166: Add kill-this-buffer to command alist, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed be4c3cd 114/166: Make indenting defuns repeatable, too, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 4a22002 120/166: Improve reformat command, Clemens Radermacher, 2019/12/29
- [elpa] externals/objed 9267f38 125/166: Improve open line command, Clemens Radermacher, 2019/12/29