Subject: bug#25085: 25.1; flymake, Java: Space in file path causes CFGERR

From: Luis Gerhorst <[email-masked]>
Date: Thu, 01 Dec 2016 23:19:13 +0100

The following does work with 'emacs -Q'.

1. Open a .java file in a directory that contains a space character.
2. Create a Makfile containing at least the following target (standard for flymake):

check-syntax:
	javac -Xlint $(CHK_SOURCES)

.PHONY: check-syntax

3. M-x flymake-mode in the .java-buffer and a GUI window with a error message pops up.

In GNU Emacs 25.1.1 (x86_64-apple-darwin16.1.0, NS appkit-1504.60 Version 10.12.1 (Build 16B2657))
 of 2016-11-05 built on luiss-imac
Windowing system distributor 'Apple', version 10.3.1504
Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=/usr/local/share/emacs/site-lisp
 --infodir=/usr/local/Cellar/emacs/25.1/share/info/emacs
 --prefix=/usr/local/Cellar/emacs/25.1 --without-x --with-xml2
 --without-dbus --without-gnutls --with-ns --disable-ns-self-contained'

Configured features:
NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS

Important settings:
  value of $LANG: en_DE.UTF-8
  locale-coding-system: utf-8-unix