unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Ido for saving files or similar?
@ 2010-01-19 12:38 simonh
  2010-01-19 14:02 ` Tassilo Horn
  2010-01-25 17:57 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: simonh @ 2010-01-19 12:38 UTC (permalink / raw)
  To: help-gnu-emacs

I'm using ido for opening files and switching buffers which is great.
I'm also using smex for command completion etc. Is there anything
similar for saving files? It feels wrong to have to type the path in
manually now.

Thanks.


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

* Re: Ido for saving files or similar?
  2010-01-19 12:38 Ido for saving files or similar? simonh
@ 2010-01-19 14:02 ` Tassilo Horn
  2010-01-25 17:57 ` Stefan Monnier
  1 sibling, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2010-01-19 14:02 UTC (permalink / raw)
  To: help-gnu-emacs

simonh <simonharrison.uk@googlemail.com> writes:

> I'm using ido for opening files and switching buffers which is great.
> I'm also using smex for command completion etc. Is there anything
> similar for saving files? It feels wrong to have to type the path in
> manually now.

Ido-mode uses ido completion for saving files (C-x C-w), too.  At least,
it does here.

Bye,
Tassilo





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

* Re: Ido for saving files or similar?
  2010-01-19 12:38 Ido for saving files or similar? simonh
  2010-01-19 14:02 ` Tassilo Horn
@ 2010-01-25 17:57 ` Stefan Monnier
  2010-01-25 21:09   ` Tassilo Horn
       [not found]   ` <mailman.180.1264453777.14305.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 6+ messages in thread
From: Stefan Monnier @ 2010-01-25 17:57 UTC (permalink / raw)
  To: help-gnu-emacs

> I'm using ido for opening files and switching buffers which is great.
> I'm also using smex for command completion etc.  Is there anything
> similar for saving files? It feels wrong to have to type the path in
> manually now.

BTW, patches to bring the default built-in completion code closer to
ido/smex would be welcome (note: I'm talking about the code, not
necessarily its default behavior).  It's delicate tho, but if you think
of how Emacs-23's completion is closer (especially if you enable
icomplete-mode and bind minibuffer-force-complete to a key), it might
give you ideas.


        Stefan


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

* Re: Ido for saving files or similar?
  2010-01-25 17:57 ` Stefan Monnier
@ 2010-01-25 21:09   ` Tassilo Horn
       [not found]   ` <mailman.180.1264453777.14305.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2010-01-25 21:09 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

Hi Stefan,

> BTW, patches to bring the default built-in completion code closer to
> ido/smex would be welcome (note: I'm talking about the code, not
> necessarily its default behavior).  It's delicate tho, but if you
> think of how Emacs-23's completion is closer (especially if you enable
> icomplete-mode and bind minibuffer-force-complete to a key), it might
> give you ideas.

Hey, that's nice.  `minibuffer-force-complete' should be bound in
`minibuffer-local-completion-map', right?

Is it normal, that icomplete doesn't show completions for files?  Here,
it works for the `describe-function', `describe-variable', and for
buffer switching, but for not for `find-file' and friends.

Bye,
Tassilo





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

* Re: Ido for saving files or similar?
       [not found]   ` <mailman.180.1264453777.14305.help-gnu-emacs@gnu.org>
@ 2010-01-26  2:29     ` Stefan Monnier
  2010-01-26 11:19       ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2010-01-26  2:29 UTC (permalink / raw)
  To: help-gnu-emacs

> Hey, that's nice.  `minibuffer-force-complete' should be bound in
> `minibuffer-local-completion-map', right?

Yes.  I personally bind it to M-TAB.

> Is it normal, that icomplete doesn't show completions for files?  Here,
> it works for the `describe-function', `describe-variable', and for
> buffer switching, but for not for `find-file' and friends.

Kind of.  Please report it as a bug.
In the mean time, you can add read-file-name-internal to
icomplete-with-completion-tables.


        Stefan


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

* Re: Ido for saving files or similar?
  2010-01-26  2:29     ` Stefan Monnier
@ 2010-01-26 11:19       ` Tassilo Horn
  0 siblings, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2010-01-26 11:19 UTC (permalink / raw)
  To: help-gnu-emacs

Stefan Monnier <monnier@iro.umontreal.ca> writes:

Hi Stefan,

>> Hey, that's nice.  `minibuffer-force-complete' should be bound in
>> `minibuffer-local-completion-map', right?
>
> Yes.  I personally bind it to M-TAB.

That's what I did.  Copyist! ;-)

>> Is it normal, that icomplete doesn't show completions for files?
>> Here, it works for the `describe-function', `describe-variable', and
>> for buffer switching, but for not for `find-file' and friends.
>
> Kind of.  Please report it as a bug.

I'll do.

> In the mean time, you can add read-file-name-internal to
> icomplete-with-completion-tables.

Works perfect.

,----[ C-h v icomplete-with-completion-tables RET ]
| icomplete-with-completion-tables is a variable defined in `icomplete.el'.
| Its value is 
| (read-file-name-internal internal-complete-buffer)
| 
| Documentation:
| Specialized completion tables with which icomplete should operate.
| 
| Icomplete does not operate with any specialized completion tables
| except those on this list.
`----

But why does it complete functions and variables, too?  The last
paragraph seems to contradict this behavior.

Bye,
Tassilo





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

end of thread, other threads:[~2010-01-26 11:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 12:38 Ido for saving files or similar? simonh
2010-01-19 14:02 ` Tassilo Horn
2010-01-25 17:57 ` Stefan Monnier
2010-01-25 21:09   ` Tassilo Horn
     [not found]   ` <mailman.180.1264453777.14305.help-gnu-emacs@gnu.org>
2010-01-26  2:29     ` Stefan Monnier
2010-01-26 11:19       ` Tassilo Horn

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