From mboxrd@z Thu Jan 1 00:00:00 1970 From: "cschr" Subject: 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 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0039_01D1722F.E9B249A0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa0wv-0004y5-Cl for emacs-orgmode@gnu.org; Sun, 28 Feb 2016 07:59:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aa0ws-00010a-2S for emacs-orgmode@gnu.org; Sun, 28 Feb 2016 07:59:49 -0500 Received: from mout1.freenet.de ([2001:748:100:40::2:3]:41653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aa0wr-000103-PV for emacs-orgmode@gnu.org; Sun, 28 Feb 2016 07:59:46 -0500 Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout1.freenet.de with esmtpa (ID cschr@freenet.de) (port 25) (Exim 4.85 #1) id 1aa0wj-00050p-0a for emacs-orgmode@gnu.org; Sun, 28 Feb 2016 13:59:37 +0100 Received: from localhost ([::1]:38824 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID cschr@freenet.de) (Exim 4.85 #1) id 1aa0wi-0004rK-Sr for emacs-orgmode@gnu.org; Sun, 28 Feb 2016 13:59:36 +0100 Received: from mx3.freenet.de ([195.4.92.13]:44397) by mjail0.freenet.de with esmtpa (ID cschr@freenet.de) (Exim 4.85 #1) id 1aa0uF-0002Jd-Iz for emacs-orgmode@gnu.org; Sun, 28 Feb 2016 13:57:03 +0100 Received: from adsl-84-226-247-201.adslplus.ch ([84.226.247.201]:54117 helo=ChrisPC) by mx3.freenet.de with esmtpsa (ID cschr@freenet.de) (TLSv1:AES256-SHA:256) (port 587) (Exim 4.85 #1) id 1aa0uF-0008CD-Bb for emacs-orgmode@gnu.org; Sun, 28 Feb 2016 13:57:03 +0100 Content-Language: de-ch List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This is a multipart message in MIME format. ------=_NextPart_000_0039_01D1722F.E9B249A0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello =20 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 ? =20 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=3Dtyp_redirect=20 =20 I additionally installed msys2-64bit with mingw64, which is included in = my Windows environment variable PATH = (...;C:\Programme\msys2-64\mingw64\bin) =20 Based on information I found on the web, I further added the following = to my init.el file: =20 ;; configure grep acc to = http://jpstup.blogspot.ch/2011/02/getting-emacss-rgrep-working-in-windows= .html=20 ;; and = http://www.gnu.org/software/emacs/manual/html_mono/efaq-w32.html#Dired-ls= =20 =20 (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) =20 =20 ------=_NextPart_000_0039_01D1722F.E9B249A0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

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=3Dtyp_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-wor= king-in-windows.html

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

 

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

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

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

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

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ls-lisp-use-insert-directory-program = t=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; use external = ls

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

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

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = )

)

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

 

 

------=_NextPart_000_0039_01D1722F.E9B249A0--