emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Guido Van Hoecke <guivho@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>, orgmode <emacs-orgmode@gnu.org>
Subject: Re: flycheck orgmode on windows invalid output file name
Date: Sun, 5 Jun 2016 21:41:18 +0200	[thread overview]
Message-ID: <CAEySM9EmUY2ZcX3RxP60HHYHmCo59cDmfN4nuSqeQUYHNqmyHA@mail.gmail.com> (raw)
In-Reply-To: <83ziqzu07o.fsf@gnu.org>

On 5 June 2016 at 17:25, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: Guido Van Hoecke <guivho@gmail.com>
>> 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



>

  reply	other threads:[~2016-06-05 19:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05 10:45 flycheck orgmode on windows invalid output file name Guido Van Hoecke
2016-06-05 15:25 ` Eli Zaretskii
2016-06-05 19:41   ` Guido Van Hoecke [this message]
2016-06-06  2:29     ` Eli Zaretskii
2016-06-06  6:43       ` Guido Van Hoecke
2016-06-06 14:51         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEySM9EmUY2ZcX3RxP60HHYHmCo59cDmfN4nuSqeQUYHNqmyHA@mail.gmail.com \
    --to=guivho@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).