emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "cschr" <cschr@freenet.de>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAPTQUCgk2KtFltqvR2fA1zrCgAAAEAAAAOPlOthL8uZJhHDqmeiP+2cBAAAAAA==@freenet.de> (raw)

[-- 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 --]

                 reply	other threads:[~2016-02-28 12:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=''\!'&'\!'AAAAAAAAAAAYAAAAAAAAAPTQUCgk2KtFltqvR2fA1zrCgAAAEAAAAOPlOthL8uZJhHDqmeiP+2cBAAAAAA==@freenet.de' \
    --to=cschr@freenet.de \
    --cc=emacs-orgmode@gnu.org \
    /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 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).