[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-27 01212a7: Do setup Flymake in file-less Elisp buffers
From: |
João Távora |
Subject: |
emacs-27 01212a7: Do setup Flymake in file-less Elisp buffers |
Date: |
Sun, 12 Apr 2020 10:21:12 -0400 (EDT) |
branch: emacs-27
commit 01212a762f2977e1f95036ee37ff3e68a28f467b
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>
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.
---
lisp/progmodes/elisp-mode.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 2617a6e..f39ecf9 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -264,9 +264,9 @@ Blank lines separate paragraphs. Semicolons start comments.
(unless
(let* ((bfname (buffer-file-name))
(fname (and (stringp bfname) (file-name-nondirectory bfname))))
- (or (not (stringp fname))
- (string-match "\\`\\.#" fname)
- (string-equal dir-locals-file fname)))
+ (and (stringp fname)
+ (or (string-match "\\`\\.#" fname)
+ (string-equal dir-locals-file fname))))
(add-hook 'flymake-diagnostic-functions #'elisp-flymake-checkdoc nil t)
(add-hook 'flymake-diagnostic-functions
#'elisp-flymake-byte-compile nil t)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-27 01212a7: Do setup Flymake in file-less Elisp buffers,
João Távora <=