Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs lisp - problems with filename-string on win7
    text
    copied!<p>On Win7 with Emacs24 I encounter problems when Emacs programs want to open (pdf) files. The problems remain when I activate or deactivate openwith-mode. I either get a 'wrong-type-argument arrayp nil' message inside Emacs or Acrobat Reader is started but gives an error message 'can't open/find that file'.</p> <p>I tried to debug it and always ended up in files.el. It seems that the name of the pdf-file to be opened is constructed by concatenating the absolute filename and the file extension .pdf. However, the filename-string given to AcroRd32 appears to look like this:</p> <pre><code>AcroRd32 "c:\\absolute\file\name".pdf </code></pre> <p>This doesn't work on the command line either. I have to change it (manually) to</p> <pre><code>AcroRd32 "c:\\absolute\file\name.pdf" </code></pre> <p>or to</p> <pre><code>AcroRd32 c:\\absolute\file\name.pdf </code></pre> <p>to make it work. </p> <p>I don't know if this is considered a bug, or if it is a problem only for me. I tried to change the elisp code to something like</p> <pre><code>(format "%s" (concat absolute-filename file-extension)) </code></pre> <p>to get rid of those double-quotes, but to no avail. And anyway, I don't feel comfortable to mess around in a basic library like files.el, and its really hard to edebug that library since its invoked permanently. </p> <p>Maybe somebody encountered the same problem and found a solution?</p> <p>[I use GNU Emacs 24.0.91.1 (i386-mingw-nt6.1.7601) of 2011-11-22 on MARVIN.] </p> <p>PS 1 Test Case 1</p> <p>I get the following error message when I do M-x toggle-debug-on-error and then try to open a pdf file in dired: </p> <pre><code>Debugger entered--Lisp error: (wrong-type-argument arrayp nil) file-truename(nil) find-file-noselect-1(#&lt;buffer test.pdf&lt;4&gt;&gt; "~/.emacs.d/org/projects/sandbox/test.pdf" nil nil "~/.emacs.d/org/projects/sandbox/test.pdf" ((2816 7 . 27468) (16087 . 35227))) find-file-noselect("c:/Users/tj2/.emacs.d/org/projects/sandbox/test.pdf" nil nil nil) find-file("c:/Users/tj2/.emacs.d/org/projects/sandbox/test.pdf") dired-find-file() call-interactively(dired-find-file nil nil) </code></pre> <p>and the following message:</p> <pre><code>Openwith mode enabled find-file-noselect-1: Wrong type argument: arrayp, nil </code></pre> <p>Does it matter that my .emacs.d is really a windows symlink (mklink) to a Dropboxfolder?</p> <p>PS 2 Test Case 2</p> <p>here is the message I get in the maven-compile buffer, when doing C-c C-s (LilyPond-command-view) in a ,ly buffer:</p> <pre><code>-*- mode: compilation; default-directory: "~/.emacs.d/org/projects/sandbox/" -*- Compilation started at Tue Dec 20 09:16:28 AcroRd32 "c:/Users/tj2/.emacs.d/org/projects/sandbox/2test".pdf Compilation exited abnormally with code 1 at Tue Dec 20 09:16:35 </code></pre> <p>In the message buffer I find</p> <pre><code>Compilation exited abnormally with code 1 Error during redisplay: (invalid-regexp "Unmatched ( or \\(") </code></pre> <p>This error doesn't trigger the debugger, although I did M-x toggle-debug-on-error. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload