diff options
| author | Daniel Colascione | 2012-10-07 14:31:58 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2012-10-07 14:31:58 -0800 |
| commit | 36a305a723c63fd345be65c536c52fe9765c14be (patch) | |
| tree | fb89d9e103552863214c60297a65320917109357 /lisp/term | |
| parent | 2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (diff) | |
| parent | 795b1482a9e314cda32d62ac2988f573d359366e (diff) | |
| download | emacs-36a305a723c63fd345be65c536c52fe9765c14be.tar.gz emacs-36a305a723c63fd345be65c536c52fe9765c14be.zip | |
Merge from trunk
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/ns-win.el | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index b46c31afdeb..e31362b8313 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -448,10 +448,21 @@ Lines are highlighted according to `ns-input-line'." | |||
| 448 | ;; nsterm.m | 448 | ;; nsterm.m |
| 449 | 449 | ||
| 450 | (declare-function ns-read-file-name "nsfns.m" | 450 | (declare-function ns-read-file-name "nsfns.m" |
| 451 | (prompt &optional dir isLoad init)) | 451 | (prompt &optional dir mustmatch init dir_only_p)) |
| 452 | 452 | ||
| 453 | ;;;; File handling. | 453 | ;;;; File handling. |
| 454 | 454 | ||
| 455 | (defun x-file-dialog (prompt dir default_filename mustmatch only_dir_p) | ||
| 456 | "Read file name, prompting with PROMPT in directory DIR. | ||
| 457 | Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file | ||
| 458 | selection box, if specified. If MUSTMATCH is non-nil, the returned file | ||
| 459 | or directory must exist. | ||
| 460 | |||
| 461 | This function is only defined on NS, MS Windows, and X Windows with the | ||
| 462 | Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored. | ||
| 463 | Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories." | ||
| 464 | (ns-read-file-name prompt dir mustmatch default_filename only_dir_p)) | ||
| 465 | |||
| 455 | (defun ns-open-file-using-panel () | 466 | (defun ns-open-file-using-panel () |
| 456 | "Pop up open-file panel, and load the result in a buffer." | 467 | "Pop up open-file panel, and load the result in a buffer." |
| 457 | (interactive) | 468 | (interactive) |
| @@ -622,8 +633,9 @@ This function has been overloaded in Nextstep.") | |||
| 622 | `ns-input-fontsize' of new font." | 633 | `ns-input-fontsize' of new font." |
| 623 | (interactive) | 634 | (interactive) |
| 624 | (modify-frame-parameters (selected-frame) | 635 | (modify-frame-parameters (selected-frame) |
| 625 | (list (cons 'font ns-input-font) | 636 | (list (cons 'fontsize ns-input-fontsize))) |
| 626 | (cons 'fontsize ns-input-fontsize))) | 637 | (modify-frame-parameters (selected-frame) |
| 638 | (list (cons 'font ns-input-font))) | ||
| 627 | (set-frame-font ns-input-font)) | 639 | (set-frame-font ns-input-font)) |
| 628 | 640 | ||
| 629 | 641 | ||