From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help,gmane.emacs.orgmode Subject: Re: flycheck orgmode on windows invalid output file name Date: Sun, 5 Jun 2016 21:41:18 +0200 Message-ID: References: <86shwrkj6u.fsf@gmail.com> <83ziqzu07o.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1465155756 2393 80.91.229.3 (5 Jun 2016 19:42:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2016 19:42:36 +0000 (UTC) Cc: help-gnu-emacs , orgmode To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 05 21:42:30 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b9dwL-00064A-77 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 21:42:29 +0200 Original-Received: from localhost ([::1]:38390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9dwK-0004bH-Gb for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 15:42:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9dvk-0004b6-T2 for help-gnu-emacs@gnu.org; Sun, 05 Jun 2016 15:41:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9dvi-0006x9-Vh for help-gnu-emacs@gnu.org; Sun, 05 Jun 2016 15:41:51 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:38905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9dvh-0006wL-52; Sun, 05 Jun 2016 15:41:49 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id m124so47509048wme.1; Sun, 05 Jun 2016 12:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=v9aKMS96Aju1Shhl0pPQwoM6nD/0SE5e8ycb7pTEEtE=; b=Zs55XeJuuYTeNcYTLoCZ18eucZKcWg5jLB7zmFK+MYdCgk15hNgPshJuN1JmYlsVJ1 hDa+bwCfdEseZxKnkbPRvtr60wqXvjITnfu+9h39+xFwZfQ2VMN9h6+Zj+VS77scCfoi kEJ7wVtSZwvb51QrKkpHkI4+1BkKegUQfqgwMpnejqdD00p2JjluVJLvT1gizSF3cm6N bz84CFDasmma1jAw56+m3tKQnvQn9iPh/Ni0ur4J9KkcP0lTYcJNKUgIQnycHP9pNbrQ y7n/oHljUA4Yt7WdOiC5WvdTh7ZlKsYIOK3ljrjlEwAUhEorHkg0Es2ixrj91Fj9BaZq HghA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=v9aKMS96Aju1Shhl0pPQwoM6nD/0SE5e8ycb7pTEEtE=; b=fkGYp5gVnHPYagTuYRVyj/tdtKJp8Tu/eGTPZSffFvU6W0cY8IqOblXIyTxqh/G1+P 98dChT5J10jLue2P6D4CYG2ZjsKigLi3R4zugRXqCoK0D9+yRsxXfdQ5YhL36/JOhdz+ E+7Wwigz6fSYJZERsa+pfX0tztKUzFkEA2qhOUfFIcwyEjxofg6lA8U470GAv/DLQx4q q25Y7MFnFjWObUDJwNF31bpfsFN/g5oMZ+XFdDj8ckxH0apABmavakc5q1ox1ZQ2Zh88 EP0+d95DY31kR9e+ySd0nn9xFTRDgXM3+1nf0tDm0TPcmbzt/eVBSo1TuZSl2ocpdrc6 nHWg== X-Gm-Message-State: ALyK8tKgB1GEDwaz0XZCr5OKU0+pah/xpXBzUgBc1T/bB2BSO+r5GjK76gfFEOZv2uu9q/fiRQaqj3Xue2d36g== X-Received: by 10.194.81.8 with SMTP id v8mr8068838wjx.155.1465155708246; Sun, 05 Jun 2016 12:41:48 -0700 (PDT) Original-Received: by 10.194.110.104 with HTTP; Sun, 5 Jun 2016 12:41:18 -0700 (PDT) In-Reply-To: <83ziqzu07o.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110317 gmane.emacs.orgmode:107582 Archived-At: On 5 June 2016 at 17:25, Eli Zaretskii wrote: >> From: Guido Van Hoecke >> Date: Sun, 05 Jun 2016 12:45:45 +0200 >> >> Error while checking syntax automatically: (file-error "Opening output file" "Invalid argument" "c:/Users/guivh/emacs-guivho/.flycheck_emacs-guivho.org[*Org Src emacs-guivho.org[ emacs-lisp ]*]") >> >> I checked the windows only issues but did not see something similar. >> >> Apparently flycheck has a problem with the fact that the buffer does not >> correspond to a physical file. > > No, I think the problem is that flycheck assumes it can create a file > whose name includes '*', which is false on Windows. > >> I hope there is a known or suggested workaround... > > If I'm right, the only solution is to modify flycheck so that it runs > the file name through convert-standard-filenam For testing i went to change flycheck-temp-file-system in flycheck.el so that it reads (setq tempfile (convert-standard-filename (expand-file-name (file-name-nondirectory filename) directory))) rather than the original (setq tempfile (expand-file-name (file-name-nondirectory filename) directory)) I than edebugged the flycheck-temp-file-system with the "c:/Users/guivh/emacs-guivho/.flycheck_emacs-guivho.org[*Org Src emacs-guivho.org[ emacs-lisp ]*]") filename, and it nicely produced a tempfile where the '*'s are replaced by '!'s. Still, when editing elisp blocks from my elisp.org files, I keep hitting the '*' problem... Anyway, I do think that your suggestion is to the point, so I am going to suggest it to the flycheck people. It certainly can't heart to call this ectra function in non-windows ebvironments, as it doesn't do anything there. Thanks Eli, Guido >