diff options
| author | João Távora | 2017-09-28 12:24:44 +0100 |
|---|---|---|
| committer | João Távora | 2017-10-03 14:18:55 +0100 |
| commit | cd39edb5d641f82accad21cd85ff26b3995f1c85 (patch) | |
| tree | 4041323fd490ca51b3a49ef0174484a4456cc5c6 | |
| parent | 5235eaf7816167143b5fef66e5c1acce569c4f61 (diff) | |
| download | emacs-cd39edb5d641f82accad21cd85ff26b3995f1c85.tar.gz emacs-cd39edb5d641f82accad21cd85ff26b3995f1c85.zip | |
Remove old flymake-display-err-menu-for-current-line, it's useless
See https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00949.html
* lisp/progmodes/flymake-ui.el
(flymake-popup-current-error-menu): Remove.
| -rw-r--r-- | lisp/progmodes/flymake.el | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 0071ba93eac..20c94d20d8b 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el | |||
| @@ -467,38 +467,6 @@ associated `flymake-category' return DEFAULT." | |||
| 467 | (flymake-log :debug "starting syntax check after no changes for some time") | 467 | (flymake-log :debug "starting syntax check after no changes for some time") |
| 468 | (flymake-start))))) | 468 | (flymake-start))))) |
| 469 | 469 | ||
| 470 | (define-obsolete-function-alias 'flymake-display-err-menu-for-current-line | ||
| 471 | 'flymake-popup-current-error-menu "24.4") | ||
| 472 | |||
| 473 | (defun flymake-popup-current-error-menu (&optional event) | ||
| 474 | "Pop up a menu with errors/warnings for current line." | ||
| 475 | (interactive (list last-nonmenu-event)) | ||
| 476 | (let* ((diag-overlays (or | ||
| 477 | (flymake--overlays :filter 'flymake--diagnostic | ||
| 478 | :beg (line-beginning-position) | ||
| 479 | :end (line-end-position)) | ||
| 480 | (user-error "No flymake problem for current line"))) | ||
| 481 | (menu (mapcar (lambda (ov) | ||
| 482 | (let ((diag (overlay-get ov 'flymake--diagnostic))) | ||
| 483 | (cons (flymake--diag-text diag) | ||
| 484 | ov))) | ||
| 485 | diag-overlays)) | ||
| 486 | (event (if (mouse-event-p event) | ||
| 487 | event | ||
| 488 | (list 'mouse-1 (posn-at-point)))) | ||
| 489 | (diagnostics (mapcar (lambda (ov) (overlay-get ov 'flymake--diagnostic)) | ||
| 490 | diag-overlays)) | ||
| 491 | (title (format "Line %d: %d diagnostics(s)" | ||
| 492 | (line-number-at-pos) | ||
| 493 | (length diagnostics))) | ||
| 494 | (choice (x-popup-menu event (list title (cons "" menu))))) | ||
| 495 | (flymake-log :debug "choice=%s" choice) | ||
| 496 | ;; FIXME: What is the point of going to the problem locus if we're | ||
| 497 | ;; certainly already there? | ||
| 498 | ;; | ||
| 499 | (when choice (goto-char (overlay-start choice))))) | ||
| 500 | |||
| 501 | |||
| 502 | ;; Nothing in flymake uses this at all any more, so this is just for | 470 | ;; Nothing in flymake uses this at all any more, so this is just for |
| 503 | ;; third-party compatibility. | 471 | ;; third-party compatibility. |
| 504 | (define-obsolete-function-alias 'flymake-display-warning 'message-box "26.1") | 472 | (define-obsolete-function-alias 'flymake-display-warning 'message-box "26.1") |