aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2001-10-29 18:49:16 +0000
committerSam Steingold2001-10-29 18:49:16 +0000
commitbcaf1c362cf783633544fab536d7ded2ba6a4fd3 (patch)
tree5934f153fafe1e7703bdda1752c6d57e8bb235f1
parent95125512c27626bb3a881ab692a382dbea26d5a5 (diff)
downloademacs-bcaf1c362cf783633544fab536d7ded2ba6a4fd3.tar.gz
emacs-bcaf1c362cf783633544fab536d7ded2ba6a4fd3.zip
(convert-standard-filename): Handle cygwin-specific pathnames.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/w32-fns.el24
2 files changed, 20 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5c9b4ac6e98..397da093117 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,10 +1,15 @@
12001-10-29 Sam Steingold <sds@gnu.org>
2
3 * w32-fns.el (convert-standard-filename): Handle cygwin-specific
4 "/cygdrive/LETTER/" pathnames.
5
12001-10-29 Eli Zaretskii <eliz@is.elta.co.il> 62001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2 7
3 * faces.el (invert-face): Check for 'unspecified, not for nil, 8 * faces.el (invert-face): Check for 'unspecified, not for nil,
4 when testing whether face colors are not specified. From 9 when testing whether face colors are not specified. From
5 David.Kastrup@t-online.de (David Kastrup). 10 David.Kastrup@t-online.de (David Kastrup).
6 (read-face-name): Doc fix. 11 (read-face-name): Doc fix.
7 (make-face-bold, make-face-unbold, make-face-italic) 12 (make-face-bold, make-face-unbold, make-face-italic)
8 (make-face-unitalic, make-face-bold-italic, invert-face): Remove 13 (make-face-unitalic, make-face-bold-italic, invert-face): Remove
9 trailing blank from the prompt passed to read-face-name. 14 trailing blank from the prompt passed to read-face-name.
10 15
diff --git a/lisp/w32-fns.el b/lisp/w32-fns.el
index 256aecc42d7..7dd98e49e30 100644
--- a/lisp/w32-fns.el
+++ b/lisp/w32-fns.el
@@ -43,7 +43,7 @@
43;; Ignore case on file-name completion 43;; Ignore case on file-name completion
44(setq completion-ignore-case t) 44(setq completion-ignore-case t)
45 45
46;; Map all versions of a filename (8.3, longname, mixed case) to the 46;; Map all versions of a filename (8.3, longname, mixed case) to the
47;; same buffer. 47;; same buffer.
48(setq find-file-visit-truename t) 48(setq find-file-visit-truename t)
49 49
@@ -72,7 +72,7 @@ numbers, and the build number."
72 72
73(defun w32-system-shell-p (shell-name) 73(defun w32-system-shell-p (shell-name)
74 (and shell-name 74 (and shell-name
75 (member (downcase (file-name-nondirectory shell-name)) 75 (member (downcase (file-name-nondirectory shell-name))
76 w32-system-shells))) 76 w32-system-shells)))
77 77
78(defun w32-shell-dos-semantics () 78(defun w32-shell-dos-semantics ()
@@ -98,15 +98,15 @@ has configured the shell with inappropriate settings."
98 (erase-buffer) 98 (erase-buffer)
99 (if (w32-system-shell-p (getenv "ESHELL")) 99 (if (w32-system-shell-p (getenv "ESHELL"))
100 (insert (format "Warning! The ESHELL environment variable uses %s. 100 (insert (format "Warning! The ESHELL environment variable uses %s.
101You probably want to change it so that it uses cmdproxy.exe instead.\n\n" 101You probably want to change it so that it uses cmdproxy.exe instead.\n\n"
102 (getenv "ESHELL")))) 102 (getenv "ESHELL"))))
103 (if (w32-system-shell-p (getenv "SHELL")) 103 (if (w32-system-shell-p (getenv "SHELL"))
104 (insert (format "Warning! The SHELL environment variable uses %s. 104 (insert (format "Warning! The SHELL environment variable uses %s.
105You probably want to change it so that it uses cmdproxy.exe instead.\n\n" 105You probably want to change it so that it uses cmdproxy.exe instead.\n\n"
106 (getenv "SHELL")))) 106 (getenv "SHELL"))))
107 (if (w32-system-shell-p shell-file-name) 107 (if (w32-system-shell-p shell-file-name)
108 (insert (format "Warning! shell-file-name uses %s. 108 (insert (format "Warning! shell-file-name uses %s.
109You probably want to change it so that it uses cmdproxy.exe instead.\n\n" 109You probably want to change it so that it uses cmdproxy.exe instead.\n\n"
110 shell-file-name))) 110 shell-file-name)))
111 (if (and (boundp 'explicit-shell-file-name) 111 (if (and (boundp 'explicit-shell-file-name)
112 (w32-system-shell-p explicit-shell-file-name)) 112 (w32-system-shell-p explicit-shell-file-name))
@@ -212,7 +212,7 @@ You should set this to t when using a non-system shell.\n\n"))))
212 (dir1 (expand-file-name "../info/" instdir)) 212 (dir1 (expand-file-name "../info/" instdir))
213 (dir2 (expand-file-name "../../../info/" instdir))) 213 (dir2 (expand-file-name "../../../info/" instdir)))
214 (if (file-exists-p dir1) 214 (if (file-exists-p dir1)
215 (setq Info-default-directory-list 215 (setq Info-default-directory-list
216 (append Info-default-directory-list (list dir1))) 216 (append Info-default-directory-list (list dir1)))
217 (if (file-exists-p dir2) 217 (if (file-exists-p dir2)
218 (setq Info-default-directory-list 218 (setq Info-default-directory-list
@@ -230,9 +230,9 @@ You should set this to t when using a non-system shell.\n\n"))))
230;;; source-directory, set it to something that is a reasonable approximation 230;;; source-directory, set it to something that is a reasonable approximation
231;;; on the user's machine. 231;;; on the user's machine.
232 232
233;(add-hook 'before-init-hook 233;(add-hook 'before-init-hook
234; '(lambda () 234; '(lambda ()
235; (setq source-directory (file-name-as-directory 235; (setq source-directory (file-name-as-directory
236; (expand-file-name ".." exec-directory))))) 236; (expand-file-name ".." exec-directory)))))
237 237
238;; Avoid creating auto-save file names containing invalid characters. 238;; Avoid creating auto-save file names containing invalid characters.
@@ -255,7 +255,11 @@ See also `auto-save-file-name-p'."
255This function's standard definition is trivial; it just returns the argument. 255This function's standard definition is trivial; it just returns the argument.
256However, on some systems, the function is redefined 256However, on some systems, the function is redefined
257with a definition that really does change some file names." 257with a definition that really does change some file names."
258 (let ((name (copy-sequence filename)) 258 (let ((name
259 (save-match-data
260 (if (string-match "\\`/cygdrive/\\([a-zA-Z]\\)/" filename)
261 (replace-match "\\1:/" t nil filename)
262 (copy-sequence filename))))
259 (start 0)) 263 (start 0))
260 ;; leave ':' if part of drive specifier 264 ;; leave ':' if part of drive specifier
261 (if (and (> (length name) 1) 265 (if (and (> (length name) 1)
@@ -438,7 +442,7 @@ clipboard as well. Optional PUSH is ignored on Windows."
438 (if x-select-enable-clipboard 442 (if x-select-enable-clipboard
439 (w32-set-clipboard-data text)) 443 (w32-set-clipboard-data text))
440 (setq x-last-selected-text text)) 444 (setq x-last-selected-text text))
441 445
442(defun x-get-selection-value () 446(defun x-get-selection-value ()
443 "Return the value of the current selection. 447 "Return the value of the current selection.
444Consult the selection, then the cut buffer. Treat empty strings as if 448Consult the selection, then the cut buffer. Treat empty strings as if