mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
* lisp/progmodes/flymake.el (flymake-mode): Beware read-only dirs.
Fixes: debbugs:8954
This commit is contained in:
parent
43956923c0
commit
0221e32392
@ -1,3 +1,7 @@
|
||||
2012-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/flymake.el (flymake-mode): Beware read-only dirs (bug#8954).
|
||||
|
||||
2012-04-10 Sébastien Gross <seb@chezwam.org> (tiny change)
|
||||
|
||||
* progmodes/hideshow.el (hs-hide-all): Don't infloop on comments
|
||||
|
@ -1356,8 +1356,12 @@ if ARG is omitted or nil."
|
||||
(setq flymake-timer
|
||||
(run-at-time nil 1 'flymake-on-timer-event (current-buffer)))
|
||||
|
||||
(when flymake-start-syntax-check-on-find-file
|
||||
(flymake-start-syntax-check)))))
|
||||
(when (and flymake-start-syntax-check-on-find-file
|
||||
;; Since we write temp files in current dir, there's no point
|
||||
;; trying if the directory is read-only (bug#8954).
|
||||
(file-writable-p (file-name-directory buffer-file-name)))
|
||||
(with-demoted-errors
|
||||
(flymake-start-syntax-check))))))
|
||||
|
||||
;; Turning the mode OFF.
|
||||
(t
|
||||
|
Loading…
Reference in New Issue
Block a user