Subject: Re: bug#29278: Incorrect documentation of ido-find-alternate-file
From: Eli Zaretskii <[email-masked]>
To: Clément Pit--Claudel <[email-masked]>
Cc: [email-masked]
Date: Sat, 18 Nov 2017 13:16:08 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Clément Pit--Claudel <[email-masked]>
> Date: Sun, 12 Nov 2017 18:12:18 -0500
> 
> The docstring of ido-find-alternate-file is wrong:
> 
> ;;;###autoload
> (defun ido-find-file-other-window ()
>   "Switch to another file and show it in another window.
> The file name is selected interactively by typing a substring.
> For details of keybindings, see `ido-find-file'."
>   (interactive)
>   (ido-file-internal 'other-window 'find-file-other-window))
> 
> ;;;###autoload
> (defun ido-find-alternate-file ()
>   "Switch to another file and show it in another window.
> The file name is selected interactively by typing a substring.
> For details of keybindings, see `ido-find-file'."
>   (interactive)
>   (ido-file-internal 'alt-file 'find-alternate-file nil "Find alternate file: "))
> 
> The first line of ido-find-alternate-file could be changed to "Find file FILENAME, select its buffer, kill previous buffer." to fix this.

There's no FILENAME in the argument list of ido-find-alternate-file,
so I've installed a slightly different change.

Thanks.