aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term
diff options
context:
space:
mode:
authorDaniel Colascione2012-10-07 14:31:58 -0800
committerDaniel Colascione2012-10-07 14:31:58 -0800
commit36a305a723c63fd345be65c536c52fe9765c14be (patch)
treefb89d9e103552863214c60297a65320917109357 /lisp/term
parent2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (diff)
parent795b1482a9e314cda32d62ac2988f573d359366e (diff)
downloademacs-36a305a723c63fd345be65c536c52fe9765c14be.tar.gz
emacs-36a305a723c63fd345be65c536c52fe9765c14be.zip
Merge from trunk
Diffstat (limited to 'lisp/term')
-rw-r--r--lisp/term/ns-win.el18
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.
457Use a file selection dialog. Select DEFAULT-FILENAME in the dialog's file
458selection box, if specified. If MUSTMATCH is non-nil, the returned file
459or directory must exist.
460
461This function is only defined on NS, MS Windows, and X Windows with the
462Motif or Gtk toolkits. With the Motif toolkit, ONLY-DIR-P is ignored.
463Otherwise, 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