From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Guillaume Salagnac Newsgroups: gmane.emacs.bugs Subject: bug#28513: 25.1; ido insists on guessing the wrong directory Date: Tue, 19 Sep 2017 17:03:15 +0200 Message-ID: <3526ABC6-2389-492A-83D7-A26195A6FC37@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1505835244 28428 195.159.176.226 (19 Sep 2017 15:34:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 15:34:04 +0000 (UTC) To: 28513@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 17:33:58 2017 Return-path: Envelope-to: geb-bug-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 1duKX7-00075P-JD for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 17:33:57 +0200 Original-Received: from localhost ([::1]:43582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duKXE-0002Nq-Ul for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 11:34:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duKSS-000682-0X for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 11:29:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duKSM-00066B-1o for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 11:29:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duKSL-000663-Uk for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 11:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duKSL-00054v-Oo for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 11:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Guillaume Salagnac Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Sep 2017 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150583494119512 (code B ref -1); Tue, 19 Sep 2017 15:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Sep 2017 15:29:01 +0000 Original-Received: from localhost ([127.0.0.1]:48405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duKSK-00054d-BR for submit@debbugs.gnu.org; Tue, 19 Sep 2017 11:29:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duK3s-0004U8-5S for submit@debbugs.gnu.org; Tue, 19 Sep 2017 11:03:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duK3j-0003oX-Q5 for submit@debbugs.gnu.org; Tue, 19 Sep 2017 11:03:39 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1duK3j-0003oO-MY for submit@debbugs.gnu.org; Tue, 19 Sep 2017 11:03:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duK3Z-00080L-Mf for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 11:03:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duK3V-0003bs-DS for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 11:03:25 -0400 Original-Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]:57136) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duK3V-0003XO-4P for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 11:03:21 -0400 Original-Received: by mail-wr0-x22b.google.com with SMTP id r74so237764wrb.13 for ; Tue, 19 Sep 2017 08:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=7LdTm4CpfyO/S4jOANBeuZuSKvwOVY2JDKAtweHbj4k=; b=XU50wHnS0r8o1NFFlp0uKXzIRhCLKGJq2C9IY6Smi64gyzVIQcUJ1p8PrRTzvV6EXv eZ5rAGC80ombqeFWMPFSxyqFr/nSDpln9Fsm7MO4qhgmemuLILQIsju7PX7HvTdnYY90 oEcKZHC9+U0beEBwVxztDhj0BXsQ6klWtcl3gzh/JPUEcnuZDZH62W20gLE6NqMSTQc/ K8Bubnk21iv74XCVpa5qbKGGm3ovTWvfrhmPDE8Zzyfb32f599bXV3BPxqbbtUP2wAgT 4Dh8qB4XIk47KMPDVL36Z0jygWGjw8ctmRXEHzSyLLDjicC8+5A8vyvsCP6oH0/JM7IK 37pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=7LdTm4CpfyO/S4jOANBeuZuSKvwOVY2JDKAtweHbj4k=; b=MF0DusABrpDZey99Hlt7wwfGCJETLMvk+P8tW6QRRVgW1loczfS6VWKoqjamgEGYBi +TUmvoGBuPlC1BlAZ9jNzwSQTQ/uptkm8/yUTyJuLmFgW/ujuewBySsSyNtwzqD6hAUz VWy4W1+iIrsYz6sHtJAPoqKberLaea3H2OcdMY/3ZTPg1ulCvhQFjJI+vjMynT9Z3B7l wh+Ca4nzolxVp/HRdeLCX+1khxLkdP051XSJpnG8zAnbHPkufj+rISdymqhZftV6iVlr eW8FpFwEd2KS100dbTUdlSoUHVDbEdREG2XnE9OiOdj4Nsny7aL9RyKQrk0xA05YcPtO fiOg== X-Gm-Message-State: AHPjjUjxU0o4A97fJF6KQJT7ijjcWqlZ3s+WmD83/pcoEOOVYdGmrTqq j1Xp4kAa+NCqo1//soNvonVvckiYR3U= X-Google-Smtp-Source: AOwi7QDsRrHKI9DD8/OfO/Iz3K/HU6TnGaQtTDfGHTWodDwuWGxjuD3lNYzkgQb4L9BKljAvtHhvpw== X-Received: by 10.223.156.129 with SMTP id d1mr1840180wre.166.1505833397256; Tue, 19 Sep 2017 08:03:17 -0700 (PDT) Original-Received: from plouf.citi.insa-lyon.fr (plouf.citi.insa-lyon.fr. [134.214.146.199]) by smtp.gmail.com with ESMTPSA id b72sm1419600wmf.30.2017.09.19.08.03.16 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Sep 2017 08:03:16 -0700 (PDT) X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 19 Sep 2017 11:28:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137124 Archived-At: I want to reproduce the usual "save as..." feature that all GUI = applications offer. But I fail to do so using ido-mode and I suspect a = bug. Steps to reproduce are described below. emacs -Q M-x ido-mode ... I type stuff in the scratch buffer ... C-x C-w (this brings the ido-write-file dialog in the minibuffer. the blue prompt is ~/ and all the subdirs are listed in red. fine so far) ... I type a new filename and then hit RETURN (this brings a [Confirm] notification in the minibuffer, so I have = to hit RETURN once more to get the "Wrote /home/user/filename" message) ... I type some more stuff in the (now named) buffer ... C-x C-w (this brings the ido-write-file dialog once more, with the same subdirectories in red) ... I type "k" then RETURN (the blue prompt now says "Write file: ~/Desktop/" ) C-f (the completions in red disappear ; the "~/Desktop" part of the prompt becomes black and I can edit the path to my liking. but I don't) RETURN expected behaviour: emacs may or may not ask for a confirmation here, = but eventually it should save my buffer as ~/Desktop/filename (as is the = case with M-x write-file) actual behaviour: emacs decides that I actually didn't want to change = directories and says: File '~/filename' exists; overwrite ? I can choose = either "cancel" or "confirm" but neither lead to the correct result. Is this indeed a bug, or am I missing something obvious ? In GNU Emacs 25.1.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 = Version 10.11.6 (Build 15G1217)) of 2017-02-18 built on elcapitan.internal.macports.net Windowing system distributor 'Apple', version 10.3.1404 Configured using: 'configure --prefix=3D/opt/local --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --without-gpm --without-gnutls --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-ns CC=3D/usr/bin/clang 'CFLAGS=3D-pipe -Os -arch x86_64' 'LDFLAGS=3D-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie -arch x86_64' CPPFLAGS=3D-I/opt/local/include' Configured features: NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: C locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Saving file /Users/gsalagnac/bla... Wrote /Users/gsalagnac/bla Mark set next-line: End of buffer [3 times] Mark set next-line: End of buffer Saving file /Users/gsalagnac/new-file... Wrote /Users/gsalagnac/new-file File =E2=80=98~/new-file=E2=80=99 exists; overwrite? (y or n) n user-error: Canceled Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils ido seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 207881 7570) (symbols 48 20460 0) (miscs 40 66 194) (strings 32 19472 6289) (string-bytes 1 589390) (vectors 16 34429) (vector-slots 8 666731 6726) (floats 8 186 153) (intervals 56 284 16) (buffers 976 20))