aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Choi2001-09-04 03:43:23 +0000
committerAndrew Choi2001-09-04 03:43:23 +0000
commitae355fa64acf5a71e6199fb3f8c3eb9fed569e8e (patch)
treeffb9f3341526e774538bba953a461ac71947e1d8
parent2ee1aa00ea9400eaf463f277e95e65b4877d2593 (diff)
downloademacs-ae355fa64acf5a71e6199fb3f8c3eb9fed569e8e.tar.gz
emacs-ae355fa64acf5a71e6199fb3f8c3eb9fed569e8e.zip
2001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
* term/mac-win.el (mac-drag-n-drop): Decode file name by consulting the value of file-name-coding-system.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term/mac-win.el9
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ee039edfb7b..07a12fc9283 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
2
3 * term/mac-win.el (mac-drag-n-drop): Decode file name by
4 consulting the value of file-name-coding-system.
5
12001-09-03 Stefan Monnier <monnier@cs.yale.edu> 62001-09-03 Stefan Monnier <monnier@cs.yale.edu>
2 7
3 * help.el (describe-function-1): Save precomputed `file-name' rather 8 * help.el (describe-function-1): Save precomputed `file-name' rather
diff --git a/lisp/term/mac-win.el b/lisp/term/mac-win.el
index 2032ebe258c..48c210d51e2 100644
--- a/lisp/term/mac-win.el
+++ b/lisp/term/mac-win.el
@@ -150,7 +150,14 @@ Switch to a buffer editing the last file dropped."
150 (y (cdr coords))) 150 (y (cdr coords)))
151 (if (and (> x 0) (> y 0)) 151 (if (and (> x 0) (> y 0))
152 (set-frame-selected-window nil window)) 152 (set-frame-selected-window nil window))
153 (mapcar 'find-file (car (cdr (cdr event))))) 153 (mapcar
154 '(lambda (file)
155 (find-file
156 (decode-coding-string
157 file
158 (or file-name-coding-system
159 default-file-name-coding-system))))
160 (car (cdr (cdr event)))))
154 (raise-frame) 161 (raise-frame)
155 (recenter))) 162 (recenter)))
156 163