From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Greg Bognar Newsgroups: gmane.emacs.help Subject: Ido and Wanderlust Date: Wed, 05 Dec 2018 23:33:49 +0100 Message-ID: <87bm5z61te.wl-greg.bognar@startmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1544061793 19863 195.159.176.226 (6 Dec 2018 02:03:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2018 02:03:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 06 03:03:08 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gUj0O-000544-2c for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Dec 2018 03:03:08 +0100 Original-Received: from localhost ([::1]:38471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUj2U-0003pu-IX for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Dec 2018 21:05:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUfjr-0002kx-S3 for help-gnu-emacs@gnu.org; Wed, 05 Dec 2018 17:33:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUfjn-0005Dw-Bc for help-gnu-emacs@gnu.org; Wed, 05 Dec 2018 17:33:51 -0500 Original-Received: from mx-out2.startmail.com ([145.131.90.155]:36423) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUfjm-00058z-O4 for help-gnu-emacs@gnu.org; Wed, 05 Dec 2018 17:33:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=startmail.com; s=2017-11; t=1544049222; bh=3Ng8VEy2kiE3P2GWU/n17uIFD+u47VtVQbbw6PHAbVc=; h=Date:From:To:Subject:From; b=UgpVKSYkY4m/S9oRLrPfhW6Mf8Lgc20SzQQk1iAMe36HyARnnyo+uLpTLy+xuN1qY Mg2G/h3RZUa/M4YrMVfK5xI2hipMLjq5MfHBe3NUpNP3C5SwxAtlSxAVbZig+C416H hYZ0YScgayTeHAHITGVk4VZJSmoedPLtXlqMQDbNuCYfiaAIBge4tCUG/uX0xv3/86 Wcw57vdeGIi2kaz9ACzAZFIrZ2ZcAYUukGUWMQqC33UqgmL5nvWDRpZbIZ+8Vg0cB5 nrLPq32vLS3Jxoumi1sHx190czANdw9QWsJQK2pLnKFiiakhGhAeMzqhHICp8M4IqE +EgOPqZ4DvS4g== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 145.131.90.155 X-Mailman-Approved-At: Wed, 05 Dec 2018 21:04:48 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118881 Archived-At: Hi, I use Wanderlust (https://github.com/wanderlust/wanderlust) for email. It depends on SEMI (https://github.com/wanderlust/semi) to provide MIME features, one of which is the mime-save-content function to save attachments (defined in mime-play.el, line 263, https://github.com/wanderlust/semi/blob/semi-1_14-wl/mime-play.el). I also use ido. But when I enable ido.el with (ido-everywhere) mime-save-content stops working. It wants to save the attachment with the file name that's on top of the completion list (prompting to overwrite it) and the default name (ie, the name of the attached file) does not get inserted. An alternative is to use Wanderlust's own wl-mime-save-content (defined in wl-mime.el, line 894, https://github.com/wanderlust/wanderlust/blob/master/wl/wl-mime.el), which beings by inserting the attachment's file name into its own prompt, but if you want to change the directory it switches to the ido prompt with the same result as above. The only solution in both cases is to exit the ido prompt with C-f. Both functions use ido-read-file-name for read-file-name as ido sets read-file-name-function. I'm wondering what it is about ido-read-file-name that causes this behavior. Thanks, Greg