unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34292: 26.1; ido-everywhere interferes with find-file
@ 2019-02-02 20:26 Dave Abrahams
  2019-04-01 23:37 ` Noam Postavsky
  2019-04-02 23:58 ` Noam Postavsky
  0 siblings, 2 replies; 7+ messages in thread
From: Dave Abrahams @ 2019-02-02 20:26 UTC (permalink / raw)
  To: 34292

emacs -Q

evaluate the following elisp:

(make-directory "/tmp/foo/bar/baz" t)
(require 'ido)
(ido-everywhere)
(find-file "/tmp/foo/bar/baz")
(call-interactively 'find-file)

Now type DEL C-f RET, which should open "/tmp/foo/bar/"
Instead, nothing happens




In GNU Emacs 26.1 (build 1, x86_64-apple-darwin18.0.0, Carbon Version 158 AppKit 1671)
 of 2018-09-30 built on Fujinami.verizon.net
Repository revision: 8d7e58ce9f389d77323e0237c22c4e13cb68b8e7
Windowing system distributor 'Apple Inc.', version 10.14.4
Recent messages:
Checking 176 files in /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp...
Checking 24 files in /Applications/Emacs.app/Contents/Resources/lisp/cedet...
Checking 57 files in /Applications/Emacs.app/Contents/Resources/lisp/calendar...
Checking 87 files in /Applications/Emacs.app/Contents/Resources/lisp/calc...
Checking 105 files in /Applications/Emacs.app/Contents/Resources/lisp/obsolete...
Checking 23 files in ~/.emacs.d/site-lisp/non-GPL3...
Checking 31 files in ~/.emacs.d/elhome/settings...
Checking 1 files in /Users/dave/src/a/amber/Aux...
Checking for load-path shadows...done
Making completion list...

Configured using:
 'configure --with-mac '--enable-locallisppath=/Library/Application
 Support/Emacs/#{version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules
 --enable-mac-app=/Users/xin/Factory/emacs/macos-build/emacs-source/mac_out
 --prefix=/Users/xin/Factory/emacs/macos-build/emacs-source/mac_tree'
Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS
Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Dired by name

Minor modes in effect:
  gnus-dired-mode: t
  flx-ido-mode: t
  global-magit-file-mode: t
  diff-auto-refine-mode: t
  magit-auto-revert-mode: t
  global-git-commit-mode: t
  me-minor-mode: t
  winner-mode: t
  which-function-mode: t
  show-paren-mode: t
  shell-command-with-editor-mode: t
  async-bytecomp-package-mode: t
  shell-dirtrack-mode: t
  server-mode: t
  minibuffer-depth-indicate-mode: t
  ido-everywhere: t
  global-auto-revert-mode: t
  delete-selection-mode: t
  auto-insert-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mac-mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/Applications/Emacs.app/Contents/Resources/lisp/progmodes/compile hides ~/.emacs.d/site-lisp/non-GPL3/compile

Features:
(pp shadow sort mail-extr emacsbug sendmail gnus-dired
amber-project-settings skeleton cc-styles cc-align cc-engine cc-vars
cc-defs map eieio-opt speedbar sb-image ezimage dframe help-fns
radix-tree jka-compr hl-line checkdoc flymake-proc flymake compile
warnings whitespace fill-column-indicator modal flx-ido flx elec-pair
magit-submodule magit-obsolete magit-blame magit-stash magit-bisect
magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit
magit-sequence magit-notes magit-worktree magit-tag magit-merge
magit-branch magit-reset magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode
diff-mode magit-core magit-autorevert magit-process magit-margin
magit-mode git-commit magit-git magit-section magit-utils magit-popup
crm log-edit eudc eudc-vars message rmc puny format-spec rfc822 mml
mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader
pcvs-util add-log dash cus-edit+ cl page-ext ffap thingatpt
system-type-darwin-theme disp-table dired-x dired dired-loaddefs winner
which-func imenu paren with-editor async-bytecomp async shell pcomplete
comint ansi-color ring server mb-depth ido autorevert filenotify time
battery delsel autoinsert edmacro kmacro cl-extra help-mode initsplit
cus-edit cus-start cus-load wid-edit find-func elhome use-package
use-package-ensure use-package-delight use-package-diminish
use-package-bind-key use-package-core bind-key easy-mmode finder-inf
gh-common marshal eieio-compat info advice package easymenu epg-config
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib mule-util time-date tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
term/mac-win mac-win term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray 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 multi-tty make-network-process emacs)

Memory information:
((conses 16 368790 14274)
 (symbols 48 38218 0)
 (miscs 40 189 317)
 (strings 32 122076 4001)
 (string-bytes 1 3649794)
 (vectors 16 37777)
 (vector-slots 8 870889 18440)
 (floats 8 198 415)
 (intervals 56 520 0)
 (buffers 992 23))






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

* bug#34292: 26.1; ido-everywhere interferes with find-file
  2019-02-02 20:26 bug#34292: 26.1; ido-everywhere interferes with find-file Dave Abrahams
@ 2019-04-01 23:37 ` Noam Postavsky
  2019-04-02 23:58 ` Noam Postavsky
  1 sibling, 0 replies; 7+ messages in thread
From: Noam Postavsky @ 2019-04-01 23:37 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: 34292

severity 34292 minor
quit

Dave Abrahams <dave@boostpro.com> writes:

> emacs -Q
>
> evaluate the following elisp:
>
> (make-directory "/tmp/foo/bar/baz" t)
> (require 'ido)
> (ido-everywhere)
> (find-file "/tmp/foo/bar/baz")
> (call-interactively 'find-file)
>
> Now type DEL C-f RET, which should open "/tmp/foo/bar/"
> Instead, nothing happens

So are you looking for something like this?

diff --git i/lisp/ido.el w/lisp/ido.el
index f9a9607a3a..6dcd5bcd99 100644
--- i/lisp/ido.el
+++ w/lisp/ido.el
@@ -1588,6 +1588,8 @@ (define-minor-mode ido-everywhere
   (remove-function read-file-name-function #'ido-read-file-name)
   (remove-function read-buffer-function #'ido-read-buffer)
   (when ido-everywhere
+    (unless ido-mode
+      (error "Can't turn on `ido-everywhere' without `ido-mode'"))
     (add-function :override read-file-name-function #'ido-read-file-name)
     (add-function :override read-buffer-function #'ido-read-buffer)))






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

* bug#34292: 26.1; ido-everywhere interferes with find-file
  2019-02-02 20:26 bug#34292: 26.1; ido-everywhere interferes with find-file Dave Abrahams
  2019-04-01 23:37 ` Noam Postavsky
@ 2019-04-02 23:58 ` Noam Postavsky
  2019-04-03  0:01   ` Noam Postavsky
  1 sibling, 1 reply; 7+ messages in thread
From: Noam Postavsky @ 2019-04-02 23:58 UTC (permalink / raw)
  To: 34292; +Cc: Dave Abrahams

[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

[forwarding to list, please use "Reply All" to keep 34292@debbugs.gnu.org on Cc]


[-- Attachment #2: Type: message/rfc822, Size: 1360 bytes --]

From: Dave Abrahams <dave@boostpro.com>
To: Noam Postavsky <npostavs@gmail.com>
Subject: Re: bug#34292: 26.1; ido-everywhere interferes with find-file
Date: Tue, 2 Apr 2019 14:00:33 -0700
Message-ID: <2BA75D23-B713-42E5-8C44-A98629F05F06@boostpro.com>

Sorry, I don't know enough about ido's implementation to tell whether that's what I'm looking for.  It seems strange that this code should affect my use-case, since I must *have* ido-mode; even with emacs -Q, (require 'ido) succeeds.

> On Apr 1, 2019, at 4:37 PM, Noam Postavsky <npostavs@gmail.com> wrote:
> So are you looking for something like this?
> 
> diff --git i/lisp/ido.el w/lisp/ido.el
> index f9a9607a3a..6dcd5bcd99 100644
> --- i/lisp/ido.el
> +++ w/lisp/ido.el
> @@ -1588,6 +1588,8 @@ (define-minor-mode ido-everywhere
>   (remove-function read-file-name-function #'ido-read-file-name)
>   (remove-function read-buffer-function #'ido-read-buffer)
>   (when ido-everywhere
> +    (unless ido-mode
> +      (error "Can't turn on `ido-everywhere' without `ido-mode'"))
>     (add-function :override read-file-name-function #'ido-read-file-name)
>     (add-function :override read-buffer-function #'ido-read-buffer)))
> 


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

* bug#34292: 26.1; ido-everywhere interferes with find-file
  2019-04-02 23:58 ` Noam Postavsky
@ 2019-04-03  0:01   ` Noam Postavsky
  2019-04-03 23:37     ` Dave Abrahams
  0 siblings, 1 reply; 7+ messages in thread
From: Noam Postavsky @ 2019-04-03  0:01 UTC (permalink / raw)
  To: 34292; +Cc: Dave Abrahams

> From: Dave Abrahams <dave@boostpro.com>

> Sorry, I don't know enough about ido's implementation to tell whether
> that's what I'm looking for.  It seems strange that this code should
> affect my use-case, since I must *have* ido-mode; even with emacs -Q,
> (require 'ido) succeeds.

As far as I can tell, the problem is simply that starting ido-everywhere
without also starting ido-mode breaks things.  Hence my suggestion to
signal an error when you try to do that.






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

* bug#34292: 26.1; ido-everywhere interferes with find-file
  2019-04-03  0:01   ` Noam Postavsky
@ 2019-04-03 23:37     ` Dave Abrahams
  2019-04-04  0:49       ` Noam Postavsky
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Abrahams @ 2019-04-03 23:37 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: 34292

shouldn't starting ido-everywhere turn on ido-mode automatically, then?

> On Apr 2, 2019, at 5:01 PM, Noam Postavsky <npostavs@gmail.com> wrote:
> 
>> From: Dave Abrahams <dave@boostpro.com>
> 
>> Sorry, I don't know enough about ido's implementation to tell whether
>> that's what I'm looking for.  It seems strange that this code should
>> affect my use-case, since I must *have* ido-mode; even with emacs -Q,
>> (require 'ido) succeeds.
> 
> As far as I can tell, the problem is simply that starting ido-everywhere
> without also starting ido-mode breaks things.  Hence my suggestion to
> signal an error when you try to do that.
> 






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

* bug#34292: 26.1; ido-everywhere interferes with find-file
  2019-04-03 23:37     ` Dave Abrahams
@ 2019-04-04  0:49       ` Noam Postavsky
  2020-08-19 10:49         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Noam Postavsky @ 2019-04-04  0:49 UTC (permalink / raw)
  To: Dave Abrahams; +Cc: 34292

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

Dave Abrahams <dave@boostpro.com> writes:

> shouldn't starting ido-everywhere turn on ido-mode automatically, then?

Seems doable, does this work for you?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1199 bytes --]

From a21e8afe70b0f8fef692d235dc85995c01ca4e7a Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@users.sourceforge.net>
Date: Wed, 3 Apr 2019 20:13:05 -0400
Subject: [PATCH] Let ido-everywhere turn on ido-mode (Bug#34292)

* lisp/ido.el (ido-everywhere): Turn on ido-mode, if it's not already
on.  Otherwise, having ido-everywhere enabled messes all file and
buffer reading interactive commands.
---
 lisp/ido.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/ido.el b/lisp/ido.el
index 0854014581..a89f7b0eaa 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -1586,8 +1586,10 @@ (define-minor-mode ido-everywhere
   (remove-function read-file-name-function #'ido-read-file-name)
   (remove-function read-buffer-function #'ido-read-buffer)
   (when ido-everywhere
-    (add-function :override read-file-name-function #'ido-read-file-name)
-    (add-function :override read-buffer-function #'ido-read-buffer)))
+    (if (not ido-mode)
+        (ido-mode 'both)
+      (add-function :override read-file-name-function #'ido-read-file-name)
+      (add-function :override read-buffer-function #'ido-read-buffer))))
 
 (defvar ido-minor-mode-map-entry nil)
 
-- 
2.11.0


[-- Attachment #3: Type: text/plain, Size: 192 bytes --]


(it seems to be working for me now, though I had a transient failure the
first time where it refused to open bar, even though ido seemed to be
functioning correctly.  Maybe a caching thing?)

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

* bug#34292: 26.1; ido-everywhere interferes with find-file
  2019-04-04  0:49       ` Noam Postavsky
@ 2020-08-19 10:49         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-19 10:49 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: Dave Abrahams, 34292

Noam Postavsky <npostavs@gmail.com> writes:

> Dave Abrahams <dave@boostpro.com> writes:
>
>> shouldn't starting ido-everywhere turn on ido-mode automatically, then?
>
> Seems doable, does this work for you?
>
>>From a21e8afe70b0f8fef692d235dc85995c01ca4e7a Mon Sep 17 00:00:00 2001
> From: Noam Postavsky <npostavs@users.sourceforge.net>
> Date: Wed, 3 Apr 2019 20:13:05 -0400
> Subject: [PATCH] Let ido-everywhere turn on ido-mode (Bug#34292)
>
> * lisp/ido.el (ido-everywhere): Turn on ido-mode, if it's not already
> on.  Otherwise, having ido-everywhere enabled messes all file and
> buffer reading interactive commands.

This was a year ago, but the patch was never applied.  It seems like a
reasonable thing for ido-everywhere to do, so I've applied Noam's patch
to Emacs 28 now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2020-08-19 10:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-02 20:26 bug#34292: 26.1; ido-everywhere interferes with find-file Dave Abrahams
2019-04-01 23:37 ` Noam Postavsky
2019-04-02 23:58 ` Noam Postavsky
2019-04-03  0:01   ` Noam Postavsky
2019-04-03 23:37     ` Dave Abrahams
2019-04-04  0:49       ` Noam Postavsky
2020-08-19 10:49         ` Lars Ingebrigtsen

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).