unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29278: Incorrect documentation of ido-find-alternate-file
@ 2017-11-12 23:12 Clément Pit--Claudel
  2017-11-18 11:16 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Clément Pit--Claudel @ 2017-11-12 23:12 UTC (permalink / raw)
  To: 29278


[-- Attachment #1.1: Type: text/plain, Size: 851 bytes --]

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.

Cheers,
Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#29278: Incorrect documentation of ido-find-alternate-file
  2017-11-12 23:12 bug#29278: Incorrect documentation of ido-find-alternate-file Clément Pit--Claudel
@ 2017-11-18 11:16 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2017-11-18 11:16 UTC (permalink / raw)
  To: Clément Pit--Claudel; +Cc: 29278-done

> From: Clément Pit--Claudel <clement.pitclaudel@live.com>
> 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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-18 11:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-12 23:12 bug#29278: Incorrect documentation of ido-find-alternate-file Clément Pit--Claudel
2017-11-18 11:16 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).