aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-02-13 17:46:43 -0500
committerGlenn Morris2012-02-13 17:46:43 -0500
commit2605051a7f2cb2dbae1a87a34940cc38c682eb1d (patch)
tree36906545645166548ac97438f798e6a407869d0a
parent20d6487ebbe0f04072c741e29f06d0132e282ff9 (diff)
downloademacs-2605051a7f2cb2dbae1a87a34940cc38c682eb1d.tar.gz
emacs-2605051a7f2cb2dbae1a87a34940cc38c682eb1d.zip
* lisp/minibuffer.el (read-file-name): Doc fix. (Bug#10798)
* src/gtkutil.c: Related comment.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/minibuffer.el13
-rw-r--r--src/gtkutil.c5
3 files changed, 17 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bbbfb8dd000..5c7e8f2e8f8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-02-13 Glenn Morris <rgm@gnu.org>
2
3 * minibuffer.el (read-file-name): Doc fix. (Bug#10798)
4
12012-02-13 Teodor Zlatanov <tzz@lifelogs.com> 52012-02-13 Teodor Zlatanov <tzz@lifelogs.com>
2 6
3 * net/gnutls.el (gnutls-trustfiles): New variable. 7 * net/gnutls.el (gnutls-trustfiles): New variable.
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 913bfeba0ca..3cdece57e70 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -2011,12 +2011,19 @@ DIR should be an absolute directory name. It defaults to the value of
2011If this command was invoked with the mouse, use a graphical file 2011If this command was invoked with the mouse, use a graphical file
2012dialog if `use-dialog-box' is non-nil, and the window system or X 2012dialog if `use-dialog-box' is non-nil, and the window system or X
2013toolkit in use provides a file dialog box, and DIR is not a 2013toolkit in use provides a file dialog box, and DIR is not a
2014remote file. For graphical file dialogs, any the special values 2014remote file. For graphical file dialogs, any of the special values
2015of MUSTMATCH; `confirm' and `confirm-after-completion' are 2015of MUSTMATCH `confirm' and `confirm-after-completion' are
2016treated as equivalent to nil. 2016treated as equivalent to nil. Some graphical file dialogs respect
2017a MUSTMATCH value of t, and some do not (or it only has a cosmetic
2018effect, but does not actually prevent the user from entering a
2019non-existent file).
2017 2020
2018See also `read-file-name-completion-ignore-case' 2021See also `read-file-name-completion-ignore-case'
2019and `read-file-name-function'." 2022and `read-file-name-function'."
2023 ;; If x-gtk-use-old-file-dialog = t (xg_get_file_with_selection),
2024 ;; then MUSTMATCH is enforced. But with newer Gtk
2025 ;; (xg_get_file_with_chooser), it only has a cosmetic effect.
2026 ;; The user can still type a non-existent file name.
2020 (funcall (or read-file-name-function #'read-file-name-default) 2027 (funcall (or read-file-name-function #'read-file-name-default)
2021 prompt dir default-filename mustmatch initial predicate)) 2028 prompt dir default-filename mustmatch initial predicate))
2022 2029
diff --git a/src/gtkutil.c b/src/gtkutil.c
index f7983fdd5a4..1ed5833bd5c 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1741,8 +1741,9 @@ xg_toggle_notify_cb (GObject *gobject, GParamSpec *arg1, gpointer user_data)
1741 PROMPT is a prompt to show to the user. May not be NULL. 1741 PROMPT is a prompt to show to the user. May not be NULL.
1742 DEFAULT_FILENAME is a default selection to be displayed. May be NULL. 1742 DEFAULT_FILENAME is a default selection to be displayed. May be NULL.
1743 If MUSTMATCH_P is non-zero, the returned file name must be an existing 1743 If MUSTMATCH_P is non-zero, the returned file name must be an existing
1744 file. *FUNC is set to a function that can be used to retrieve the 1744 file. (Actually, this only has cosmetic effects, the user can
1745 selected file name from the returned widget. 1745 still enter a non-existing file.) *FUNC is set to a function that
1746 can be used to retrieve the selected file name from the returned widget.
1746 1747
1747 Returns the created widget. */ 1748 Returns the created widget. */
1748 1749