diff options
| author | João Távora | 2020-04-12 15:17:15 +0100 |
|---|---|---|
| committer | João Távora | 2020-04-12 15:17:15 +0100 |
| commit | 01212a762f2977e1f95036ee37ff3e68a28f467b (patch) | |
| tree | f2571b9faa02e66d8008983110120fb7ca36a458 | |
| parent | 36873ef2b268d8d8be1ed8b517c90be2c1dcdc8b (diff) | |
| download | emacs-01212a762f2977e1f95036ee37ff3e68a28f467b.tar.gz emacs-01212a762f2977e1f95036ee37ff3e68a28f467b.zip | |
Do setup Flymake in file-less Elisp buffers
Fixes: bug#40573
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Change
condition for setting flymake-diagnostic-functions.
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 2617a6e4cce..f39ecf9b7bc 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -264,9 +264,9 @@ Blank lines separate paragraphs. Semicolons start comments. | |||
| 264 | (unless | 264 | (unless |
| 265 | (let* ((bfname (buffer-file-name)) | 265 | (let* ((bfname (buffer-file-name)) |
| 266 | (fname (and (stringp bfname) (file-name-nondirectory bfname)))) | 266 | (fname (and (stringp bfname) (file-name-nondirectory bfname)))) |
| 267 | (or (not (stringp fname)) | 267 | (and (stringp fname) |
| 268 | (string-match "\\`\\.#" fname) | 268 | (or (string-match "\\`\\.#" fname) |
| 269 | (string-equal dir-locals-file fname))) | 269 | (string-equal dir-locals-file fname)))) |
| 270 | (add-hook 'flymake-diagnostic-functions #'elisp-flymake-checkdoc nil t) | 270 | (add-hook 'flymake-diagnostic-functions #'elisp-flymake-checkdoc nil t) |
| 271 | (add-hook 'flymake-diagnostic-functions | 271 | (add-hook 'flymake-diagnostic-functions |
| 272 | #'elisp-flymake-byte-compile nil t))) | 272 | #'elisp-flymake-byte-compile nil t))) |