aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2026-03-09 04:35:04 +0200
committerDmitry Gutov2026-03-09 04:35:04 +0200
commitcc5ec441181cf3199c9d01a3ff0916c8108267eb (patch)
treeac188698d734c817ea1784691aae535a43607430
parenta3dda7e5252f8fff33a60dc455c4a25ea5904edd (diff)
downloademacs-cc5ec441181cf3199c9d01a3ff0916c8108267eb.tar.gz
emacs-cc5ec441181cf3199c9d01a3ff0916c8108267eb.zip
Fix Non-existent commands in flymake-diagnostics-buffer-mode-map
* lisp/progmodes/flymake.el (flymake-diagnostics-buffer-mode-map): Only bind 'n' and 'p' when 'next-error-this-buffer-no-select' is defined. For releasing on ELPA (bug#79930). Bump the package version to 1.4.4.
-rw-r--r--lisp/progmodes/flymake.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 1b81c4a36e6..888f268429b 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Pavel Kobyakov <pk_at_work@yahoo.com> 5;; Author: Pavel Kobyakov <pk_at_work@yahoo.com>
6;; Maintainer: Spencer Baugh <sbaugh@janestreet.com> 6;; Maintainer: Spencer Baugh <sbaugh@janestreet.com>
7;; Version: 1.4.3 7;; Version: 1.4.4
8;; Keywords: c languages tools 8;; Keywords: c languages tools
9;; Package-Requires: ((emacs "26.1") (eldoc "1.14.0") (project "0.11.1")) 9;; Package-Requires: ((emacs "26.1") (eldoc "1.14.0") (project "0.11.1"))
10 10
@@ -1875,8 +1875,9 @@ TYPE is usually keyword `:error', `:warning' or `:note'."
1875 (define-key map (kbd "SPC") #'flymake-show-diagnostic) 1875 (define-key map (kbd "SPC") #'flymake-show-diagnostic)
1876 (define-key map (kbd "C-o") #'flymake-show-diagnostic) 1876 (define-key map (kbd "C-o") #'flymake-show-diagnostic)
1877 (define-key map (kbd "C-m") #'flymake-goto-diagnostic) 1877 (define-key map (kbd "C-m") #'flymake-goto-diagnostic)
1878 (define-key map (kbd "n") #'next-error-this-buffer-no-select) 1878 (when (fboundp 'next-error-this-buffer-no-select)
1879 (define-key map (kbd "p") #'previous-error-this-buffer-no-select) 1879 (define-key map (kbd "n") #'next-error-this-buffer-no-select)
1880 (define-key map (kbd "p") #'previous-error-this-buffer-no-select))
1880 map)) 1881 map))
1881 1882
1882(defun flymake-show-diagnostic (pos &optional other-window) 1883(defun flymake-show-diagnostic (pos &optional other-window)