aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-03-09 07:33:13 -0400
committerEli Zaretskii2025-03-09 07:33:13 -0400
commitbcfa9692f05ccc61c6816da249ea540c3fee297a (patch)
tree84bf51dbdb9fadef52191ea1c58379360a51fc47
parent6fb68f4310d808827b83da053fbc112b316b7757 (diff)
parentaf8017b23f6d94266dd05dcd084c8d7656393db8 (diff)
downloademacs-bcfa9692f05ccc61c6816da249ea540c3fee297a.tar.gz
emacs-bcfa9692f05ccc61c6816da249ea540c3fee297a.zip
Merge from origin/emacs-30
af8017b23f6 Explicitly document read-string return value cf03c2b6093 Improve docstrings of python.el import management 01bcc6961a6 ; Improve doc strings of Speedbar bd9c76ab175 Avoid warnings about 'image-scaling-factor' in builds --w...
-rw-r--r--lisp/cus-start.el2
-rw-r--r--lisp/progmodes/python.el18
-rw-r--r--lisp/speedbar.el81
-rw-r--r--src/minibuf.c34
4 files changed, 80 insertions, 55 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index c6cdd5cc2e7..b4c20caccc1 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -915,6 +915,8 @@ since it could result in memory overflow and make Emacs crash."
915 (fboundp 'x-create-frame)) 915 (fboundp 'x-create-frame))
916 ((string-match "tab-bar-" (symbol-name symbol)) 916 ((string-match "tab-bar-" (symbol-name symbol))
917 (fboundp 'x-create-frame)) 917 (fboundp 'x-create-frame))
918 ((string-match "image-" (symbol-name symbol))
919 (fboundp 'x-create-frame))
918 ((equal "vertical-centering-font-regexp" 920 ((equal "vertical-centering-font-regexp"
919 (symbol-name symbol)) 921 (symbol-name symbol))
920 ;; Any function from fontset.c will do. 922 ;; Any function from fontset.c will do.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d55ce1f7fb1..fa9dd636f1d 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6941,6 +6941,12 @@ argument, restrict the suggestions to imports defining the symbol
6941at point. If there is only one such suggestion, act without 6941at point. If there is only one such suggestion, act without
6942asking. 6942asking.
6943 6943
6944If the buffer does not belong to a project, the import statement is
6945searched under the buffer's default directory. For example, if the file
6946is located directly under the home directory, all files under the home
6947directory will be searched. Please note that this can take a long time
6948and may appear to hang.
6949
6944When calling from Lisp, use a non-nil NAME to restrict the 6950When calling from Lisp, use a non-nil NAME to restrict the
6945suggestions to imports defining NAME." 6951suggestions to imports defining NAME."
6946 (interactive (list (when current-prefix-arg (thing-at-point 'symbol)))) 6952 (interactive (list (when current-prefix-arg (thing-at-point 'symbol))))
@@ -6985,7 +6991,17 @@ asking."
6985 6991
6986;;;###autoload 6992;;;###autoload
6987(defun python-fix-imports () 6993(defun python-fix-imports ()
6988 "Add missing imports and remove unused ones from the current buffer." 6994 "Add missing imports and remove unused ones from the current buffer.
6995
6996If there are missing imports, ask for an import statement using all
6997imports found in the current project as suggestions. If there is only
6998one such suggestion, act without asking.
6999
7000If the buffer does not belong to a project, the import statement is
7001searched under the buffer's default directory. For example, if the file
7002is located directly under the home directory, all files under the home
7003directory will be searched. Please note that this can take a long time
7004and may appear to hang."
6989 (interactive) 7005 (interactive)
6990 (let ((buffer (current-buffer)) 7006 (let ((buffer (current-buffer))
6991 undefined unused add remove) 7007 undefined unused add remove)
diff --git a/lisp/speedbar.el b/lisp/speedbar.el
index 104e23b9bc9..152b4c9d651 100644
--- a/lisp/speedbar.el
+++ b/lisp/speedbar.el
@@ -220,9 +220,9 @@ frame."
220 :type 'boolean) 220 :type 'boolean)
221 221
222(defcustom speedbar-query-confirmation-method 'all 222(defcustom speedbar-query-confirmation-method 'all
223 "Query control for file operations. 223 "Control querying for file operations.
224The `all' flag means to always query before file operations. 224The value `all' means to always query before file operations.
225The `none-but-delete' flag means to not query before any file 225The value `none-but-delete' means to not query before any file
226operations, except before a file deletion." 226operations, except before a file deletion."
227 :group 'speedbar 227 :group 'speedbar
228 :type '(radio (const :tag "Always Query before some file operations." 228 :type '(radio (const :tag "Always Query before some file operations."
@@ -284,7 +284,7 @@ The default buffer is the buffer in the selected window in the attached frame."
284 :type 'hook) 284 :type 'hook)
285 285
286(defcustom speedbar-show-unknown-files nil 286(defcustom speedbar-show-unknown-files nil
287 "Non-nil show files we can't expand with a ? in the expand button. 287 "Non-nil means show files we can't expand with a ? in the expand button.
288A nil value means don't show the file in the list." 288A nil value means don't show the file in the list."
289 :group 'speedbar 289 :group 'speedbar
290 :type 'boolean) 290 :type 'boolean)
@@ -309,7 +309,8 @@ attached to and added to this list before the new frame is initialized."
309 :version "30.1") 309 :version "30.1")
310 310
311(defcustom speedbar-use-imenu-flag t 311(defcustom speedbar-use-imenu-flag t
312 "Non-nil means use imenu for file parsing, nil to use etags. 312 "Whether to use imenu or etags for file parsing.
313Non-nil means use imenu for file parsing, nil means use etags.
313Etags support is not as robust as imenu support." ; See Bug#51102 314Etags support is not as robust as imenu support." ; See Bug#51102
314 :tag "Use Imenu for tags" 315 :tag "Use Imenu for tags"
315 :group 'speedbar 316 :group 'speedbar
@@ -335,12 +336,12 @@ display is used instead."
335 :type 'boolean) 336 :type 'boolean)
336 337
337(defcustom speedbar-track-mouse-flag (not speedbar-use-tool-tips-flag) 338(defcustom speedbar-track-mouse-flag (not speedbar-use-tool-tips-flag)
338 "Non-nil means to display info about the line under the mouse." 339 "Non-nil means to display info about the line under the mouse pointer."
339 :group 'speedbar 340 :group 'speedbar
340 :type 'boolean) 341 :type 'boolean)
341 342
342(defcustom speedbar-default-position 'left-right 343(defcustom speedbar-default-position 'left-right
343 "Default position of the speedbar frame. 344 "Default position of the speedbar frame relative to the attached frame.
344Possible values are `left', `right' or `left-right'. 345Possible values are `left', `right' or `left-right'.
345If value is `left-right', the most suitable location is 346If value is `left-right', the most suitable location is
346determined automatically." 347determined automatically."
@@ -350,8 +351,8 @@ determined automatically."
350 (const :tag "Right" right))) 351 (const :tag "Right" right)))
351 352
352(defcustom speedbar-sort-tags nil 353(defcustom speedbar-sort-tags nil
353 "If non-nil, sort tags in the speedbar display. *Obsolete*. 354 "If non-nil, sort tags in the speedbar display.
354Use `speedbar-tag-hierarchy-method' instead." 355This option is obsolete; use `speedbar-tag-hierarchy-method' instead."
355 :group 'speedbar 356 :group 'speedbar
356 :type 'boolean) 357 :type 'boolean)
357 358
@@ -405,7 +406,7 @@ items is reached."
405 :type 'integer) 406 :type 'integer)
406 407
407(defcustom speedbar-directory-button-trim-method 'span 408(defcustom speedbar-directory-button-trim-method 'span
408 "Indicates how the directory button will be displayed. 409 "Control how the directory button in speedbar will be displayed.
409Possible values are: 410Possible values are:
410 `span' - span large directories over multiple lines. 411 `span' - span large directories over multiple lines.
411 `trim' - trim large directories to only show the last few. 412 `trim' - trim large directories to only show the last few.
@@ -419,7 +420,7 @@ Possible values are:
419 420
420(defcustom speedbar-smart-directory-expand-flag t 421(defcustom speedbar-smart-directory-expand-flag t
421 "Non-nil means speedbar should use smart expansion. 422 "Non-nil means speedbar should use smart expansion.
422Smart expansion only affects when speedbar wants to display a 423Smart expansion is only in effect when speedbar wants to display a
423directory for a file in the attached frame. When smart expansion is 424directory for a file in the attached frame. When smart expansion is
424enabled, new directories which are children of a displayed directory 425enabled, new directories which are children of a displayed directory
425are expanded in the current framework. If nil, then the current 426are expanded in the current framework. If nil, then the current
@@ -433,7 +434,7 @@ hierarchy would be replaced with the new directory."
433 :type 'integer) 434 :type 'integer)
434 435
435(defcustom speedbar-hide-button-brackets-flag nil 436(defcustom speedbar-hide-button-brackets-flag nil
436 "Non-nil means speedbar will hide the brackets around the + or -." 437 "If non-nil, speedbar will hide the brackets around the + or -."
437 :group 'speedbar 438 :group 'speedbar
438 :type 'boolean) 439 :type 'boolean)
439 440
@@ -474,14 +475,14 @@ hierarchy would be replaced with the new directory."
474 "String separating file text from indicator characters.") 475 "String separating file text from indicator characters.")
475 476
476(defcustom speedbar-vc-do-check t 477(defcustom speedbar-vc-do-check t
477 "Non-nil check all files in speedbar to see if they have been checked out. 478 "If non-nil, check all files in speedbar to see if they have been checked out.
478Any file checked out is marked with `speedbar-vc-indicator'." 479Any file checked out is marked with `speedbar-vc-indicator'."
479 :group 'speedbar-vc 480 :group 'speedbar-vc
480 :type 'boolean) 481 :type 'boolean)
481 482
482(defvar speedbar-vc-indicator "*" 483(defvar speedbar-vc-indicator "*"
483 "Text used to mark files which are currently checked out. 484 "Text used to mark files which are currently checked out.
484Other version control systems can be added by examining the function 485Other version control systems can be added by examining the functions
485`speedbar-vc-directory-enable-hook' and `speedbar-vc-in-control-hook'.") 486`speedbar-vc-directory-enable-hook' and `speedbar-vc-in-control-hook'.")
486 487
487(defcustom speedbar-vc-directory-enable-hook nil 488(defcustom speedbar-vc-directory-enable-hook nil
@@ -502,7 +503,7 @@ current file, and the FILENAME of the file being checked."
502 "Local variable maintaining the current version control check position.") 503 "Local variable maintaining the current version control check position.")
503 504
504(defcustom speedbar-obj-do-check t 505(defcustom speedbar-obj-do-check t
505 "Non-nil check all files in speedbar to see if they have an object file. 506 "If non-nil, check all files in speedbar to see if they have an object file.
506Any file checked out is marked with `speedbar-obj-indicator', and the 507Any file checked out is marked with `speedbar-obj-indicator', and the
507marking is based on `speedbar-obj-alist'." 508marking is based on `speedbar-obj-alist'."
508 :group 'speedbar-vc 509 :group 'speedbar-vc
@@ -561,7 +562,7 @@ state data."
561 (repeat :tag "List of modes" (symbol :tag "Major mode")))) 562 (repeat :tag "List of modes" (symbol :tag "Major mode"))))
562 563
563(defun speedbar-extension-list-to-regex (extlist) 564(defun speedbar-extension-list-to-regex (extlist)
564 "Takes EXTLIST, a list of extensions and transforms it into regexp. 565 "Take EXTLIST, a list of extensions and transform it into regexp.
565All the preceding `.' are stripped for an optimized expression starting 566All the preceding `.' are stripped for an optimized expression starting
566with `.' followed by extensions, followed by full-filenames." 567with `.' followed by extensions, followed by full-filenames."
567 (let ((regex1 nil) (regex2 nil)) 568 (let ((regex1 nil) (regex2 nil))
@@ -894,10 +895,10 @@ directories.")
894(defalias 'speedbar 'speedbar-frame-mode) 895(defalias 'speedbar 'speedbar-frame-mode)
895;;;###autoload 896;;;###autoload
896(defun speedbar-frame-mode (&optional arg) 897(defun speedbar-frame-mode (&optional arg)
897 "Enable or disable speedbar. Positive ARG means turn on, negative turn off. 898 "Enable or disable speedbar.
898A nil ARG means toggle. Once the speedbar frame is activated, a buffer in 899Positive ARG means turn on, negative turn off. A nil ARG means toggle.
899`speedbar-mode' will be displayed. Currently, only one speedbar is 900Once the speedbar frame is activated, a buffer in `speedbar-mode' will
900supported at a time. 901be displayed. Currently, only one speedbar is supported at a time.
901`speedbar-before-popup-hook' is called before popping up the speedbar frame. 902`speedbar-before-popup-hook' is called before popping up the speedbar frame.
902`speedbar-before-delete-hook' is called before the frame is deleted." 903`speedbar-before-delete-hook' is called before the frame is deleted."
903 (interactive "P") 904 (interactive "P")
@@ -956,7 +957,7 @@ supported at a time.
956 (dframe-current-frame 'speedbar-frame 'speedbar-mode)) 957 (dframe-current-frame 'speedbar-frame 'speedbar-mode))
957 958
958(defun speedbar-handle-delete-frame (e) 959(defun speedbar-handle-delete-frame (e)
959 "Handle a delete frame event E. 960 "Handle a delete-frame event E.
960If the deleted frame is the frame speedbar is attached to, 961If the deleted frame is the frame speedbar is attached to,
961we need to delete speedbar also." 962we need to delete speedbar also."
962 (when (and speedbar-frame 963 (when (and speedbar-frame
@@ -1177,7 +1178,7 @@ and the existence of packages."
1177 (error (dframe-message nil))))))) 1178 (error (dframe-message nil)))))))
1178 1179
1179(defun speedbar-show-info-under-mouse () 1180(defun speedbar-show-info-under-mouse ()
1180 "Call the info function for the line under the mouse." 1181 "Call the info function for the line under the mouse pointer."
1181 (let ((pos (mouse-position))) ; we ignore event until I use it later. 1182 (let ((pos (mouse-position))) ; we ignore event until I use it later.
1182 (if (equal (car pos) speedbar-frame) 1183 (if (equal (car pos) speedbar-frame)
1183 (save-excursion 1184 (save-excursion
@@ -1360,7 +1361,7 @@ File style information is displayed with `speedbar-item-info'."
1360 (point) (line-end-position))))) 1361 (point) (line-end-position)))))
1361 1362
1362(defun speedbar-item-info () 1363(defun speedbar-item-info ()
1363 "Display info in the minibuffer about the button the mouse is over. 1364 "Display info in the minibuffer about the button the mouse pointer is over.
1364This function can be replaced in `speedbar-mode-functions-list' as 1365This function can be replaced in `speedbar-mode-functions-list' as
1365`speedbar-item-info'." 1366`speedbar-item-info'."
1366 (interactive) 1367 (interactive)
@@ -1479,7 +1480,7 @@ Files can be copied to new names or places."
1479 )))))) 1480 ))))))
1480 1481
1481(defun speedbar-item-rename () 1482(defun speedbar-item-rename ()
1482 "Rename the item under the cursor or mouse. 1483 "Rename the item under the cursor or the mouse pointer.
1483Files can be renamed to new names or moved to new directories." 1484Files can be renamed to new names or moved to new directories."
1484 (interactive) 1485 (interactive)
1485 (let ((f (speedbar-line-file))) 1486 (let ((f (speedbar-line-file)))
@@ -1524,7 +1525,8 @@ Files can be renamed to new names or moved to new directories."
1524 (error "Not a file")))) 1525 (error "Not a file"))))
1525 1526
1526(defun speedbar-item-delete () 1527(defun speedbar-item-delete ()
1527 "Delete the item under the cursor. Files are removed from disk." 1528 "Delete the item under the cursor.
1529Files are removed from disk."
1528 (interactive) 1530 (interactive)
1529 (let ((f (speedbar-line-file))) 1531 (let ((f (speedbar-line-file)))
1530 (if (not f) (error "Not a file")) 1532 (if (not f) (error "Not a file"))
@@ -1679,7 +1681,7 @@ This is based on `speedbar-initial-expansion-list-name' referencing
1679 speedbar-initial-expansion-mode-alist))))) 1681 speedbar-initial-expansion-mode-alist)))))
1680 1682
1681(defun speedbar-initial-keymap () 1683(defun speedbar-initial-keymap ()
1682 "Return the current default menu data. 1684 "Return the current default keymap data.
1683This is based on `speedbar-initial-expansion-list-name' referencing 1685This is based on `speedbar-initial-expansion-list-name' referencing
1684`speedbar-initial-expansion-mode-alist'." 1686`speedbar-initial-expansion-mode-alist'."
1685 (symbol-value 1687 (symbol-value
@@ -1956,7 +1958,7 @@ position to insert a new item, and that the new item will end with a CR."
1956;;; Build button lists 1958;;; Build button lists
1957;; 1959;;
1958(defun speedbar-insert-files-at-point (files level) 1960(defun speedbar-insert-files-at-point (files level)
1959 "Insert list of FILES starting at point, and indenting all files to LEVEL. 1961 "Insert list of FILES starting at point, and indent all files to LEVEL.
1960Tag expandable items with a +, otherwise a ?. Don't highlight ? as we 1962Tag expandable items with a +, otherwise a ?. Don't highlight ? as we
1961don't know how to manage them. The input parameter FILES is a cons 1963don't know how to manage them. The input parameter FILES is a cons
1962cell of the form (DIRLIST . FILELIST)." 1964cell of the form (DIRLIST . FILELIST)."
@@ -2028,7 +2030,7 @@ Groups may optionally contain a position."
2028 ))) 2030 )))
2029 2031
2030(defun speedbar-generic-list-positioned-group-p (sublst) 2032(defun speedbar-generic-list-positioned-group-p (sublst)
2031 "Non-nil if SUBLST is a group with a position." 2033 "Return non-nil if SUBLST is a group with a position."
2032 (and (stringp (car-safe sublst)) 2034 (and (stringp (car-safe sublst))
2033 (number-or-marker-p (car-safe (cdr-safe sublst))) 2035 (number-or-marker-p (car-safe (cdr-safe sublst)))
2034 (listp (cdr-safe (cdr-safe sublst))) 2036 (listp (cdr-safe (cdr-safe sublst)))
@@ -2039,7 +2041,7 @@ Groups may optionally contain a position."
2039 )))) 2041 ))))
2040 2042
2041(defun speedbar-generic-list-tag-p (sublst) 2043(defun speedbar-generic-list-tag-p (sublst)
2042 "Non-nil if SUBLST is a tag." 2044 "Return non-nil if SUBLST is a tag."
2043 (and (stringp (car-safe sublst)) 2045 (and (stringp (car-safe sublst))
2044 (or (and (number-or-marker-p (cdr-safe sublst)) 2046 (or (and (number-or-marker-p (cdr-safe sublst))
2045 (not (cdr-safe (cdr-safe sublst)))) 2047 (not (cdr-safe (cdr-safe sublst))))
@@ -2744,7 +2746,7 @@ indicator, then do not add a space."
2744 )))) 2746 ))))
2745 2747
2746(defun speedbar-check-read-only () 2748(defun speedbar-check-read-only ()
2747 "Scan all the files in a directory, and for each see if it is read only." 2749 "Scan all the files in a directory, and for each see if it is read-only."
2748 ;; Check for to-do to be reset. If reset but no RCS is available 2750 ;; Check for to-do to be reset. If reset but no RCS is available
2749 ;; then set to nil (do nothing) otherwise, start at the beginning 2751 ;; then set to nil (do nothing) otherwise, start at the beginning
2750 (save-excursion 2752 (save-excursion
@@ -3303,7 +3305,7 @@ INDENT is the current indentation level and is unused."
3303 (speedbar-set-timer dframe-update-speed)) 3305 (speedbar-set-timer dframe-update-speed))
3304 3306
3305(defun speedbar-tag-file (text token indent) 3307(defun speedbar-tag-file (text token indent)
3306 "The cursor is on a selected line. Expand the tags in the specified file. 3308 "Expand tags in file given by TOKEN when button TEXT was clicked.
3307The parameter TEXT and TOKEN are required, where TEXT is the button 3309The parameter TEXT and TOKEN are required, where TEXT is the button
3308clicked, and TOKEN is the file to expand. INDENT is the current 3310clicked, and TOKEN is the file to expand. INDENT is the current
3309indentation level." 3311indentation level."
@@ -3345,7 +3347,8 @@ INDENT is the current indentation level."
3345 )) 3347 ))
3346 3348
3347(defun speedbar-tag-expand (text token indent) 3349(defun speedbar-tag-expand (text token indent)
3348 "Expand a tag sublist. Imenu will return sub-lists of specialized tag types. 3350 "Expand a tag sublist TOKEN for button TEXT and indentation level INDENT.
3351Imenu will return sub-lists of specialized tag types.
3349Etags does not support this feature. TEXT will be the button string. 3352Etags does not support this feature. TEXT will be the button string.
3350TOKEN will be the list, and INDENT is the current indentation level." 3353TOKEN will be the list, and INDENT is the current indentation level."
3351 (cond ((string-search "+" text) ;we have to expand this file 3354 (cond ((string-search "+" text) ;we have to expand this file
@@ -3372,7 +3375,7 @@ the attached frame (the frame that speedbar was started from)."
3372 :type '(choice integer (other :tag "attached" attached))) 3375 :type '(choice integer (other :tag "attached" attached)))
3373 3376
3374(defun speedbar-find-file-in-frame (file) 3377(defun speedbar-find-file-in-frame (file)
3375 "This will load FILE into the speedbar attached frame. 3378 "Load FILE into the frame attached to speedbar.
3376If the file is being displayed in a different frame already, then raise that 3379If the file is being displayed in a different frame already, then raise that
3377frame instead." 3380frame instead."
3378 (let* ((buff (find-file-noselect file)) 3381 (let* ((buff (find-file-noselect file))
@@ -3395,18 +3398,13 @@ frame instead."
3395 "Recenter a speedbar buffer so the current indentation level is all visible. 3398 "Recenter a speedbar buffer so the current indentation level is all visible.
3396This assumes that the cursor is on a file, or tag of a file which the user is 3399This assumes that the cursor is on a file, or tag of a file which the user is
3397interested in." 3400interested in."
3398
3399 (save-selected-window 3401 (save-selected-window
3400
3401 (select-window (get-buffer-window speedbar-buffer t)) 3402 (select-window (get-buffer-window speedbar-buffer t))
3402
3403 (set-buffer speedbar-buffer) 3403 (set-buffer speedbar-buffer)
3404
3405 (if (<= (count-lines (point-min) (point-max)) 3404 (if (<= (count-lines (point-min) (point-max))
3406 (1- (window-height))) 3405 (1- (window-height)))
3407 ;; whole buffer fits 3406 ;; whole buffer fits
3408 (let ((cp (point))) 3407 (let ((cp (point)))
3409
3410 (goto-char (point-min)) 3408 (goto-char (point-min))
3411 (recenter 0) 3409 (recenter 0)
3412 (goto-char cp)) 3410 (goto-char cp))
@@ -3666,7 +3664,8 @@ regular expression EXPR."
3666 ))) 3664 )))
3667 3665
3668(defun speedbar-parse-tex-string () 3666(defun speedbar-parse-tex-string ()
3669 "Parse a Tex string. Only find data which is relevant." 3667 "Parse a Tex string.
3668Only finds data which is relevant."
3670 (save-excursion 3669 (save-excursion
3671 (let ((bound (line-end-position))) 3670 (let ((bound (line-end-position)))
3672 (cond ((re-search-forward "\\(\\(sub\\)*section\\|chapter\\|cite\\)\\s-*{[^\C-?}]*}?" bound t) 3671 (cond ((re-search-forward "\\(\\(sub\\)*section\\|chapter\\|cite\\)\\s-*{[^\C-?}]*}?" bound t)
@@ -3810,8 +3809,8 @@ Optional argument DEPTH specifies the current depth of the back search."
3810 (buffer-file-name buffer)))))))) 3809 (buffer-file-name buffer))))))))
3811 3810
3812(defun speedbar-buffer-click (text token _indent) 3811(defun speedbar-buffer-click (text token _indent)
3813 "When the users clicks on a buffer-button in speedbar. 3812 "Select frame when the users clicks on a buffer-button in speedbar.
3814TEXT is the buffer's name, TOKEN and INDENT are unused." 3813TEXT is the buffer's name, INDENT is unused."
3815 (if dframe-power-click 3814 (if dframe-power-click
3816 (let ((pop-up-frames t)) (select-window (display-buffer text))) 3815 (let ((pop-up-frames t)) (select-window (display-buffer text)))
3817 (dframe-select-attached-frame speedbar-frame) 3816 (dframe-select-attached-frame speedbar-frame)
diff --git a/src/minibuf.c b/src/minibuf.c
index 455d2f2b62d..720172a3aa4 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1406,20 +1406,28 @@ and some related functions, which use zero-indexing for POSITION. */)
1406/* Functions that use the minibuffer to read various things. */ 1406/* Functions that use the minibuffer to read various things. */
1407 1407
1408DEFUN ("read-string", Fread_string, Sread_string, 1, 5, 0, 1408DEFUN ("read-string", Fread_string, Sread_string, 1, 5, 0,
1409 doc: /* Read a string from the minibuffer, prompting with string PROMPT. 1409 doc: /* Read and return a string from the minibuffer, prompting with PROMPT.
1410If non-nil, second arg INITIAL-INPUT is a string to insert before reading. 1410
1411 This argument has been superseded by DEFAULT-VALUE and should normally be nil 1411PROMPT is a string, which should normally end with the string ": ".
1412 in new code. It behaves as INITIAL-CONTENTS in `read-from-minibuffer' (which 1412
1413 see). 1413If non-nil, second arg INITIAL-INPUT is a string to insert before
1414The third arg HISTORY, if non-nil, specifies a history list 1414reading. This argument has been superseded by DEFAULT-VALUE and should
1415 and optionally the initial position in the list. 1415normally be nil in new code. It behaves as INITIAL-CONTENTS in
1416`read-from-minibuffer' (which see).
1417
1418The third arg HISTORY, if non-nil, specifies a history list and
1419optionally the initial position in the list.
1420
1416See `read-from-minibuffer' for details of HISTORY argument. 1421See `read-from-minibuffer' for details of HISTORY argument.
1417Fourth arg DEFAULT-VALUE is the default value or the list of default values. 1422
1418 If non-nil, it is used for history commands, and as the value (or the first 1423Fourth arg DEFAULT-VALUE is the default value or the list of default
1419 element of the list of default values) to return if the user enters the 1424values. If non-nil, it is used for history commands, and as the value
1420 empty string. 1425(or the first element of the list of default values) to return if the
1421Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits 1426user enters the empty string.
1422 the current input method and the setting of `enable-multibyte-characters'. */) 1427
1428Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer
1429inherits the current input method and the setting of
1430`enable-multibyte-characters'. */)
1423 (Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method) 1431 (Lisp_Object prompt, Lisp_Object initial_input, Lisp_Object history, Lisp_Object default_value, Lisp_Object inherit_input_method)
1424{ 1432{
1425 Lisp_Object val; 1433 Lisp_Object val;