unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs opens a file on startup - I cant figure out why??
@ 2016-09-07 17:36 Shlomi Vaknin
  2016-09-07 18:25 ` Óscar Fuentes
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Shlomi Vaknin @ 2016-09-07 17:36 UTC (permalink / raw)
  To: help-gnu-emacs

Hello all,

I love to live in my emacs, and recently the strangest thing has happened
to me.. While messing around with emacs, compiling it, messing with its
configuration etc, I opened some file, and now that file buffer simply wont
go away.. :P

I have completly removed .emacs.d directory, completly reinstalled emacs, I
am starting emacs like this:

emacs -q --no-init-file  --no-desktop

But still, the moment emacs is open, it opens this buffer! I tried to
find/grep everywhere I could think of for that file name, but nothing comes
up.... Nothing useful in *Messages* either.. Where could this come from?

Any ideas???

Thanks,
Shlomi


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

* Re: Emacs opens a file on startup - I cant figure out why??
  2016-09-07 17:36 Emacs opens a file on startup - I cant figure out why?? Shlomi Vaknin
@ 2016-09-07 18:25 ` Óscar Fuentes
  2016-09-07 18:45 ` Eli Zaretskii
  2016-09-07 20:09 ` Shlomi Vaknin
  2 siblings, 0 replies; 5+ messages in thread
From: Óscar Fuentes @ 2016-09-07 18:25 UTC (permalink / raw)
  To: help-gnu-emacs

Shlomi Vaknin <shlomivaknin@gmail.com> writes:

> I love to live in my emacs, and recently the strangest thing has happened
> to me.. While messing around with emacs, compiling it, messing with its
> configuration etc, I opened some file, and now that file buffer simply wont
> go away.. :P
>
> I have completly removed .emacs.d directory, completly reinstalled emacs, I
> am starting emacs like this:
>
> emacs -q --no-init-file  --no-desktop
>
> But still, the moment emacs is open, it opens this buffer! I tried to
> find/grep everywhere I could think of for that file name, but nothing comes
> up.... Nothing useful in *Messages* either.. Where could this come from?
>
> Any ideas???

Maybe you dumped Emacs with that file loaded. See C-h f dump-emacs.
Although IIRC you can't dump an already dumped Emacs.

Try rebuilding Emacs to see if the new executable does the same. Or, if
you have another Emacs binary around, try running it.




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

* Re: Emacs opens a file on startup - I cant figure out why??
  2016-09-07 17:36 Emacs opens a file on startup - I cant figure out why?? Shlomi Vaknin
  2016-09-07 18:25 ` Óscar Fuentes
@ 2016-09-07 18:45 ` Eli Zaretskii
  2016-09-07 20:09 ` Shlomi Vaknin
  2 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2016-09-07 18:45 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Shlomi Vaknin <shlomivaknin@gmail.com>
> Date: Wed, 7 Sep 2016 10:36:33 -0700
> 
> emacs -q --no-init-file  --no-desktop

What happens if you invoke "emacs -Q"?

Also, its it possible that 'emacs' is a shell alias, or a shell
script, not the Emacs binary?  What does "type emacs" say if you type
it from the shell prompt?



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

* Re: Emacs opens a file on startup - I cant figure out why??
  2016-09-07 17:36 Emacs opens a file on startup - I cant figure out why?? Shlomi Vaknin
  2016-09-07 18:25 ` Óscar Fuentes
  2016-09-07 18:45 ` Eli Zaretskii
@ 2016-09-07 20:09 ` Shlomi Vaknin
  2016-09-07 20:15   ` Alex Recker
  2 siblings, 1 reply; 5+ messages in thread
From: Shlomi Vaknin @ 2016-09-07 20:09 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks Eli and Oscar, your replies helped me.

So I was recompiling, getting new binaries, checking my alias (which I do
use since unfortunately I am on OSX). And nothing seemed to help...

Until I realized that I tried some new "fancy" plugin in zsh, namely
"zsh-navigation-tools", and for some reason (or, somehow!) they bound $1 to
constantly be that file name, and my alias was "Emacs $@", so it was
opening that file...

I really dont get why or how that plugin did that, or what silly thing am I
missing..  For now I am removed that plugin, and life is back to normal..

Thanks for helping me out,
Shlomi

On Wed, Sep 7, 2016 at 10:36 AM, Shlomi Vaknin <shlomivaknin@gmail.com>
wrote:

> Hello all,
>
> I love to live in my emacs, and recently the strangest thing has happened
> to me.. While messing around with emacs, compiling it, messing with its
> configuration etc, I opened some file, and now that file buffer simply wont
> go away.. :P
>
> I have completly removed .emacs.d directory, completly reinstalled emacs,
> I am starting emacs like this:
>
> emacs -q --no-init-file  --no-desktop
>
> But still, the moment emacs is open, it opens this buffer! I tried to
> find/grep everywhere I could think of for that file name, but nothing comes
> up.... Nothing useful in *Messages* either.. Where could this come from?
>
> Any ideas???
>
> Thanks,
> Shlomi
>


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

* Re: Emacs opens a file on startup - I cant figure out why??
  2016-09-07 20:09 ` Shlomi Vaknin
@ 2016-09-07 20:15   ` Alex Recker
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Recker @ 2016-09-07 20:15 UTC (permalink / raw)
  To: help-gnu-emacs


> Until I realized that I tried some new "fancy" plugin...

This is the source of most of my problems in life.




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

end of thread, other threads:[~2016-09-07 20:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 17:36 Emacs opens a file on startup - I cant figure out why?? Shlomi Vaknin
2016-09-07 18:25 ` Óscar Fuentes
2016-09-07 18:45 ` Eli Zaretskii
2016-09-07 20:09 ` Shlomi Vaknin
2016-09-07 20:15   ` Alex Recker

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