all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Thorsten NaN <quintfall@googlemail.com>
Cc: 10340@debbugs.gnu.org
Subject: bug#10340: 24.0.91; Error when using LilyPond-command-view (lilypond-mode.el) on Win7
Date: Wed, 21 Dec 2011 07:17:46 -0500	[thread overview]
Message-ID: <E1RdL7C-00087A-SO@fencepost.gnu.org> (raw)
In-Reply-To: <CAPNhk9kE9i5daeCZgThQA_RgOBX1Y=8W5aboqshUsWnEGpB2AA@mail.gmail.com> (message from Thorsten NaN on Wed, 21 Dec 2011 11:27:42 +0100)

> Date: Wed, 21 Dec 2011 11:27:42 +0100
> From: Thorsten NaN <quintfall@googlemail.com>
> 
> I get an error when I use C-c C-s (LilyPond-command-view) on a .ly file
> in a buffer in lilypond-mode (version 2.5.20).
> 
> See my Stackoverflow question for more info:
> http://stackoverflow.com/questions/8566045/emacs-lisp-problems-with-filename-string-on-win7
> 
> Recipe:
> runemacs
> C-x C-f ~/.emacs.d/org/projects/sandbox/2test.ly
> C-c C-l (LilyPond-command-lilypond)
> C-c C-s (LilyPond-command-view)
> 
> Acrobat Readers starts, but gives an error message (... file can't be
> found...). In the *Maven Compile* buffer I find:
> 
> -*- mode: compilation; default-directory:
> "~/.emacs.d/org/projects/sandbox/" -*-
> Compilation started at Wed Dec 21 10:59:52
> AcroRd32 "c:/Users/tj2/.emacs.d/org/projects/sandbox/2test".pdf
> Compilation exited abnormally with code 1 at Wed Dec 21 11:00:03
> 
> The problem is in the way the file-name string is constructed. The second
> double-quote in the string should be at the very end of the string
> (.pdf"), or there should be no double-quotes at all.
> 
> I use openwith.el, but when deactivating openwith-mode, I get exactly
> the same error. The problem seems to be in files.el, but I'm not sure,
> might be lilypond specific too.
> 
> With M-x toggle-debug-on-error on, the debugger is not triggered by this,
> the problem is a badly constructed file-name string given to AcroRd32.


Same problem, same answer: it's a bug in openwith.el.

Don't deactivate it, start a new Emacs session without loading
openwith.el (comment out its invocation in your .emacs), and then try
visiting a .ly file.





      parent reply	other threads:[~2011-12-21 12:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 10:27 bug#10340: 24.0.91; Error when using LilyPond-command-view (lilypond-mode.el) on Win7 Thorsten NaN
2011-12-21 12:05 ` Stefan Monnier
2011-12-21 12:17 ` Eli Zaretskii [this message]

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

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

  git send-email \
    --in-reply-to=E1RdL7C-00087A-SO@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=10340@debbugs.gnu.org \
    --cc=quintfall@googlemail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.