emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Dired does not correctly process file names with ornamented and spec


From: cschr
Subject: [O] Dired does not correctly process file names with ornamented and special Characters in Emacs for Windows
Date: Sun, 28 Feb 2016 13:57:06 +0100

Hello

 

Filenames with ornamented or special characters are often not shown correctly in "dired", and cannot be opened. The strange thing is: sometimes it works properly, but I cant figure out under what circumstances - it seems to be completely arbitrary. Would anybody know how to make it always work ?

 

Im on Windows 7-64bit, running a Emacs Version 25.0.50.1 (x86_64-w64-mingw32) of 2015-11-10, which I downloaded from http://sourceforge.net/projects/emacsbinw64/?source=typ_redirect

 

I additionally installed msys2-64bit with mingw64, which is included in my Windows environment variable PATH (...;C:\Programme\msys2-64\mingw64\bin)

 

Based on information I found on the web, I further added the following to my init.el file:

 

;; configure grep acc to http://jpstup.blogspot.ch/2011/02/getting-emacss-rgrep-working-in-windows.html

;; and http://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html#Dired-ls

 

(when (or (eq system-type 'windows-nt) (eq system-type 'msdos))

      (setenv "PATH" (concat "C:\\Programme\\msys2-64\\usr\\bin;C:\\Programme\\msys2-64\\mingw64\\bin;" (getenv "PATH")))

      (setq ;;find-program "C:\\Programme\\msys2-64\\usr\\bin\\find.exe"

            ;;grep-program "C:\\Programme\\msys2-64\\usr\\bin\\grep.exe"

            ls-lisp-use-insert-directory-program t      ;; use external ls

            insert-directory-program "c:\\Programme\\msys2-64\\usr\\bin\\ls.exe" ;; ls program name

                    diff-command "C:\\Programme\\msys2-64\\mingw64\\bin\\diff.exe"

      )

)

;; Prevent issues with the Windows null device (NUL)

;; when using cygwin find with rgrep.

(defadvice grep-compute-defaults (around grep-compute-defaults-advice-null-device)

"Use cygwin's /dev/null as the null-device."

(let ((null-device "/dev/null"))

ad-do-it))

(ad-activate 'grep-compute-defaults)

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]