helm-find-files not allow me to create new files!

340 views
Skip to first unread message

Jorge Araya Navarro

unread,
Jan 28, 2014, 5:03:55 PM1/28/14
to emacs...@googlegroups.com
Hello!

I recently bind C-x C-f to helm-find-files, and I though it will work just as find-file command, if the file that I'm looking do not exists, then create it. But this is not the case with helm-find-files, after I write the name of a file that do not exists and hit RET, but it just A) closes helm-find-files and B) do not open the buffer for the file that I intended to create.

Any help?

Thierry Volpiatto

unread,
Jan 29, 2014, 12:52:16 AM1/29/14
to Jorge Araya Navarro, emacs...@googlegroups.com
Can't reproduce this. It is working as expected to create files or
directories, asking you if you want to create file.

Can you reproduce this in a minimal installation of helm from emacs -Q
or starting from helm directory with ./emacs-helm.sh ?
What version of emacs are you using ?
Are you using the last version of helm ?
How do you install helm ?

--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997

Jorge Araya Navarro

unread,
Jan 29, 2014, 4:41:15 PM1/29/14
to emacs...@googlegroups.com, Jorge Araya Navarro
I'm using GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.6) of 2014-01-18 on mnt-storage-buildroots-staging-x86_64-eric, installed helm through package-install command from Emacs. I use Helm Version: 20140128.2333

Thierry Volpiatto

unread,
Jan 30, 2014, 2:09:17 AM1/30/14
to Jorge Araya Navarro, emacs...@googlegroups.com
Jorge Araya Navarro <elco...@deshackra.com> writes:

> I'm using GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.6)
> of 2014-01-18 on mnt-storage-buildroots-staging-x86_64-eric, installed helm
> through package-install command from Emacs. I use Helm Version:
> 20140128.2333

Still unable to reproduce.
Please try to cd to your elpa/helm directory and run ./emacs-helm.sh.
From this emacs try to reproduce.

Thanks.

Jorge Araya Navarro

unread,
Jan 30, 2014, 9:14:02 PM1/30/14
to emacs...@googlegroups.com, Jorge Araya Navarro
Well, from there I created a file without any problem!
So, what's next?

Jorge Araya Navarro

unread,
Jan 30, 2014, 9:17:26 PM1/30/14
to emacs...@googlegroups.com, Jorge Araya Navarro
I noticed that when I'm using helm-find-files it says "pattern" instead of "Find files: " (or something like that) as when I run emacs with ./emacs-helm.sh!


El jueves, 30 de enero de 2014 01:09:17 UTC-6, thierry v escribió:

Thierry Volpiatto

unread,
Jan 31, 2014, 12:28:26 AM1/31/14
to Jorge Araya Navarro, emacs...@googlegroups.com
Jorge Araya Navarro <elco...@deshackra.com> writes:

> I noticed that when I'm using helm-find-files it says "pattern" instead of
> "Find files: " (or something like that) as when I run emacs with
> ./emacs-helm.sh!

You are saying that with ./emacs-helm.sh you were able to create a file
as expected, right ?

And you are saying that from you emacs installation you have a prompt
named "pattern" right ?

And from ./emacs-helm.sh the prompt is named "Find files: " or something
like that (should be "Find Files or Url: "), right ?

Jorge Araya Navarro

unread,
Jan 31, 2014, 12:57:49 PM1/31/14
to emacs...@googlegroups.com, Jorge Araya Navarro
Yes, yes and yes! :)

Thierry Volpiatto

unread,
Feb 1, 2014, 6:44:57 AM2/1/14
to Jorge Araya Navarro, emacs...@googlegroups.com
Jorge Araya Navarro <elco...@deshackra.com> writes:

> Yes, yes and yes! :)

So the problem comes from somewhere in your configuration or
another package interferring, or maybe an old helm*.el(c) laying
somewhere in your load-path, but not helm itself.
Try to bissect your .emacs.

Jorge Araya Navarro

unread,
Feb 1, 2014, 3:27:45 PM2/1/14
to emacs...@googlegroups.com, Jorge Araya Navarro

If I double press "C-x C-f" Helm for files changes the prompt to "Find files or Url" (as shown in the screenshot), maybe is my configuration, but the thing is, that I have little or nothing changed for helm, just a couple of key bindings and that's all...

Thierry Volpiatto

unread,
Feb 1, 2014, 3:33:37 PM2/1/14
to Jorge Araya Navarro, emacs...@googlegroups.com
Jorge Araya Navarro <elco...@deshackra.com> writes:

> <https://lh6.googleusercontent.com/-d4UdrZX07r0/Uu1YV4Cph7I/AAAAAAAAAOY/m8xB_XrMnPw/s1600/Captura+de+pantalla+de+2014-02-01+14%3A25%3A20.png>
> If I double press "C-x C-f" Helm for files changes the prompt

I have no idea what is "double press" and what is "helm for files".

> to "Find files or Url" (as shown in the screenshot), maybe is my
> configuration, but the thing is, that I have little or nothing changed
> for helm, just a couple of key bindings and that's all...

Look, if helm is working as expected from ./emacs-helm.sh and not from
your emacs, the problem is in your .emacs, but not in helm.

Michael Heerdegen

unread,
Feb 1, 2014, 5:03:46 PM2/1/14
to emacs...@googlegroups.com
Jorge Araya Navarro <elco...@deshackra.com>
writes:

> *
>
> If I double press "C-x C-f" Helm for files changes the prompt to
> "Find files or Url" (as shown in the screenshot), maybe is my
> configuration, but the thing is, that I have little or nothing
> changed for helm, just a couple of key bindings and that's all...

It sounds like C-x C-f just doesn't evoke `helm-find-files' for you.
Maybe you use some package that rebinds C-x C-f?

I suggest you M-: (setq debug-on-quit t), type C-x C-f (to see the
unexpected behavior). Then hit C-g. You should see a backtrace that
should reveal a bit what's going on.

Regards,

Michael.

Michael Heerdegen

unread,
Feb 1, 2014, 6:24:35 PM2/1/14
to emacs...@googlegroups.com
Michael Heerdegen <michael_...@web.de>
writes:

> I suggest you M-: (setq debug-on-quit t), type C-x C-f (to see the
> unexpected behavior). Then hit C-g. You should see a backtrace that
> should reveal a bit what's going on.

If you don't get a backtrace this way (this can happen when Helm catches
the quit signal), please do the following to produce a backtrace:

1. Evaluate

(global-set-key
[f1]
(lambda () (interactive) (setq x (macroexp--backtrace))))

2. C-x C-f <F1> C-g

3. Evaluate

(progn
(require 'pp)
(pp-display-expression x "*backtrace*"))

4. Please send us the output from the *backtrace* buffer popping up.


Thanks,

Michael.

Jorge Araya Navarro

unread,
Feb 1, 2014, 9:41:30 PM2/1/14
to emacs...@googlegroups.com, michael_...@web.de


El sábado, 1 de febrero de 2014 17:24:35 UTC-6, Michael Heerdegen escribió:
Michael Heerdegen <michael_...@web.de>
writes:

> I suggest you M-: (setq debug-on-quit t), type C-x C-f (to see the
> unexpected behavior).  Then hit C-g.  You should see a backtrace that
> should reveal a bit what's going on.

If you don't get a backtrace this way (this can happen when Helm catches
the quit signal), please do the following to produce a backtrace:

1.  Evaluate

(global-set-key
 [f1]
 (lambda () (interactive) (setq x (macroexp--backtrace))))

2.  C-x C-f <F1> C-g

right there it says: <f1> C-g is undefined :(.

"double press" means pressing C-x C-f two times :). "helm for files" is (helm-find-files) I guess...

Thierry Volpiatto

unread,
Feb 2, 2014, 1:56:40 AM2/2/14
to Jorge Araya Navarro, emacs...@googlegroups.com, michael_...@web.de
Jorge Araya Navarro <elco...@deshackra.com> writes:

> El sábado, 1 de febrero de 2014 17:24:35 UTC-6, Michael Heerdegen escribió:
>>
>> Michael Heerdegen <michael_...@web.de <javascript:>>
>> writes:
>>
>> > I suggest you M-: (setq debug-on-quit t), type C-x C-f (to see the
>> > unexpected behavior). Then hit C-g. You should see a backtrace that
>> > should reveal a bit what's going on.
>>
>> If you don't get a backtrace this way (this can happen when Helm catches
>> the quit signal), please do the following to produce a backtrace:
>>
>> 1. Evaluate
>>
>> (global-set-key
>> [f1]
>> (lambda () (interactive) (setq x (macroexp--backtrace))))
>>
>> 2. C-x C-f <F1> C-g
>>
>
> right there it says: <f1> C-g is undefined :(.
>
> "double press" means pressing C-x C-f two times :). "helm for files" is
> (helm-find-files) I guess...

Are you using a menu ?
Do you mean `C-x C-f' or `C-x c f' ?

Jorge Araya Navarro

unread,
Feb 2, 2014, 2:55:24 PM2/2/14
to emacs...@googlegroups.com
Fixed!!

I didn't notice that I was binding "C-x C-f" to the wrong command, I changed the binding to helm-find-files and now it works!

Thanks for all the support :)
Reply all
Reply to author
Forward
0 new messages