emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Dired does not correctly process file names with ornamented and special Characters in Emacs for Windows
@ 2016-02-28 12:57 cschr
  0 siblings, 0 replies; only message in thread
From: cschr @ 2016-02-28 12:57 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1922 bytes --]

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)

 

 


[-- Attachment #2: Type: text/html, Size: 6149 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-28 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-28 12:57 Dired does not correctly process file names with ornamented and special Characters in Emacs for Windows cschr

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).