[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file and directory - same name
From: |
Robert Pluim |
Subject: |
Re: file and directory - same name |
Date: |
Mon, 20 Aug 2018 14:25:57 +0200 |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Hi,
>
> came upon a mode my-mode.el residing in directory my-mode.el.
> Which looks confusing for me, as PATH/TO/my-mode.el might be seen as
> indicating a file, while pointing to just a directory.
>
> Any opinions? Maybe there are pros for this?
No pros, only cons. There is code in emacs that assumes that any
directory entry ending in '.el' is a file containing lisp code, even
when that directory entry is a directory, not a file. See eg
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32266>
Robert