diff options
| author | Steven Tamm | 2005-01-16 00:17:25 +0000 |
|---|---|---|
| committer | Steven Tamm | 2005-01-16 00:17:25 +0000 |
| commit | 42afbcda13137806a3fd51c466526e29026947b9 (patch) | |
| tree | cb609b40896882345f6b7f27ccd29faa8ad1fdc4 /src | |
| parent | 9cdd488421a5154daac4be814bbc20d7b37a6d25 (diff) | |
| download | emacs-42afbcda13137806a3fd51c466526e29026947b9.tar.gz emacs-42afbcda13137806a3fd51c466526e29026947b9.zip | |
* macfns.c (Fx_file_dialog): Save As dialog includes only the
file name in the text box.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/macfns.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 07beb35f685..a8dd700f7d5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-01-15 Steven Tamm <steventamm@mac.com> | ||
| 2 | |||
| 3 | * macfns.c (Fx_file_dialog): Save As dialog includes only the | ||
| 4 | file name in the text box. | ||
| 5 | |||
| 1 | 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * macfns.c (x_set_foreground_color, x_set_background_color): Sync | 8 | * macfns.c (x_set_foreground_color, x_set_background_color): Sync |
diff --git a/src/macfns.c b/src/macfns.c index 2b223dfdfb5..33da9091575 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -4356,9 +4356,12 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */) | |||
| 4356 | 4356 | ||
| 4357 | if (!NILP(default_filename)) | 4357 | if (!NILP(default_filename)) |
| 4358 | { | 4358 | { |
| 4359 | saveName = | 4359 | Lisp_Object utf8 = ENCODE_UTF_8 (default_filename); |
| 4360 | cfstring_create_with_utf8_cstring (SDATA (ENCODE_UTF_8 | 4360 | char *begPtr = SDATA(utf8); |
| 4361 | (default_filename))); | 4361 | char *filePtr = begPtr + SBYTES(utf8); |
| 4362 | while (filePtr != begPtr && !IS_DIRECTORY_SEP(filePtr[-1])) | ||
| 4363 | filePtr--; | ||
| 4364 | saveName = cfstring_create_with_utf8_cstring (filePtr); | ||
| 4362 | options.saveFileName = saveName; | 4365 | options.saveFileName = saveName; |
| 4363 | options.optionFlags |= kNavSelectDefaultLocation; | 4366 | options.optionFlags |= kNavSelectDefaultLocation; |
| 4364 | } | 4367 | } |